mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-02 09:13:54 +03:00
8cd1797696
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
143 lines
3.7 KiB
SCSS
143 lines
3.7 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.
|
|
//
|
|
|
|
/* Panels */
|
|
.antiPanel-application {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
min-width: 5rem;
|
|
width: 5rem;
|
|
height: 100%;
|
|
border-radius: 1.25rem;
|
|
}
|
|
.antiPanel-navigator,
|
|
.antiPanel-component {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
border-radius: 1.25rem;
|
|
overflow: hidden;
|
|
|
|
&.indent { margin-right: 1rem; }
|
|
&.filled { background-color: var(--theme-bg-color); }
|
|
}
|
|
.antiPanel-navigator {
|
|
min-width: 18rem;
|
|
max-width: 18rem;
|
|
width: 18rem;
|
|
}
|
|
.antiPanel-component { flex-grow: 1; }
|
|
|
|
/* Navigation */
|
|
.antiNav-header {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 1.75rem;
|
|
height: 4rem;
|
|
}
|
|
.antiNav-element {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.25rem;
|
|
height: 2.25rem;
|
|
border-radius: .5rem;
|
|
user-select: none;
|
|
cursor: pointer;
|
|
|
|
.an-element__icon {
|
|
min-width: 1rem;
|
|
color: var(--theme-content-trans-color);
|
|
margin: 0 1.125rem 0 0;
|
|
}
|
|
.an-element__label {
|
|
flex-grow: 1;
|
|
margin-right: .75rem;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
user-select: none;
|
|
font-weight: 400;
|
|
color: var(--theme-content-color);
|
|
&.title {
|
|
font-weight: 500;
|
|
color: var(--theme-caption-color);
|
|
}
|
|
}
|
|
.an-element__tool {
|
|
margin-right: .75rem;
|
|
visibility: hidden;
|
|
}
|
|
.an-element__counter {
|
|
margin-right: .75rem;
|
|
font-weight: 600;
|
|
font-size: .75rem;
|
|
color: var(--theme-caption-color);
|
|
}
|
|
|
|
&:hover, &.hovered {
|
|
background-color: var(--theme-button-bg-enabled);
|
|
.an-element__tool { visibility: visible; }
|
|
}
|
|
&.selected {
|
|
background-color: var(--theme-menu-selection);
|
|
&:hover { background-color: var(--theme-button-bg-enabled); }
|
|
}
|
|
|
|
&__dropbox {
|
|
height: auto;
|
|
margin-bottom: .5rem;
|
|
}
|
|
}
|
|
.antiNav-divider {
|
|
flex-shrink: 0;
|
|
margin: 1.5rem 0;
|
|
height: 1px;
|
|
background-color: var(--theme-menu-divider);
|
|
}
|
|
.antiNav-scroll {
|
|
flex-grow: 1;
|
|
min-height: 0;
|
|
max-height: 10rem;
|
|
height: max-content;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 2rem);
|
|
|
|
&::-webkit-scrollbar-track { margin: 0; }
|
|
&::-webkit-scrollbar-thumb {
|
|
background-color: var(--theme-bg-accent-color);
|
|
&:hover { background-color: var(--theme-menu-divider); }
|
|
}
|
|
}
|
|
.antiNav-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
.antiNav-space {
|
|
flex-shrink: 0;
|
|
height: 1rem;
|
|
}
|
|
.antiNav-topFade { mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 2rem, rgba(0, 0, 0, 1) calc(100% - 1px), rgba(0, 0, 0, 0) 100%); }
|
|
.antiNav-bottomFade { mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 1px, rgba(0, 0, 0, 1) calc(100% - 2rem), rgba(0, 0, 0, 0) 100%); }
|
|
.antiNav-bothFade { mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 2rem, rgba(0, 0, 0, 1) calc(100% - 2rem), rgba(0, 0, 0, 0) 100%); }
|
|
.antiNav-noneFade { mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 1px, rgba(0, 0, 0, 1) calc(100% - 1px), rgba(0, 0, 0, 0) 100%); }
|