0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-29 18:09:19 -05:00
penpot/frontend/resources/styles/main/partials/main-bar.scss

156 lines
2.5 KiB
SCSS
Raw Normal View History

2016-03-01 20:39:13 +02:00
// 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) 2015-2016 Andrey Antukh <niwi@niwi.nz>
// Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
2015-06-18 19:35:50 +02:00
.main-bar {
align-items: center;
2020-03-05 19:18:11 +01:00
background-color: $color-white;
border-bottom: 1px solid $color-gray-10;
2015-06-18 19:35:50 +02:00
display: flex;
2019-12-19 12:50:58 +01:00
height: 40px;
2020-03-05 19:18:11 +01:00
padding: $x-small $small;
2015-06-18 19:35:50 +02:00
position: relative;
z-index: 10;
2020-03-19 16:22:28 +01:00
.element-name {
margin-right: $small;
}
2020-03-05 19:18:11 +01:00
.btn-dashboard {
2020-03-19 16:22:28 +01:00
flex-shrink: 0;
2020-03-05 19:18:11 +01:00
margin-left: auto;
}
2020-03-19 16:22:28 +01:00
svg {
fill: $color-black;
height: 14px;
margin-right: $x-small;
width: 14px;
}
2015-06-18 19:35:50 +02:00
}
2020-03-10 13:26:07 +01:00
.main-logo {
border-right: 1px solid $color-gray-10;
border-bottom: 1px solid $color-gray-10;
text-align: center;
padding-top: $x-small;
svg {
fill: $color-black;
height: 30px;
width: 30px;
}
}
2015-12-15 11:35:38 +01:00
.main-nav {
align-items: center;
display: flex;
2019-12-19 12:50:58 +01:00
font-size: $fs15;
height: 35px;
2015-12-15 22:56:03 +01:00
margin: 0 0 0 120px;
2015-12-15 11:35:38 +01:00
li {
a {
2019-12-19 12:50:58 +01:00
border-bottom: 2px solid transparent;
2020-03-03 13:14:37 +01:00
color: $color-gray-10;
2019-12-19 12:50:58 +01:00
margin: $x-small $big;
2015-12-15 11:35:38 +01:00
&:hover {
2020-03-03 13:14:37 +01:00
border-color: $color-primary;
2015-12-15 11:35:38 +01:00
}
}
&.current {
a {
2020-03-03 13:14:37 +01:00
border-color: $color-primary;
2015-12-15 11:35:38 +01:00
}
}
}
}
2020-03-05 19:18:11 +01:00
.dashboard-title {
color: $color-black;
2020-03-19 16:22:28 +01:00
display: flex;
2020-03-05 19:18:11 +01:00
font-size: $fs15;
font-weight: normal;
margin: 0 $x-big;
}
2015-06-18 19:35:50 +02:00
.user-zone {
align-items: center;
2020-03-05 19:18:11 +01:00
border-right: 1px solid $color-gray-10;
2020-03-10 13:26:07 +01:00
border-bottom: 1px solid $color-gray-10;
2015-06-18 19:35:50 +02:00
cursor: pointer;
display: flex;
2020-03-05 19:18:11 +01:00
padding: 0 $x-small 0 $small;
2015-06-18 19:35:50 +02:00
position: relative;
2020-03-05 19:18:11 +01:00
width: 180px;
2015-06-18 19:35:50 +02:00
span {
2020-03-05 19:18:11 +01:00
@include text-ellipsis;
color: $color-black;
2015-06-18 19:35:50 +02:00
margin: $small;
2020-03-05 19:18:11 +01:00
font-size: $fs12;
2015-06-18 19:35:50 +02:00
}
img {
border-radius: 50%;
2016-03-28 08:54:56 +02:00
flex-shrink: 0;
2019-12-18 10:25:11 +01:00
height: 25px;
width: 25px;
2015-06-18 19:35:50 +02:00
}
ul.profile-menu {
2015-06-18 19:35:50 +02:00
position: absolute;
top: 0;
left: 0;
2015-06-18 19:35:50 +02:00
z-index: 12;
width: 180px;
background-color: $color-gray-60;
border-radius: $br-small;
padding: 0 $small;
2015-06-18 19:35:50 +02:00
@include animation(0,.2s,fadeInDown);
2015-06-18 19:35:50 +02:00
li {
font-size: $fs13;
padding: $small 0;
2015-06-18 19:35:50 +02:00
svg {
fill: $color-gray-20;
height: 12px;
width: 12px;
}
2015-06-18 19:35:50 +02:00
span {
color: $color-white;
}
&:hover {
2015-06-18 19:35:50 +02:00
span {
color: $color-primary;
2015-06-18 19:35:50 +02:00
}
svg {
fill: $color-primary;
2015-06-18 19:35:50 +02:00
}
}
2015-06-18 19:35:50 +02:00
}
}
}