penpot/frontend/src/app/main/ui/workspace/sidebar.scss

83 lines
1.9 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 {
position: relative;
grid-area: left-sidebar;
min-width: $width-settings-bar;
max-width: $width-settings-bar-max;
width: var(--width, $width-settings-bar);
height: 100%;
background-color: var(--panel-background-color);
.resize-area {
position: absolute;
right: calc(-1 * $s-8);
z-index: $z-index-3;
width: $s-8;
height: calc(100vh - $s-52);
cursor: ew-resize;
}
.resize-area-horiz {
position: absolute;
top: calc($s-80 + var(--height, 200px));
left: 0;
width: 100%;
height: $s-12;
border-top: 2px solid var(--color-background-quaternary);
background-color: var(--color-background-primary);
cursor: ns-resize;
}
.settings-bar-inside {
display: grid;
grid-template-columns: 100%;
grid-template-rows: 100%;
height: calc(100vh - $s-52);
overflow: hidden;
.tabs-wrapper {
.layers-tab {
display: grid;
grid-template-rows: auto 1fr;
grid-template-columns: 100%;
height: 100%;
overflow: hidden;
}
}
}
}
.tab-spacing {
margin: $s-4 $s-12 0 $s-12;
}
.right-settings-bar {
grid-area: right-sidebar;
width: $width-settings-bar;
background-color: var(--panel-background-color);
height: 100%;
display: flex;
flex-direction: column;
&.not-expand {
max-width: $width-settings-bar;
}
&.expanded {
width: var(--width, $width-settings-bar);
}
.resize-area {
position: absolute;
height: 100%;
width: $s-8;
z-index: $z-index-3;
cursor: ew-resize;
}
.settings-bar-inside {
height: calc(100vh - $s-52);
}
}