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

122 lines
1.8 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;
2016-02-17 08:56:02 +01:00
background-color: $primary-ui-bg;
2015-06-18 19:35:50 +02:00
display: flex;
2016-02-20 22:26:07 +01:00
height: 60px;
2015-06-18 19:35:50 +02:00
padding: $x-small $medium;
position: relative;
z-index: 10;
.main-logo {
svg {
2016-02-19 19:41:33 +01:00
fill: $medium-ui-icons;
2015-06-18 19:35:50 +02:00
height: 40px;
width: 120px;
}
}
}
2015-12-15 11:35:38 +01:00
.main-nav {
align-items: center;
display: flex;
height: 50px;
2015-12-15 22:56:03 +01:00
margin: 0 0 0 120px;
2015-12-15 11:35:38 +01:00
li {
a {
2016-02-19 19:41:33 +01:00
color: $soft-ui-text;
2015-12-15 11:35:38 +01:00
padding: 1rem;
&:hover {
2016-02-19 19:41:33 +01:00
color: $intense-ui-text;
2015-12-15 11:35:38 +01:00
}
}
&.current {
a {
2016-02-19 19:41:33 +01:00
color: $intense-ui-text;
2015-12-15 11:35:38 +01:00
}
}
}
}
2015-06-18 19:35:50 +02:00
.user-zone {
align-items: center;
cursor: pointer;
display: flex;
margin-left: auto;
position: relative;
span {
2016-02-19 19:41:33 +01:00
color: $medium-ui-text;
2015-06-18 19:35:50 +02:00
margin: $small;
}
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 {
2019-02-19 15:56:22 +01:00
background-color: $secondary-ui-bg;
2015-06-18 19:35:50 +02:00
border-radius: $br-small;
2016-02-19 19:41:33 +01:00
border: 1px solid $soft-ui-border;
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 {
2016-02-19 19:41:33 +01:00
fill: $medium-ui-text;
2015-06-18 19:35:50 +02:00
height: 12px;
width: 12px;
}
span {
2016-02-19 19:41:33 +01:00
color: $medium-ui-text;
2015-06-18 19:35:50 +02:00
}
&:hover {
span {
2016-02-19 19:41:33 +01:00
color: $intense-ui-text;
2015-06-18 19:35:50 +02:00
}
svg {
2016-02-19 19:41:33 +01:00
fill: $intense-ui-text;
2015-06-18 19:35:50 +02:00
}
}
}
}
}