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

142 lines
2.2 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;
.main-logo {
2020-03-05 19:18:11 +01:00
border-right: 1px solid $color-gray-10;
padding-right: $small;
2019-12-19 12:50:58 +01:00
padding-top: $x-small;
2015-06-18 19:35:50 +02:00
svg {
2020-03-05 19:18:11 +01:00
fill: $color-black;
2019-12-19 12:50:58 +01:00
height: 30px;
2020-03-05 19:18:11 +01:00
width: 30px;
2015-06-18 19:35:50 +02:00
}
}
2020-03-05 19:18:11 +01:00
.btn-dashboard {
margin-left: auto;
}
2015-06-18 19:35:50 +02:00
}
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;
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;
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
}
.dropdown {
2020-03-05 19:18:11 +01:00
background-color: $color-gray-60;
2015-06-18 19:35:50 +02:00
border-radius: $br-small;
2015-12-15 12:58:49 +01:00
min-width: 150px;
2015-06-18 19:35:50 +02:00
padding: 0 $small;
position: absolute;
top: 0;
2015-12-15 12:58:49 +01:00
right: 0;
2015-06-18 19:35:50 +02:00
width: 100%;
z-index: 12;
@include animation(0,.2s,fadeInDown);
li {
font-size: $fs13;
padding: $small 0;
svg {
2020-03-05 19:18:11 +01:00
fill: $color-gray-20;
2015-06-18 19:35:50 +02:00
height: 12px;
width: 12px;
}
span {
2020-03-05 19:18:11 +01:00
color: $color-white;
2015-06-18 19:35:50 +02:00
}
&:hover {
span {
2020-03-05 19:18:11 +01:00
color: $color-primary;
2015-06-18 19:35:50 +02:00
}
svg {
2020-03-05 19:18:11 +01:00
fill: $color-primary;
2015-06-18 19:35:50 +02:00
}
}
}
}
}