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
|
|
|
* {
|
2023-04-23 20:37:24 +03:00
|
|
|
--app-panel-width: 4.25rem;
|
2022-04-27 08:50:07 +03:00
|
|
|
}
|
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;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2023-04-23 20:37:24 +03:00
|
|
|
background-color: var(--theme-navpanel-color);
|
|
|
|
|
2022-10-04 18:49:11 +03:00
|
|
|
&.vertical {
|
|
|
|
flex-direction: column;
|
|
|
|
min-width: var(--app-panel-width);
|
|
|
|
width: var(--app-panel-width);
|
|
|
|
height: 100%;
|
2023-04-26 11:54:14 +03:00
|
|
|
border-right: 1px solid var(--theme-navpanel-divider);
|
2022-10-04 18:49:11 +03:00
|
|
|
}
|
|
|
|
&.horizonatl {
|
|
|
|
min-height: var(--app-panel-width);
|
|
|
|
height: var(--app-panel-width);
|
|
|
|
width: 100%;
|
2023-04-26 11:54:14 +03:00
|
|
|
border-top: 1px solid var(--theme-navpanel-divider);
|
2022-10-04 18:49:11 +03:00
|
|
|
}
|
2023-04-26 21:56:24 +03:00
|
|
|
&.lastDivider { border-color: var(--theme-navpanel-border); }
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
|
|
|
.antiPanel-navigator,
|
|
|
|
.antiPanel-component {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
2023-04-23 20:37:24 +03:00
|
|
|
|
|
|
|
&.filled { background-color: var(--theme-bg-color); }
|
2023-04-27 05:47:08 +03:00
|
|
|
&.filledNav { background-color: var(--theme-navpanel-color); }
|
2023-04-23 20:37:24 +03:00
|
|
|
&.border-left { border-left: 1px solid var(--theme-divider-color); }
|
|
|
|
&.border-right { border-right: 1px solid var(--theme-divider-color); }
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
|
|
|
.antiPanel-navigator {
|
2022-07-07 05:13:45 +03:00
|
|
|
position: relative;
|
2023-04-05 10:14:32 +03:00
|
|
|
min-width: 17.5rem;
|
|
|
|
max-width: 17.5rem;
|
|
|
|
width: 17.5rem;
|
2023-04-23 20:37:24 +03:00
|
|
|
background-color: var(--theme-navpanel-color);
|
|
|
|
border-right: 1px solid var(--theme-navpanel-border);
|
2022-07-07 05:13:45 +03:00
|
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
|
|
.antiPanel-navigator {
|
2022-04-27 08:50:07 +03:00
|
|
|
position: fixed;
|
2023-04-23 20:37:24 +03:00
|
|
|
top: var(--status-bar-height);
|
|
|
|
height: calc(100% - var(--status-bar-height));
|
|
|
|
background-color: var(--theme-navpanel-color);
|
2022-04-27 08:50:07 +03:00
|
|
|
filter: drop-shadow(2px 0 1px rgba(0, 0, 0, .2));
|
|
|
|
z-index: 450;
|
2022-10-04 18:49:11 +03:00
|
|
|
|
|
|
|
&.portrait {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
&.landscape {
|
2023-04-23 20:37:24 +03:00
|
|
|
left: var(--app-panel-width);
|
2022-10-04 18:49:11 +03:00
|
|
|
}
|
2022-04-27 08:50:07 +03:00
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
2022-04-28 12:53:35 +03:00
|
|
|
.antiPanel-component:not(.aside) {
|
|
|
|
flex-grow: 1;
|
2023-04-23 20:37:24 +03:00
|
|
|
background-color: var(--theme-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;
|
2023-04-05 10:14:32 +03:00
|
|
|
flex-direction: column;
|
|
|
|
margin-top: .5rem;
|
|
|
|
padding: .5rem 1.5rem;
|
|
|
|
|
|
|
|
.top {
|
|
|
|
font-size: .6875rem;
|
|
|
|
color: var(--trans-color);
|
|
|
|
}
|
|
|
|
.bottom {
|
|
|
|
margin-top: .25rem;
|
|
|
|
font-size: 1.25rem;
|
|
|
|
color: var(--caption-color);
|
|
|
|
}
|
2022-02-03 12:16:15 +03:00
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
.antiNav-subheader {
|
|
|
|
display: flex;
|
|
|
|
justify-content: stretch;
|
|
|
|
align-items: stretch;
|
2023-04-05 10:14:32 +03:00
|
|
|
margin: .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;
|
2023-04-05 10:14:32 +03:00
|
|
|
margin: 0 1rem;
|
|
|
|
padding: .625rem .75rem;
|
|
|
|
height: 2.25rem;
|
|
|
|
min-width: 0;
|
2023-03-16 07:16:11 +03:00
|
|
|
border: 1px solid transparent;
|
2022-04-02 07:06:48 +03:00
|
|
|
border-radius: .25rem;
|
2022-02-04 13:02:56 +03:00
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
.an-element__icon {
|
2023-04-05 10:14:32 +03:00
|
|
|
margin-right: .5rem;
|
2022-02-04 13:02:56 +03:00
|
|
|
min-width: 1rem;
|
2023-04-05 10:14:32 +03:00
|
|
|
color: var(--darker-color);
|
|
|
|
|
|
|
|
&.indent-2 { margin-left: 1.75rem; }
|
|
|
|
&.indent-4 { margin-left: 3.25rem; }
|
|
|
|
&.indent-8 { margin-left: 3.25rem; }
|
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;
|
2023-04-05 10:14:32 +03:00
|
|
|
|
|
|
|
&:not(.content-color) { color: var(--caption-color); }
|
2022-02-04 13:02:56 +03:00
|
|
|
&.title {
|
2023-04-05 10:14:32 +03:00
|
|
|
// font-weight: 500;
|
|
|
|
color: var(--caption-color);
|
2022-04-02 07:06:48 +03:00
|
|
|
}
|
2022-04-06 08:35:52 +03:00
|
|
|
&.bold {
|
|
|
|
font-weight: 600;
|
2023-03-10 03:08:04 +03:00
|
|
|
color: var(--caption-color);
|
2022-04-06 08:35:52 +03:00
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
}
|
|
|
|
.an-element__icon-arrow {
|
2023-04-05 10:14:32 +03:00
|
|
|
margin-left: .25rem;
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
2022-04-02 07:06:48 +03:00
|
|
|
opacity: 0;
|
2023-04-05 10:14:32 +03:00
|
|
|
transform-origin: center;
|
|
|
|
transform: rotate(0deg);
|
2022-04-02 07:06:48 +03:00
|
|
|
transition: transform .2s ease;
|
|
|
|
|
2023-04-05 10:14:32 +03:00
|
|
|
&.collapsed { transform: rotate(-90deg); }
|
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 {
|
2023-04-23 20:37:24 +03:00
|
|
|
// background-color: var(--theme-navpanel-hovered);
|
2023-04-05 10:14:32 +03:00
|
|
|
.an-element__icon,
|
|
|
|
.an-element__label { color: var(--caption-color); }
|
2022-04-02 07:06:48 +03:00
|
|
|
.an-element__icon-arrow { opacity: 1; }
|
2022-02-04 13:02:56 +03:00
|
|
|
}
|
2023-04-23 20:37:24 +03:00
|
|
|
&:hover, &.hovered { background-color: var(--theme-navpanel-hovered); }
|
|
|
|
&.selected { background-color: var(--theme-navpanel-selected); }
|
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 {
|
|
|
|
.an-element__icon-arrow { opacity: 0; }
|
2023-04-05 10:14:32 +03:00
|
|
|
.an-element__label {
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: .625rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
color: var(--content-color);
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
.an-element__label,
|
|
|
|
.an-element__icon-arrow { color: var(--caption-color); }
|
|
|
|
}
|
2022-04-02 07:06:48 +03:00
|
|
|
&.collapsed .an-element__icon-arrow,
|
|
|
|
&:hover .an-element__icon-arrow { opacity: 1; }
|
2022-02-04 13:02:56 +03:00
|
|
|
}
|
2023-04-05 10:14:32 +03:00
|
|
|
// &.child { padding: 0 .25rem 0 1.5rem; }
|
2022-02-04 13:02:56 +03:00
|
|
|
|
|
|
|
&__dropbox {
|
|
|
|
height: auto;
|
2023-04-05 10:14:32 +03:00
|
|
|
|
|
|
|
&:not(.short) { margin-bottom: .25rem; }
|
2022-02-04 13:02:56 +03:00
|
|
|
}
|
2023-03-03 19:56:04 +03:00
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
|
|
|
.an-element__icon {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.an-element__label {
|
|
|
|
color: rgb(var(--caption-color) / 40%);
|
|
|
|
}
|
|
|
|
}
|
2022-02-04 13:02:56 +03:00
|
|
|
}
|
2022-02-02 12:05:33 +03:00
|
|
|
.antiNav-divider {
|
|
|
|
flex-shrink: 0;
|
2023-04-05 10:14:32 +03:00
|
|
|
margin: .5rem 0;
|
2022-02-02 12:05:33 +03:00
|
|
|
height: 1px;
|
2022-07-02 07:03:25 +03:00
|
|
|
|
2023-04-23 20:37:24 +03:00
|
|
|
&.line { background-color: var(--theme-navpanel-divider); }
|
2022-07-02 07:03:25 +03:00
|
|
|
&.short { margin: .25rem 1rem; }
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
|
|
|
.antiNav-space {
|
|
|
|
flex-shrink: 0;
|
2023-04-05 10:14:32 +03:00
|
|
|
height: .5rem;
|
|
|
|
}
|
|
|
|
.antiNav-footer-line {
|
|
|
|
flex-shrink: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 1px;
|
2023-04-23 20:37:24 +03:00
|
|
|
background-color: var(--theme-navpanel-divider);
|
2023-04-05 10:14:32 +03:00
|
|
|
}
|
|
|
|
.antiNav-footer-grower {
|
|
|
|
flex-shrink: 10;
|
|
|
|
flex-grow: 1;
|
|
|
|
min-height: 0;
|
2022-02-02 12:05:33 +03:00
|
|
|
}
|
2022-10-20 05:45:57 +03:00
|
|
|
.antiNav-footer {
|
|
|
|
display: flex;
|
2023-04-05 10:14:32 +03:00
|
|
|
flex-direction: column;
|
|
|
|
// justify-content: flex-end;
|
|
|
|
// align-items: stretch;
|
|
|
|
// flex-grow: 5;
|
|
|
|
padding: .5rem 0 1.25rem;
|
2022-10-20 05:45:57 +03:00
|
|
|
}
|
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;
|
2023-04-23 20:37:24 +03:00
|
|
|
background-color: var(--theme-divider-color);
|
2023-01-17 04:07:05 +03:00
|
|
|
|
|
|
|
&.dark { background-color: var(--body-accent); }
|
|
|
|
&.noMargin { margin: 0; }
|
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);
|
2023-03-27 09:16:20 +03:00
|
|
|
|
|
|
|
&.high {
|
|
|
|
padding-right: 1rem;
|
|
|
|
height: 3.5rem;
|
|
|
|
min-height: 3.5rem;
|
|
|
|
}
|
2022-06-28 09:50:39 +03:00
|
|
|
&__icon {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
margin-right: .5rem;
|
|
|
|
height: 2rem;
|
|
|
|
color: var(--caption-color);
|
|
|
|
}
|
|
|
|
&__title {
|
2023-02-08 07:34:31 +03:00
|
|
|
min-width: 0;
|
|
|
|
font-size: 1rem;
|
|
|
|
color: var(--caption-color);
|
|
|
|
|
|
|
|
&:not(.short) { flex-grow: 1; }
|
|
|
|
}
|
|
|
|
&__header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-06-28 09:50:39 +03:00
|
|
|
flex-grow: 1;
|
2023-02-08 07:34:31 +03:00
|
|
|
margin: 0 .5rem 0 .75rem;
|
|
|
|
padding: .25rem .75rem;
|
|
|
|
height: 100%;
|
2022-06-28 09:50:39 +03:00
|
|
|
min-width: 0;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 1rem;
|
2023-02-08 07:34:31 +03:00
|
|
|
color: var(--caption-color);
|
|
|
|
background: var(--header-bg-color);
|
|
|
|
border-radius: .5rem .5rem 0 0;
|
2022-06-28 09:50:39 +03:00
|
|
|
}
|
2023-02-08 07:34:31 +03:00
|
|
|
&__counter {
|
2023-04-23 20:37:24 +03:00
|
|
|
color: var(--theme-darker-color);
|
2023-02-08 07:34:31 +03:00
|
|
|
}
|
2023-02-03 05:54:35 +03:00
|
|
|
&__tag {
|
2023-03-27 09:16:20 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: .3125rem .5rem;
|
2023-02-03 05:54:35 +03:00
|
|
|
min-width: 0;
|
2023-03-27 09:16:20 +03:00
|
|
|
font-size: .875rem;
|
2023-02-03 05:54:35 +03:00
|
|
|
background-color: var(--accent-bg-color);
|
|
|
|
color: var(--dark-color);
|
2023-03-27 09:16:20 +03:00
|
|
|
border: 1px solid var(--divider-color);
|
2023-02-03 05:54:35 +03:00
|
|
|
border-radius: .25rem;
|
|
|
|
|
2023-03-27 09:16:20 +03:00
|
|
|
.tag-icon {
|
|
|
|
margin-left: .5rem;
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
color: var(--accent-color);
|
|
|
|
|
|
|
|
&:hover { color: var(--caption-color); }
|
|
|
|
}
|
|
|
|
|
2023-02-03 05:54:35 +03:00
|
|
|
&.highlight { color: var(--content-color); }
|
|
|
|
}
|
2023-03-27 09:16:20 +03:00
|
|
|
&__tag + &__tag { margin-left: .375rem; }
|
2022-06-28 09:50:39 +03:00
|
|
|
}
|
2022-12-20 07:27:02 +03:00
|
|
|
.invisible { display: none; }
|
2022-06-28 09:50:39 +03:00
|
|
|
&-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);
|
|
|
|
}
|
|
|
|
}
|
2022-07-06 09:12:28 +03:00
|
|
|
|
|
|
|
// Replacing the background of a text editor in Activity
|
|
|
|
.activity-content .ref-container .textInput { background-color: var(--body-color) !important; }
|
2022-12-07 08:02:03 +03:00
|
|
|
|
|
|
|
// Emphasized
|
|
|
|
.antiEmphasized {
|
|
|
|
padding: .75rem;
|
2023-04-23 20:37:24 +03:00
|
|
|
background-color: var(--theme-comp-header-color);
|
2023-04-25 05:59:07 +03:00
|
|
|
border: 1px solid var(--theme-popup-divider);
|
|
|
|
border-radius: .25rem;
|
2022-12-07 08:02:03 +03:00
|
|
|
transition-property: border, background-color;
|
|
|
|
transition-duration: .15s;
|
|
|
|
transition-timing-function: var(--timing-main);
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus-within {
|
2023-04-23 20:37:24 +03:00
|
|
|
// background-color: var(--body-color);
|
|
|
|
border-color: var(--theme-list-divider-color);
|
2022-12-07 08:02:03 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-12 07:39:03 +03:00
|
|
|
// Accordion
|
|
|
|
.antiAccordion {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
min-width: 0;
|
|
|
|
min-height: 0;
|
|
|
|
|
|
|
|
.description {
|
|
|
|
// overflow: hidden;
|
|
|
|
padding: 0.75rem;
|
|
|
|
background-color: var(--body-accent);
|
|
|
|
border: 1px solid var(--button-border-color);
|
|
|
|
// border-radius: .5rem;
|
|
|
|
transition-property: background-color, height;
|
|
|
|
transition-duration: .15s;
|
|
|
|
transition-timing-function: var(--timing-main);
|
|
|
|
|
|
|
|
.label {
|
|
|
|
color: var(--dark-color);
|
|
|
|
text-shadow: var(--button-shadow);
|
|
|
|
}
|
|
|
|
.caption {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
margin: -.5rem;
|
|
|
|
padding: .5rem .5rem .5rem 1rem;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 1rem;
|
|
|
|
color: var(--caption-color);
|
|
|
|
background: var(--popup-bg-color);
|
|
|
|
border: 1px solid transparent;
|
|
|
|
border-radius: .125rem;
|
|
|
|
transition: margin-bottom .15s var(--timing-main),
|
|
|
|
border-radius .3s var(--timing-main),
|
|
|
|
box-shadow .15s var(--timing-main);
|
|
|
|
box-shadow: 0 0 .25rem .125rem #00000020;
|
|
|
|
// cursor: pointer;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
.value {
|
|
|
|
overflow: auto;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
margin: 0 .5rem;
|
|
|
|
max-height: 1.5rem;
|
|
|
|
font-weight: 400;
|
|
|
|
transition: opacity .15s var(--timing-main);
|
2022-12-14 07:53:37 +03:00
|
|
|
|
|
|
|
&::-webkit-scrollbar:vertical { width: 0; }
|
|
|
|
&::-webkit-scrollbar:horizontal { height: 0; }
|
2022-12-12 07:39:03 +03:00
|
|
|
}
|
|
|
|
.rotated-icon {
|
|
|
|
transform-origin: center;
|
2022-12-20 07:27:02 +03:00
|
|
|
transition: transform .15s var(--timing-main);
|
2022-12-12 07:39:03 +03:00
|
|
|
|
|
|
|
&.opened { transform: rotate(0deg); }
|
|
|
|
&.closed { transform: rotate(90deg); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.opened {
|
|
|
|
.caption .value { opacity: 0; }
|
2022-12-14 07:53:37 +03:00
|
|
|
.expand-collapse .expand-collapse,
|
2022-12-12 07:39:03 +03:00
|
|
|
.expand-collapse {
|
|
|
|
visibility: visible;
|
|
|
|
max-height: max-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.closed {
|
|
|
|
.caption {
|
|
|
|
margin-bottom: -.5rem;
|
|
|
|
|
|
|
|
.value { opacity: 1; }
|
2022-12-14 07:53:37 +03:00
|
|
|
&.hasAttachments { margin-bottom: 0; }
|
2022-12-12 07:39:03 +03:00
|
|
|
}
|
2022-12-14 07:53:37 +03:00
|
|
|
.expand-collapse .expand-collapse,
|
|
|
|
.expand-collapse:not(.hasAttachments) {
|
2022-12-12 07:39:03 +03:00
|
|
|
overflow: hidden;
|
|
|
|
visibility: hidden;
|
|
|
|
max-height: 0;
|
|
|
|
}
|
2022-12-20 07:27:02 +03:00
|
|
|
&:hover .caption.hasAttachments { margin-bottom: .5rem; }
|
2022-12-12 07:39:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
border-top-left-radius: .75rem;
|
|
|
|
border-top-right-radius: .75rem;
|
|
|
|
}
|
|
|
|
&:first-child .caption {
|
|
|
|
border-top-left-radius: .65rem;
|
|
|
|
border-top-right-radius: .65rem;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
border-bottom-left-radius: .75rem;
|
|
|
|
border-bottom-right-radius: .75rem;
|
|
|
|
}
|
|
|
|
&:last-child.closed .caption {
|
|
|
|
border-bottom-left-radius: .65rem;
|
|
|
|
border-bottom-right-radius: .65rem;
|
|
|
|
}
|
2022-12-20 07:27:02 +03:00
|
|
|
&:last-child:not(:first-child),
|
2022-12-12 07:39:03 +03:00
|
|
|
&:not(:first-child):not(:last-child) { border-top: none; }
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus-within { background-color: var(--body-color); }
|
|
|
|
// &:focus-within .caption { box-shadow: 0 0 2px 1px var(--primary-edit-border-color); }
|
|
|
|
&:focus-within .caption { border-color: var(--primary-edit-border-color); }
|
|
|
|
}
|
|
|
|
}
|
2023-01-30 05:55:35 +03:00
|
|
|
|
|
|
|
// Consecutive messages in Telegram (incomung/outcoming)
|
|
|
|
.message-row-bg[data-type="in"] + .message-row-bg[data-type="in"] .message-row .message-container {
|
|
|
|
padding-top: 0;
|
|
|
|
.message { border-radius: 0.125rem 0.75rem 0.75rem 0.125rem; }
|
|
|
|
}
|
|
|
|
.message-row-bg[data-type="out"] + .message-row-bg[data-type="out"] .message-row .message-container {
|
|
|
|
padding-top: 0;
|
|
|
|
.message.outcoming { border-radius: 0.75rem 0.125rem 0.125rem 0.75rem; }
|
|
|
|
}
|