0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 04:49:03 -05:00
penpot/frontend/resources/styles/main/partials/dashboard-header.scss

140 lines
2.4 KiB
SCSS
Raw Normal View History

// 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/.
//
2022-09-20 23:23:22 +02:00
// Copyright (c) KALEIDOS INC
.dashboard-header {
display: flex;
align-items: center;
justify-content: space-between;
background-color: $color-white;
height: 63px;
2021-10-05 10:16:44 +02:00
padding: $size-1 $size-4 $size-1 $size-2;
position: relative;
z-index: 10;
user-select: none;
&.team {
display: grid;
grid-template-columns: 20% 1fr 20%;
}
.element-name {
2021-10-05 10:16:44 +02:00
margin-right: $size-2;
}
.btn-secondary {
flex-shrink: 0;
z-index: 10;
height: 32px;
}
svg {
fill: $color-black;
height: 14px;
2021-10-05 10:16:44 +02:00
margin-right: $size-1;
width: 14px;
}
nav {
2020-10-05 18:20:39 +02:00
display: flex;
align-items: flex-end;
2020-10-05 18:20:39 +02:00
justify-content: center;
z-index: 1;
ul {
display: flex;
2021-10-05 12:59:00 +02:00
font-size: $fs14;
justify-content: center;
margin: 0;
}
li {
a {
display: flex;
align-items: center;
flex-basis: 140px;
border-bottom: 3px solid transparent;
color: $color-gray-30;
height: 40px;
2021-10-05 10:16:44 +02:00
padding: $size-1 $size-5;
font-weight: $fw400;
&:hover {
color: $color-black;
2023-01-02 09:34:19 +01:00
text-decoration: none;
}
}
2020-10-05 18:20:39 +02:00
&.active {
a {
color: $color-black;
border-color: $color-primary;
}
}
}
}
.dashboard-title {
display: flex;
align-items: center;
margin-left: 13px;
2020-10-05 18:20:39 +02:00
h1 {
color: $color-black;
display: flex;
flex-shrink: 0;
font-size: $fs22;
font-weight: $fw600;
2020-10-05 18:20:39 +02:00
z-index: 10;
user-select: all;
2020-10-05 18:20:39 +02:00
}
.context-menu.is-open {
margin-top: 10px;
}
}
.icon {
display: flex;
align-items: center;
cursor: pointer;
2021-10-05 10:16:44 +02:00
margin-left: $size-2;
z-index: 10;
svg {
fill: $color-gray-40;
width: 15px;
height: 15px;
&:hover {
fill: $color-primary-dark;
}
}
}
.dashboard-buttons {
display: flex;
justify-content: flex-end;
align-items: center;
}
2021-06-15 09:55:38 +02:00
.dashboard-header-actions {
display: flex;
}
.pin-icon {
2021-10-05 10:16:44 +02:00
margin: 0 $size-2 0 $size-5;
2023-01-10 14:26:52 +01:00
background-color: transparent;
border: none;
svg {
fill: $color-gray-20;
}
&.active {
svg {
fill: $color-gray-50;
}
}
}
}