penpot/frontend/src/app/main/ui/workspace/top_toolbar.scss
2024-01-17 12:13:54 +01:00

100 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";
.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-10;
background-color: var(--color-background-primary);
transition:
top 0.3s,
height 0.3s,
opacity 0.3s;
}
.main-toolbar-options {
position: relative;
display: flex;
align-items: center;
margin: 0;
opacity: $op-10;
transition: opacity 0.3s ease;
li {
position: relative;
button {
@extend .button-tertiary;
height: $s-36;
width: $s-36;
flex-shrink: 0;
background-color: transparent;
border-radius: $s-8;
border: none;
margin: 0 $s-2;
svg {
@extend .button-icon;
stroke: var(--color-foreground-secondary);
}
&.selected {
background-color: var(--button-radio-background-color-active);
svg {
stroke: var(--button-radio-foreground-color-active);
}
}
}
}
}
.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);
}
}
.main-toolbar.hidden-toolbar {
top: $s-20;
height: $s-16;
z-index: $z-index-1;
border-radius: 0 0 $s-8 $s-8;
.main-toolbar-options {
opacity: $op-0;
}
}
.main-toolbar.not-rulers-present {
top: $s-8;
&.hidden-toolbar {
top: $s-0;
}
}
ul.main-toolbar-panels {
display: none;
}