2022-02-02 12:05:33 +03:00
|
|
|
//
|
|
|
|
// Copyright © 2021 Anticrm Platform Contributors.
|
|
|
|
//
|
|
|
|
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License. You may
|
|
|
|
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
//
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
|
|
|
|
/* Popups */
|
2022-04-02 07:06:48 +03:00
|
|
|
.selectPopup {
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-04-16 06:06:32 +03:00
|
|
|
width: fit-content;
|
2022-04-09 10:01:07 +03:00
|
|
|
min-width: 10rem;
|
2022-04-16 06:06:32 +03:00
|
|
|
max-width: 15rem;
|
|
|
|
max-height: 22rem;
|
2022-04-02 07:06:48 +03:00
|
|
|
background: var(--popup-bg-color);
|
|
|
|
border-radius: .5rem;
|
|
|
|
box-shadow: var(--popup-shadow);
|
2022-06-24 15:36:08 +03:00
|
|
|
|
|
|
|
&.full-width {
|
|
|
|
flex-grow: 1;
|
|
|
|
background: none;
|
|
|
|
border-radius: 0px;
|
|
|
|
box-shadow: none;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
|
2022-04-16 06:06:32 +03:00
|
|
|
&.maxHeight { height: 22rem; }
|
2022-04-19 13:16:33 +03:00
|
|
|
&.autoHeight {
|
|
|
|
max-height: calc(100vh - 2rem);
|
|
|
|
height: auto;
|
|
|
|
}
|
2022-05-04 11:08:12 +03:00
|
|
|
&.width-40 {
|
|
|
|
max-width: 40rem !important;
|
|
|
|
width: 40rem !important;
|
|
|
|
}
|
2022-05-25 09:09:58 +03:00
|
|
|
&.max-width-40 {
|
|
|
|
max-width: 40rem !important;
|
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
.header {
|
|
|
|
border-bottom: 1px solid var(--popup-divider);
|
|
|
|
|
2022-04-16 06:06:32 +03:00
|
|
|
&.no-border { border-bottom-color: transparent; }
|
2022-04-02 07:06:48 +03:00
|
|
|
input {
|
|
|
|
margin: 0;
|
|
|
|
padding: .625rem .75rem;
|
|
|
|
color: #d6d6d6;
|
|
|
|
border: none;
|
|
|
|
caret-color: var(--caret-color);
|
2022-04-20 10:56:45 +03:00
|
|
|
}
|
|
|
|
.clear-btn {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
width: .75rem;
|
|
|
|
height: .75rem;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
width: .625rem;
|
|
|
|
height: .625rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.show {
|
|
|
|
color: var(--content-color);
|
|
|
|
background-color: var(--button-border-color);
|
|
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
|
|
color: var(--accent-color);
|
|
|
|
background-color: var(--button-border-hover);
|
|
|
|
}
|
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll {
|
|
|
|
flex-grow: 1;
|
|
|
|
min-height: 0;
|
|
|
|
height: max-content;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar { width: 0; }
|
|
|
|
.box {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-item {
|
|
|
|
flex-shrink: 0;
|
2022-06-20 17:11:14 +03:00
|
|
|
justify-content: flex-start;
|
2022-04-16 06:06:32 +03:00
|
|
|
padding: .25rem .75rem;
|
|
|
|
min-height: 2rem;
|
2022-04-02 07:06:48 +03:00
|
|
|
text-align: left;
|
|
|
|
color: var(--caption-color);
|
|
|
|
cursor: pointer;
|
|
|
|
|
2022-04-14 14:04:24 +03:00
|
|
|
&.high { height: 3rem; }
|
2022-04-16 06:06:32 +03:00
|
|
|
|
|
|
|
.icon, .color, .tag {
|
|
|
|
flex-shrink: 0;
|
2022-04-02 07:06:48 +03:00
|
|
|
margin-right: .75rem;
|
2022-04-16 06:06:32 +03:00
|
|
|
}
|
|
|
|
.icon {
|
2022-04-02 07:06:48 +03:00
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
2022-04-20 10:56:45 +03:00
|
|
|
color: var(--content-color);
|
2022-04-02 07:06:48 +03:00
|
|
|
}
|
2022-04-13 07:25:59 +03:00
|
|
|
.color {
|
|
|
|
width: .875rem;
|
|
|
|
height: .875rem;
|
|
|
|
border: 1px solid rgba(0, 0, 0, .1);
|
|
|
|
border-radius: .25rem;
|
|
|
|
}
|
2022-04-16 06:06:32 +03:00
|
|
|
.tag {
|
|
|
|
width: .5rem;
|
|
|
|
height: .5rem;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
.label {
|
|
|
|
flex-grow: 1;
|
|
|
|
min-width: 0;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2022-04-14 14:04:24 +03:00
|
|
|
.check, .check-right {
|
2022-04-09 06:46:40 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-04-14 14:04:24 +03:00
|
|
|
margin-right: .75rem;
|
2022-04-09 06:46:40 +03:00
|
|
|
}
|
2022-04-14 14:04:24 +03:00
|
|
|
.check-right { margin: 0 0 0 2rem; }
|
2022-05-13 09:41:30 +03:00
|
|
|
&:focus,
|
|
|
|
&:hover {
|
2022-04-20 10:56:45 +03:00
|
|
|
background-color: var(--popup-bg-hover);
|
|
|
|
|
|
|
|
.icon { color: var(--accent-color); }
|
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
}
|
2022-04-16 06:06:32 +03:00
|
|
|
.sticky-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
&:not(:first-child) { margin-top: 1px; }
|
|
|
|
}
|
|
|
|
.menu-group {
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 0;
|
|
|
|
transition: height .5s ease;
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: .125rem .25rem;
|
|
|
|
min-height: 1.5rem;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: .75rem;
|
|
|
|
text-align: left;
|
|
|
|
color: var(--accent-color);
|
|
|
|
background-color: var(--button-bg-color);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
width: .25rem;
|
|
|
|
transform-origin: 40% 50%;
|
|
|
|
transform: rotate(0deg);
|
|
|
|
transition: transform .15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
|
|
}
|
|
|
|
&.show .icon { transform: rotate(90deg); }
|
|
|
|
&:hover { color: var(--caption-color); }
|
|
|
|
&.show + .menu-group { height: auto; }
|
|
|
|
}
|
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
}
|
|
|
|
|
2022-02-02 12:05:33 +03:00
|
|
|
.antiPopup {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-07-10 17:22:13 +03:00
|
|
|
width: auto;
|
2022-02-02 12:05:33 +03:00
|
|
|
min-height: 0;
|
2022-04-02 07:06:48 +03:00
|
|
|
min-width: 0;
|
2022-02-07 12:39:23 +03:00
|
|
|
max-width: 30rem;
|
2022-04-02 07:06:48 +03:00
|
|
|
background: var(--popup-bg-color);
|
|
|
|
border-radius: .25rem;
|
|
|
|
box-shadow: var(--popup-shadow);
|
2022-02-02 12:05:33 +03:00
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
.ap-space {
|
|
|
|
flex-shrink: 0;
|
2022-04-02 07:06:48 +03:00
|
|
|
height: .25rem;
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
|
|
|
.ap-scroll {
|
|
|
|
flex-grow: 1;
|
2022-04-02 07:06:48 +03:00
|
|
|
margin: 0;
|
2022-02-02 12:05:33 +03:00
|
|
|
min-height: 0;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
&::-webkit-scrollbar-track { margin: 0; }
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: var(--theme-bg-accent-color);
|
|
|
|
&:hover { background-color: var(--theme-menu-divider); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ap-box {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-04-02 07:06:48 +03:00
|
|
|
padding: 0;
|
2022-02-02 12:05:33 +03:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
.ap-menuItem {
|
2022-06-20 17:11:14 +03:00
|
|
|
justify-content: flex-start;
|
2022-04-02 07:06:48 +03:00
|
|
|
padding: 0 .5rem;
|
|
|
|
height: 2rem;
|
|
|
|
color: var(--caption-color);
|
2022-02-02 12:05:33 +03:00
|
|
|
text-align: left;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&.ap-woScroll { margin: 0 .5rem; }
|
2022-04-02 07:06:48 +03:00
|
|
|
&.selected { background: var(--popup-bg-hover); }
|
2022-02-02 12:05:33 +03:00
|
|
|
&.empty {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
font-style: italic;
|
|
|
|
color: var(--theme-content-trans-color);
|
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--theme-content-trans-color);
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
2022-02-16 12:03:39 +03:00
|
|
|
&.withCheck { justify-content: space-between; }
|
2022-06-16 04:25:49 +03:00
|
|
|
&.withIcon {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
.icon { color: var(--content-color); }
|
2022-06-24 15:36:08 +03:00
|
|
|
&.hover .icon { color: var(--accent-color); }
|
2022-06-16 04:25:49 +03:00
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
|
2022-04-21 12:38:09 +03:00
|
|
|
// &:hover { background-color: var(--popup-bg-hover); }
|
2022-06-24 15:36:08 +03:00
|
|
|
&.hover {
|
2022-04-21 12:38:09 +03:00
|
|
|
background-color: var(--popup-bg-hover);
|
|
|
|
outline: none;
|
|
|
|
// box-shadow: inset 0 0 1px 1px var(--primary-edit-border-color);
|
|
|
|
}
|
2022-02-04 13:02:56 +03:00
|
|
|
|
|
|
|
&.redlight {
|
|
|
|
color: var(--highlight-red);
|
|
|
|
&:hover { color: var(--highlight-red-hover); }
|
|
|
|
&:active { color: var(--highlight-red-press); }
|
|
|
|
&:focus { color: var(--highlight-red-press); }
|
|
|
|
}
|
2022-06-24 15:36:08 +03:00
|
|
|
|
|
|
|
&.separator {
|
|
|
|
margin: 0.25rem 0;
|
|
|
|
height: 1px;
|
2022-07-02 07:03:25 +03:00
|
|
|
background-color: var(--popup-divider);
|
2022-06-24 15:36:08 +03:00
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
|
|
|
.ap-check {
|
|
|
|
margin-left: 1rem;
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
2022-04-09 06:46:40 +03:00
|
|
|
}
|
2022-07-02 07:03:25 +03:00
|
|
|
.ap-menuHeader {
|
|
|
|
display: flex;
|
|
|
|
// justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 .5rem;
|
|
|
|
width: 100%;
|
|
|
|
height: 3rem;
|
|
|
|
color: var(--caption-color);
|
|
|
|
text-align: left;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--popup-bg-hover);
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
|
|
|
|
&-withHeader {
|
|
|
|
.ap-header {
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
margin: 0 .5rem;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
.ap-caption {
|
|
|
|
margin: .5rem 0 0 .75rem;
|
|
|
|
font-size: .75rem;
|
|
|
|
font-weight: 600;
|
|
|
|
text-transform: uppercase;
|
|
|
|
color: var(--theme-content-dark-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-withTitle {
|
|
|
|
.ap-title {
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin: 1rem 1rem .25rem;
|
|
|
|
font-weight: 500;
|
|
|
|
color: var(--theme-caption-color);
|
|
|
|
}
|
|
|
|
.ap-header {
|
|
|
|
margin: .25rem 1rem 0;
|
|
|
|
.ap-caption {
|
|
|
|
margin: .5rem 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-withCategory {
|
|
|
|
.ap-category {
|
|
|
|
flex-shrink: 0;
|
|
|
|
overflow-x: auto;
|
|
|
|
display: flex;
|
|
|
|
margin: 1rem 1rem .25rem;
|
|
|
|
|
|
|
|
.ap-categoryItem {
|
|
|
|
margin: .25rem;
|
|
|
|
color: var(--theme-content-trans-color);
|
|
|
|
cursor: pointer;
|
|
|
|
|
2022-09-09 06:44:33 +03:00
|
|
|
&.selected {
|
|
|
|
color: var(--theme-content-accent-color) !important;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
color: var(--theme-content-accent-color);
|
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar:horizontal { height: .125rem; }
|
|
|
|
&::-webkit-scrollbar-thumb { background-color: var(--theme-button-bg-hovered); }
|
|
|
|
}
|
|
|
|
.ap-header {
|
|
|
|
margin: .25rem 1rem 0;
|
|
|
|
.ap-caption {
|
|
|
|
margin: .5rem 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-02-16 12:02:31 +03:00
|
|
|
|
|
|
|
.ap-footer {
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: grid;
|
|
|
|
grid-auto-flow: column;
|
|
|
|
direction: rtl;
|
|
|
|
grid-gap: 0.5rem;
|
2022-06-20 17:11:14 +03:00
|
|
|
justify-content: flex-start;
|
2022-02-16 12:02:31 +03:00
|
|
|
padding: 1rem 1.75rem 1.75rem 0.5rem;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
|
|
|
|
2022-06-16 04:25:49 +03:00
|
|
|
// Submenu
|
|
|
|
.antiPopup-submenu {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-shrink: 0;
|
2022-06-20 17:11:14 +03:00
|
|
|
justify-content: flex-start;
|
2022-06-16 04:25:49 +03:00
|
|
|
padding: .25rem .75rem;
|
|
|
|
min-width: 0;
|
|
|
|
min-height: 2rem;
|
|
|
|
text-align: left;
|
|
|
|
color: var(--caption-color);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
.icon { color: var(--content-color); }
|
|
|
|
&:focus .icon,
|
2022-07-02 07:03:25 +03:00
|
|
|
&.withHover:hover .icon,
|
|
|
|
&.withIconHover:hover .icon { color: var(--accent-color); }
|
2022-06-16 04:25:49 +03:00
|
|
|
&.withHover:hover { background-color: var(--popup-bg-hover); }
|
|
|
|
}
|
|
|
|
|
|
|
|
.antiPopup .ap-menuItem.arrow,
|
|
|
|
.selectPopup .menu-item.arrow,
|
|
|
|
.antiPopup-submenu {
|
|
|
|
position: relative;
|
2022-06-24 15:36:08 +03:00
|
|
|
span {
|
|
|
|
padding-right: 1rem;
|
|
|
|
}
|
2022-06-16 04:25:49 +03:00
|
|
|
&::after {
|
|
|
|
content: '▶';
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: 0.5rem;
|
|
|
|
font-size: 0.375rem;
|
|
|
|
color: var(--dark-color);
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-26 12:12:02 +03:00
|
|
|
.notifyPopup {
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: max-content;
|
|
|
|
height: max-content;
|
|
|
|
padding-bottom: 0.5rem;
|
2022-09-16 05:57:32 +03:00
|
|
|
min-width: 42rem;
|
|
|
|
max-width: 42rem;
|
2022-10-17 15:23:18 +03:00
|
|
|
height: 22rem;
|
2022-05-26 12:12:02 +03:00
|
|
|
min-height: 22rem;
|
|
|
|
max-height: 22rem;
|
|
|
|
background: var(--popup-bg-color);
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
box-shadow: var(--popup-shadow);
|
|
|
|
|
|
|
|
.header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-shrink: 0;
|
|
|
|
padding: 0 1rem;
|
|
|
|
height: 3rem;
|
|
|
|
border-bottom: 1px solid var(--popup-divider);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-02 12:05:33 +03:00
|
|
|
// Remove highlights table rows and hide dots in popups
|
|
|
|
.popup .tr-body:hover, .popup-tooltip .tr-body:hover { background-color: transparent !important; }
|
|
|
|
.popup-tooltip .tr-body .menuRow { visibility: hidden !important; }
|