penpot/frontend/src/app/main/ui/settings/sidebar.scss
2024-03-07 16:49:10 +01:00

154 lines
2.7 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
@use "common/refactor/common-refactor.scss" as *;
.dashboard-sidebar {
background-color: var(--panel-background-color);
border-right: $s-1 solid $db-quaternary;
display: flex;
flex-direction: column;
grid-column: 1 / span 2;
grid-row: 1 / span 2;
height: 100%;
margin: 0 $s-16 0 0;
padding: $s-16 0 0 0;
z-index: $z-index-1;
}
.sidebar-content {
display: flex;
flex-direction: column;
height: 100%;
overflow-y: auto;
padding: 0;
hr {
border-color: transparent;
margin: $s-12 $s-16;
}
}
.sidebar-nav {
display: flex;
flex-direction: column;
margin: 0;
overflow-y: auto;
user-select: none;
&.no-overflow {
overflow: unset;
}
li {
align-items: center;
cursor: pointer;
display: flex;
flex-shrink: 0;
padding: $s-8 $s-8 $s-8 $s-24;
color: $df-secondary;
a {
font-weight: $fw400;
width: 100%;
&:hover {
text-decoration: none;
}
}
svg {
stroke: currentColor;
fill: none;
margin-right: $s-8;
height: $s-12;
width: $s-12;
}
span {
font-size: $fs-14;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&::before {
display: none;
background-color: transparent;
border-radius: $br-4;
content: "";
height: $s-24;
margin-right: $s-8;
width: $s-4;
}
&.recent-projects {
svg {
fill: $df-primary;
}
}
& .edit-wrapper {
border: $s-1 solid $df-primary;
border-radius: $br-4;
display: flex;
width: 100%;
}
input.element-title {
border: 0;
height: $s-32;
padding: $s-6;
margin: 0;
width: 100%;
background-color: $df-primary;
}
.element-subtitle {
color: $df-secondary;
font-style: italic;
}
&:hover {
background-color: $db-quaternary;
&::before {
background-color: $df-primary;
}
}
&.current {
background-color: $db-quaternary;
color: $da-primary;
a {
font-weight: $fw400;
color: currentColor;
}
&::before {
background-color: $da-tertiary;
}
}
}
}
.back-to-dashboard {
display: flex;
align-items: center;
padding: $s-12 $s-16;
font-size: $fs-14;
cursor: pointer;
.text {
color: $df-primary;
}
}
.arrow-icon {
@extend .button-icon;
stroke: var(--icon-foreground);
transform: rotate(180deg);
margin-right: $s-12;
}