mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-30 23:39:31 +00:00
c3d5f4cf57
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
321 lines
7.3 KiB
SCSS
321 lines
7.3 KiB
SCSS
//
|
|
// 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: 0.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: 0.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: 0.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: 0.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: 0.25rem;
|
|
}
|
|
&::-webkit-scrollbar-track {
|
|
margin: 0;
|
|
}
|
|
&::-webkit-scrollbar-thumb {
|
|
background-color: var(--theme-menu-divider);
|
|
border-radius: 0.25rem;
|
|
&:hover {
|
|
background-color: var(--theme-card-divider);
|
|
}
|
|
}
|
|
|
|
.ac-subtitle-content {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 2.5rem;
|
|
}
|
|
}
|
|
|
|
.ac-tabs {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
flex-wrap: nowrap;
|
|
margin: 0 2.5rem;
|
|
min-width: 0;
|
|
height: 4.5rem;
|
|
border-bottom: 1px solid var(--theme-menu-divider);
|
|
|
|
&__tab {
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: 0;
|
|
height: 4.5rem;
|
|
font-weight: 500;
|
|
color: var(--theme-content-trans-color);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
|
|
&.selected {
|
|
border-top: .125rem solid transparent;
|
|
border-bottom: .125rem solid var(--theme-caption-color);
|
|
color: var(--theme-caption-color);
|
|
cursor: default;
|
|
}
|
|
}
|
|
.ac-tabs__tab + .ac-tabs__tab { margin-left: 2.5rem; }
|
|
|
|
&__empty {
|
|
min-width: 2.5rem;
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
|
|
.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: 0.75rem;
|
|
height: 0.75rem;
|
|
}
|
|
}
|
|
}
|
|
.ac-column__list-item + .ac-column__list-item {
|
|
margin-top: 0.75rem;
|
|
}
|
|
.ac-column__list-item + .ac-column__list-item { margin-top: .75rem; }
|
|
|
|
/* StatesBar */
|
|
.antiStatesBar {
|
|
overflow-x: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1 0;
|
|
padding: 0.125rem 0;
|
|
min-width: 0;
|
|
|
|
&::-webkit-scrollbar:horizontal { height: 0.125rem; }
|
|
&::-webkit-scrollbar-track { margin: 0.25rem; }
|
|
&::-webkit-scrollbar-thumb { background-color: var(--theme-bg-accent-color); }
|
|
|
|
&.mask-none { mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 1); }
|
|
&.mask-left { mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 1rem); }
|
|
&.mask-right { mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 1rem); }
|
|
&.mask-both {
|
|
mask-image: linear-gradient(
|
|
to right,
|
|
rgba(0, 0, 0, 0) 0,
|
|
rgba(0, 0, 0, 1) 1rem,
|
|
rgba(0, 0, 0, 1) calc(100% - 1rem),
|
|
rgba(0, 0, 0, 0) 100%
|
|
);
|
|
}
|
|
|
|
.asb-bar {
|
|
flex: 1 0 auto;
|
|
position: relative;
|
|
display: flex;
|
|
min-width: 0;
|
|
width: auto;
|
|
|
|
&__back {
|
|
width: auto;
|
|
height: 2.25rem;
|
|
}
|
|
&__element {
|
|
fill: var(--theme-button-bg-enabled);
|
|
stroke: var(--theme-bg-accent-color);
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
&__selected { fill: red; }
|
|
|
|
.asb-label__container {
|
|
position: absolute;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
top: 0;
|
|
left: 1rem;
|
|
right: 1rem;
|
|
min-width: 0;
|
|
width: calc(100% - 2rem);
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|