Files
penpot/frontend/src/app/main/ui/workspace/left_header.scss
Eva Marco b1fe32baea ♻️ Remove deprecated @import from scss files (#7347)
* 🐛 Fix import warnings 1 of 2

* 🐛 Fix import warnings 2 of 2

* 🐛 Fix visual tests and format files

* 🐛 Fix mixed declarations on scss
2025-09-19 11:50:08 +02:00

128 lines
2.4 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 "refactor/common-refactor.scss" as *;
.workspace-header-left {
display: flex;
align-items: center;
padding: $s-12 $s-12 $s-8 $s-12;
min-height: $s-52;
}
.main-icon {
@include flexCenter;
width: $s-32;
height: $s-32;
min-height: $s-32;
margin-right: $s-4;
svg {
min-height: $s-32;
width: $s-32;
fill: var(--icon-foreground-hover);
}
}
.project-tree {
position: relative;
flex-grow: 1;
height: $s-32;
min-height: $s-32;
max-width: calc(100% - $s-64);
}
.project-name,
.file-name {
@include uppercaseTitleTipography;
@include textEllipsis;
height: $s-16;
width: 100%;
padding-bottom: $s-2;
color: var(--title-foreground-color);
cursor: pointer;
}
.file-name {
@include smallTitleTipography;
text-transform: none;
color: var(--title-foreground-color-hover);
align-items: center;
display: flex;
flex-direction: row;
}
.file-name-label {
@include textEllipsis;
}
.file-name-input {
@include flexCenter;
width: 100%;
margin: 0;
border: 0;
padding: 0;
border-radius: $br-4;
background-color: var(--input-background-color);
font-size: $fs-14;
color: var(--input-foreground-color);
z-index: $z-index-20;
white-space: break-spaces;
&:focus {
outline: none;
}
}
.shared-badge {
@include flexCenter;
width: $s-16;
height: $s-32;
margin-right: $s-4;
svg {
stroke: var(--button-secondary-foreground-color-rest);
fill: none;
height: $s-16;
width: $s-16;
}
}
.status-notification {
width: $s-6;
height: $s-6;
border-radius: 50%;
margin-right: $s-4;
flex-shrink: 0;
background-color: var(--status-widget-background-color-pending);
&.pending-status {
background-color: var(--status-widget-background-color-warning);
}
&.saving-status {
background-color: var(--status-widget-background-color-pending);
}
&.saved-status {
background-color: var(--status-widget-background-color-success);
animation: jump 0.3s ease-out;
}
&.error-status {
background-color: var(--status-widget-background-color-error);
}
}
@keyframes jump {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-4px);
}
100% {
transform: translateY(0);
}
}