2024-11-22 15:34:32 +01:00

118 lines
2.3 KiB
SCSS

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC
@import "refactor/common-refactor.scss";
$width-settings-bar: $s-276;
$width-settings-bar-max: $s-500;
.left-settings-bar {
display: grid;
grid-template-areas:
"header header"
"content resize";
grid-template-rows: $s-52 1fr;
grid-template-columns: 1fr 0;
position: relative;
grid-area: left-sidebar;
min-width: $width-settings-bar;
max-width: $width-settings-bar-max;
width: var(--width, $width-settings-bar);
background-color: var(--panel-background-color);
height: 100vh;
max-height: 100vh;
.resize-area {
grid-area: resize;
}
}
.layers-tab {
padding-top: $s-4;
overflow-x: hidden;
}
.left-header {
grid-area: header;
}
.settings-bar-content {
grid-area: content;
right: calc(-1 * $s-8);
}
.resize-area {
position: absolute;
top: 0;
left: unset;
z-index: $z-index-4;
width: $s-8;
cursor: ew-resize;
height: 100%;
}
.tab-spacing {
margin-inline: $s-12;
}
.right-settings-bar {
grid-area: right-sidebar;
display: grid;
grid-template-rows: auto 1fr;
height: 100vh;
width: $width-settings-bar;
background-color: var(--panel-background-color);
z-index: 0;
&.not-expand {
max-width: $width-settings-bar;
}
&.expanded {
width: var(--width, $width-settings-bar);
}
.settings-bar-inside {
display: grid;
grid-template-columns: 100%;
grid-template-rows: 100%;
height: calc(100vh - $s-52);
overflow: hidden;
}
}
.resize-area-horiz {
position: absolute;
left: 0;
width: 100%;
border-bottom: $s-2 solid var(--resize-area-border-color);
cursor: ns-resize;
}
.left-sidebar-tabs {
--tabs-nav-padding-inline-start: var(--sp-m);
--tabs-nav-padding-inline-end: var(--sp-m);
}
.collapse-sidebar-button {
--collapse-icon-color: var(--color-foreground-secondary);
@include flexCenter;
@include buttonStyle;
height: 100%;
width: $s-24;
border-radius: $br-5;
color: var(--collapse-icon-color);
transform: rotate(180deg);
&:hover {
--collapse-icon-color: var(--color-foreground-primary);
}
}
.versions-tab {
width: 100%;
overflow: hidden;
height: calc(100vh - $s-88);
}