// // 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 */ .selectPopup { overflow: hidden; display: flex; flex-direction: column; width: min-content; min-width: 10rem; 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); &::placeholder { color: var(--content-color); } } } .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; } .color { margin-right: .75rem; width: .875rem; height: .875rem; border: 1px solid rgba(0, 0, 0, .1); border-radius: .25rem; } .label { flex-grow: 1; min-width: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .check { display: flex; justify-content: flex-end; align-items: center; margin-left: 1rem; width: 1rem; height: 2rem; } &:hover { background-color: var(--popup-bg-hover); } } } .antiPopup { display: flex; flex-direction: column; min-height: 0; min-width: 0; max-width: 30rem; background: var(--popup-bg-color); border-radius: .25rem; box-shadow: var(--popup-shadow); user-select: none; .ap-space { flex-shrink: 0; height: .25rem; } .ap-scroll { flex-grow: 1; margin: 0; 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; padding: 0; height: 100%; } .ap-menuItem { justify-content: start; padding: 0 .5rem; height: 2rem; color: var(--caption-color); text-align: left; cursor: pointer; &.ap-woScroll { margin: 0 .5rem; } &.selected { background: var(--popup-bg-hover); } &.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; } } &.withCheck { justify-content: space-between; } &:hover, &:focus { background-color: var(--popup-bg-hover); } &.redlight { color: var(--highlight-red); &:hover { color: var(--highlight-red-hover); } &:active { color: var(--highlight-red-press); } &:focus { color: var(--highlight-red-press); } } } .ap-check { margin-left: 1rem; width: 1rem; height: 1rem; } &-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; } } } .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; } } // 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; }