// // 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. // /* Component */ .antiComponent { display: flex; flex-direction: column; height: 100%; .ac-header { padding: 0 1.75rem 0 2.5rem; height: 4rem; min-height: 4rem; &.short { display: flex; align-items: center; flex-wrap: nowrap; } &.full { display: grid; grid-template-columns: auto; grid-auto-flow: column; grid-auto-columns: min-content; gap: .75rem; align-items: center; } &.mirror { justify-content: space-between; padding: 0 2.5rem; &-tool { justify-content: space-between; padding: 0 6.5rem 0 2.5rem; } } &.divide { border-bottom: 1px solid var(--theme-menu-divider); } .ac-header__wrap-description, .ac-header__wrap-title { display: flex; flex-wrap: nowrap; min-width: 0; cursor: default; } .ac-header__wrap-description { flex-direction: column; flex-grow: 1; } .ac-header__wrap-title { align-items: center; } .ac-header__icon { margin-right: .5rem; color: var(--theme-content-color); } .ac-header__title { min-width: 0; font-weight: 500; font-size: 1rem; color: var(--theme-caption-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: none; } .ac-header__description { min-width: 0; font-size: .75rem; color: var(--theme-content-dark-color); overflow: hidden; visibility: visible; display: -webkit-box; /* autoprefixer: ignore next */ -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; user-select: none; } .ac-header__icon-button { display: flex; justify-content: center; align-items: center; width: 2.5rem; height: 2.5rem; color: var(--theme-content-trans-color); background-color: transparent; border-radius: .5rem; cursor: pointer; &:hover { color: var(--theme-caption-color); } &.selected { color: var(--theme-content-accent-color); background-color: var(--theme-button-bg-enabled); cursor: default; &:hover { color: var(--theme-caption-color); } } } } .ac-subtitle { display: flex; align-items: center; overflow-x: auto; flex-shrink: 0; min-height: 0; height: 3.5rem; border-bottom: 1px solid var(--theme-zone-bg); &::-webkit-scrollbar:horizontal { height: .25rem; } &::-webkit-scrollbar-track { margin: 0; } &::-webkit-scrollbar-thumb { background-color: var(--theme-menu-divider); border-radius: .25rem; &:hover { background-color: var(--theme-card-divider); } } .ac-subtitle-content { flex-grow: 1; display: flex; align-items: center; margin: 0 2.5rem; } } .ac-body { display: flex; flex-direction: column; align-items: flex-start; height: 100%; &.columns { flex-direction: row; } &.hScroll { overflow-x: auto; &::-webkit-scrollbar-track { margin: 2.5rem; } } .ac-column { display: flex; flex-direction: column; overflow-y: auto; padding: 1.75rem 2.5rem; min-width: 25rem; max-width: 25rem; height: 100%; border-right: 1px solid var(--theme-menu-divider); &.max { flex-grow: 1; min-width: 25rem; max-width: 100%; border-right: none; } &__list-item { display: flex; justify-content: space-between; align-items: center; min-height: 2.5rem; padding: 0 1.25rem; border: 1px solid transparent; border-radius: 12px; cursor: pointer; &:hover { background-color: var(--theme-bg-accent-color); } &.selected { background-color: var(--theme-button-bg-enabled); border-color: var(--theme-bg-accent-color); cursor: auto; } } } &__cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, auto)); grid-auto-rows: minmax(12.5rem, auto); grid-gap: 1.5rem; padding: 3rem; } &__space-3 { flex-shrink: 0; min-height: .75rem; height: .75rem; } } } .ac-column__list-item + .ac-column__list-item { margin-top: .75rem; }