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.
|
|
|
|
//
|
|
|
|
|
|
|
|
/* Panels */
|
2022-04-27 08:50:07 +03:00
|
|
|
* {
|
|
|
|
--app-panel-width: 4rem;
|
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
.antiPanel-application {
|
2022-04-27 08:50:07 +03:00
|
|
|
flex-shrink: 0;
|
2022-02-02 12:05:33 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2022-04-27 08:50:07 +03:00
|
|
|
min-width: var(--app-panel-width);
|
|
|
|
width: var(--app-panel-width);
|
2022-02-02 12:05:33 +03:00
|
|
|
height: 100%;
|
2022-04-28 12:53:35 +03:00
|
|
|
background-color: var(--board-bg-color);
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
|
|
|
.antiPanel-navigator,
|
|
|
|
.antiPanel-component {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
|
2022-04-02 07:06:48 +03:00
|
|
|
&.filled { background-color: var(--body-accent); }
|
|
|
|
&.border-left { border-left: 1px solid var(--divider-color); }
|
|
|
|
&.border-right { border-right: 1px solid var(--divider-color); }
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
|
|
|
.antiPanel-navigator {
|
|
|
|
min-width: 18rem;
|
|
|
|
max-width: 18rem;
|
|
|
|
width: 18rem;
|
2022-04-27 08:50:07 +03:00
|
|
|
|
|
|
|
&.float {
|
|
|
|
position: fixed;
|
|
|
|
top: var(--status-bar-height);
|
|
|
|
left: var(--app-panel-width);
|
|
|
|
background-color: var(--body-accent);
|
|
|
|
filter: drop-shadow(2px 0 1px rgba(0, 0, 0, .2));
|
|
|
|
z-index: 450;
|
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
2022-04-28 12:53:35 +03:00
|
|
|
.antiPanel-component:not(.aside) {
|
|
|
|
flex-grow: 1;
|
2022-05-12 14:29:49 +03:00
|
|
|
// background-color: var(--board-bg-color);
|
2022-04-28 12:53:35 +03:00
|
|
|
}
|
2022-04-19 13:16:33 +03:00
|
|
|
.antiPanel-component.aside {
|
|
|
|
min-width: 30rem;
|
|
|
|
width: 30rem;
|
|
|
|
max-width: 30rem;
|
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
|
|
|
|
/* Navigation */
|
2022-02-03 12:16:15 +03:00
|
|
|
.antiNav-header {
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 1.75rem;
|
|
|
|
height: 4rem;
|
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
.antiNav-subheader {
|
|
|
|
display: flex;
|
|
|
|
justify-content: stretch;
|
|
|
|
align-items: stretch;
|
2022-05-08 20:55:51 +03:00
|
|
|
margin: .5rem 0.5rem .75rem 1rem;
|
2022-04-02 07:06:48 +03:00
|
|
|
}
|
2022-02-04 13:02:56 +03:00
|
|
|
.antiNav-element {
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-04-02 07:06:48 +03:00
|
|
|
margin: 1px 1rem;
|
|
|
|
padding: .25rem;
|
|
|
|
height: 1.75rem;
|
|
|
|
border-radius: .25rem;
|
2022-02-04 13:02:56 +03:00
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
.an-element__icon {
|
|
|
|
min-width: 1rem;
|
2022-04-02 07:06:48 +03:00
|
|
|
color: var(--content-color);
|
|
|
|
margin: 0 .625rem 0 .375rem;
|
2022-02-04 13:02:56 +03:00
|
|
|
}
|
|
|
|
.an-element__label {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-right: .75rem;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
user-select: none;
|
|
|
|
font-weight: 400;
|
2022-04-02 07:06:48 +03:00
|
|
|
color: var(--accent-color);
|
2022-02-04 13:02:56 +03:00
|
|
|
&.title {
|
|
|
|
font-weight: 500;
|
2022-04-02 07:06:48 +03:00
|
|
|
color: var(--accent-color);
|
|
|
|
}
|
2022-04-06 08:35:52 +03:00
|
|
|
&.bold {
|
|
|
|
font-weight: 600;
|
|
|
|
color: var(--theme-caption-color);
|
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
}
|
|
|
|
.an-element__icon-arrow {
|
|
|
|
margin-left: .5rem;
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 35% center;
|
|
|
|
transform: rotate(90deg);
|
|
|
|
transition: transform .2s ease;
|
|
|
|
|
|
|
|
&.collapsed { transform: rotate(0deg); }
|
|
|
|
&.small {
|
|
|
|
width: .325rem;
|
|
|
|
height: .325rem;
|
|
|
|
}
|
|
|
|
&.medium {
|
|
|
|
width: .375rem;
|
|
|
|
height: .375rem;
|
2022-02-04 13:02:56 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.an-element__tool {
|
2022-04-02 07:06:48 +03:00
|
|
|
margin-left: .75rem;
|
2022-02-04 13:02:56 +03:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
.an-element__counter {
|
2022-04-02 07:06:48 +03:00
|
|
|
margin-left: .75rem;
|
2022-02-04 13:02:56 +03:00
|
|
|
font-weight: 600;
|
|
|
|
font-size: .75rem;
|
2022-04-02 07:06:48 +03:00
|
|
|
color: var(--accent-color);
|
2022-02-04 13:02:56 +03:00
|
|
|
}
|
|
|
|
|
2022-04-02 07:06:48 +03:00
|
|
|
&:hover, &.hovered, &.selected {
|
|
|
|
background-color: var(--menu-bg-select);
|
|
|
|
.an-element__icon { color: var(--menu-icon-hover); }
|
|
|
|
.an-element__icon-arrow { opacity: 1; }
|
2022-02-04 13:02:56 +03:00
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
&:hover .an-element__tool, &.hovered .an-element__tool { visibility: visible; }
|
|
|
|
|
|
|
|
&:not(.collapsed) .an-element__icon-arrow { opacity: 1; }
|
|
|
|
&.parent {
|
|
|
|
margin: .5rem 1rem 1px;
|
|
|
|
padding: 0 .5rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
font-size: .75rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
|
|
|
|
.an-element__icon-arrow { opacity: 0; }
|
|
|
|
.an-element__label { color: var(--content-color); }
|
|
|
|
&.collapsed .an-element__icon-arrow,
|
|
|
|
&:hover .an-element__icon-arrow { opacity: 1; }
|
2022-02-04 13:02:56 +03:00
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
&.child { padding: 0 .25rem 0 1.5rem; }
|
2022-02-04 13:02:56 +03:00
|
|
|
|
|
|
|
&__dropbox {
|
|
|
|
height: auto;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
.antiNav-divider {
|
|
|
|
flex-shrink: 0;
|
2022-04-02 07:06:48 +03:00
|
|
|
margin: .25rem 0;
|
2022-02-02 12:05:33 +03:00
|
|
|
height: 1px;
|
2022-04-02 07:06:48 +03:00
|
|
|
// background-color: var(--divider-color);
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
|
|
|
.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%); }
|
2022-05-03 19:04:21 +03:00
|
|
|
.tableFade.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%); }
|
|
|
|
.tableFade.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% - 4.5rem - 1px), rgba(0, 0, 0, 0) calc(100% - 2.5rem), rgba(0, 0, 0, 1) calc(100% - 2.5rem + .5px)); }
|
|
|
|
.tableFade.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% - 4.5rem - 1px), rgba(0, 0, 0, 0) calc(100% - 2.5rem), rgba(0, 0, 0, 1) calc(100% - 2.5rem + .5px)); }
|
|
|
|
.tableFade.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%); }
|
2022-04-29 11:29:26 +03:00
|
|
|
|
|
|
|
/* Basic */
|
|
|
|
.antiTitle {
|
2022-05-05 11:29:46 +03:00
|
|
|
.icon-wrapper, &.icon-wrapper,
|
|
|
|
.title-wrapper, &.title-wrapper {
|
2022-04-29 11:29:26 +03:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
2022-05-05 11:29:46 +03:00
|
|
|
.title-wrapper, &.title-wrapper {
|
2022-04-29 11:29:26 +03:00
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2022-05-05 11:29:46 +03:00
|
|
|
.icon-wrapper, &.icon-wrapper { align-items: center; }
|
2022-04-29 11:29:26 +03:00
|
|
|
|
2022-05-05 11:29:46 +03:00
|
|
|
.wrapped-icon, &.wrapped-icon {
|
2022-04-29 11:29:26 +03:00
|
|
|
margin-right: .75rem;
|
|
|
|
color: var(--content-color);
|
|
|
|
}
|
2022-05-05 11:29:46 +03:00
|
|
|
.wrapped-title, &.wrapped-title {
|
2022-04-29 11:29:26 +03:00
|
|
|
min-width: 0;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 1rem;
|
|
|
|
color: var(--caption-color);
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2022-05-05 11:29:46 +03:00
|
|
|
.wrapped-subtitle, &.wrapped-subtitle {
|
2022-04-29 11:29:26 +03:00
|
|
|
min-width: 0;
|
|
|
|
font-size: 0.75rem;
|
|
|
|
color: var(--dark-color);
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
visibility: visible;
|
|
|
|
display: -webkit-box;
|
|
|
|
/* autoprefixer: ignore next */
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
line-clamp: 2;
|
2022-05-12 14:29:49 +03:00
|
|
|
user-select: text;
|
2022-05-05 11:29:46 +03:00
|
|
|
|
|
|
|
b { color: var(--content-color); }
|
2022-04-29 11:29:26 +03:00
|
|
|
}
|
|
|
|
}
|
2022-05-12 14:29:49 +03:00
|
|
|
|
|
|
|
.antiDivider {
|
|
|
|
margin: .25rem 0;
|
|
|
|
min-height: 1px;
|
|
|
|
height: 1px;
|
2022-05-15 07:50:49 +03:00
|
|
|
background-color: var(--divider-color);
|
2022-05-12 14:29:49 +03:00
|
|
|
}
|
2022-06-07 06:23:59 +03:00
|
|
|
|
2022-06-28 09:50:39 +03:00
|
|
|
.antiSection {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-shrink: 0;
|
|
|
|
min-height: 0;
|
|
|
|
|
|
|
|
&-header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: 2.5rem;
|
|
|
|
min-height: 2.5rem;
|
|
|
|
border-bottom: 1px solid var(--divider-color);
|
|
|
|
|
|
|
|
&__icon {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
margin-right: .5rem;
|
|
|
|
height: 2rem;
|
|
|
|
color: var(--caption-color);
|
|
|
|
}
|
|
|
|
&__title {
|
|
|
|
flex-grow: 1;
|
|
|
|
min-width: 0;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 1rem;
|
|
|
|
color: var(--caption-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-empty {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 1rem;
|
|
|
|
font-size: .75rem;
|
|
|
|
color: var(--dark-color);
|
|
|
|
border: 1px dashed var(--divider-color);
|
|
|
|
border-radius: 0.75rem;
|
|
|
|
|
|
|
|
&.solid { border-style: solid; }
|
|
|
|
&.items {
|
|
|
|
justify-content: start;
|
|
|
|
padding: .75rem;
|
|
|
|
}
|
|
|
|
&.solid.attachments {
|
|
|
|
background-color: var(--accent-bg-color);
|
|
|
|
|
|
|
|
.item { border-style: solid; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-07 06:23:59 +03:00
|
|
|
// Button on selected card in Kanban
|
|
|
|
.card-container.checked .button.inline.link-bordered {
|
|
|
|
background-color: var(--highlight-select);
|
|
|
|
border-color: var(--highlight-select-border);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--highlight-select-hover);
|
|
|
|
border-color: var(--highlight-select-border);
|
|
|
|
}
|
|
|
|
}
|