penpot/frontend/src/app/main/ui/workspace/left_toolbar.scss
2023-07-11 07:56:14 +02:00

79 lines
1.6 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";
.main-toolbar {
position: absolute;
top: $s-28;
left: calc(50% - $s-160);
display: flex;
align-items: center;
flex-direction: column;
height: $s-56;
padding: $s-8 $s-16;
border-radius: $s-8;
z-index: $z-index-20;
background-color: var(--color-background-primary);
transition: top 1s ease;
.main-toolbar-options {
position: relative;
display: flex;
align-items: center;
margin: 0;
opacity: $op-10;
transition: opacity 1s ease;
li {
position: relative;
button {
@extend .button-primary;
height: $s-36;
width: $s-36;
flex-shrink: 0;
background-color: transparent;
border-radius: $s-8;
border: none;
svg {
@extend .button-icon;
stroke: var(--color-foreground-secondary);
}
}
}
}
.toolbar-handler {
@include flexCenter;
@include buttonStyle;
position: absolute;
left: 0;
bottom: 0;
height: $s-12;
width: 100%;
.toolbar-handler-btn {
height: $s-4;
width: 100%;
max-width: $s-64;
padding: 0;
border-radius: $s-4;
background-color: var(--palette-handler-background-color);
}
}
&.hidden-toolbar {
top: 0;
z-index: $z-index-1;
.main-toolbar-options {
opacity: $op-0;
}
}
ul.main-toolbar-panels {
display: none;
}
}