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;
|
|
|
|
width: min-content;
|
2022-04-09 10:01:07 +03:00
|
|
|
min-width: 10rem;
|
2022-04-02 07:06:48 +03:00
|
|
|
max-width: 45rem;
|
|
|
|
max-height: 20rem;
|
|
|
|
background: var(--popup-bg-color);
|
|
|
|
border-radius: .5rem;
|
|
|
|
box-shadow: var(--popup-shadow);
|
|
|
|
will-change: transform;
|
|
|
|
|
|
|
|
.header {
|
|
|
|
border-bottom: 1px solid var(--popup-divider);
|
|
|
|
|
|
|
|
input {
|
|
|
|
margin: 0;
|
|
|
|
padding: .625rem .75rem;
|
|
|
|
color: #d6d6d6;
|
|
|
|
border: none;
|
|
|
|
caret-color: var(--caret-color);
|
2022-04-09 06:46:40 +03:00
|
|
|
|
|
|
|
&::placeholder { color: var(--content-color); }
|
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;
|
|
|
|
justify-content: start;
|
|
|
|
padding: 0 .75rem;
|
|
|
|
height: 2rem;
|
|
|
|
text-align: left;
|
|
|
|
color: var(--caption-color);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
margin-right: .75rem;
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
}
|
2022-04-13 07:25:59 +03:00
|
|
|
.color {
|
|
|
|
margin-right: .75rem;
|
|
|
|
width: .875rem;
|
|
|
|
height: .875rem;
|
|
|
|
border: 1px solid rgba(0, 0, 0, .1);
|
|
|
|
border-radius: .25rem;
|
|
|
|
}
|
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-09 06:46:40 +03:00
|
|
|
.check {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
align-items: center;
|
|
|
|
margin-left: 1rem;
|
|
|
|
width: 1rem;
|
|
|
|
height: 2rem;
|
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
&:hover { background-color: var(--popup-bg-hover); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-02 12:05:33 +03:00
|
|
|
.antiPopup {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
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 {
|
|
|
|
justify-content: 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-02-02 12:05:33 +03:00
|
|
|
|
2022-04-02 07:06:48 +03:00
|
|
|
&:hover, &:focus { background-color: var(--popup-bg-hover); }
|
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-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-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;
|
|
|
|
|
|
|
|
&.selected { color: var(--theme-caption-color); }
|
|
|
|
&:hover { color: var(--theme-content-accent-color); }
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-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;
|
|
|
|
justify-content: start;
|
|
|
|
padding: 1rem 1.75rem 1.75rem 0.5rem;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
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; }
|