fleet/frontend/components/side_panels/SiteNavHeader/_styles.scss

207 lines
3.7 KiB
SCSS
Raw Normal View History

2016-12-01 22:14:39 +00:00
.site-nav-header {
position: relative;
&__button {
@include transition(background 150ms $ease-in-quad);
cursor: pointer;
padding: $pad-large $pad-medium 0;
position: relative;
display: block;
width: 100%;
color: $text-ultradark;
text-align: left;
border-radius: 0;
2016-12-21 18:39:40 +00:00
@include breakpoint(smalldesk) {
2016-12-01 22:14:39 +00:00
padding: 0;
}
}
&__org {
@include transition(border 150ms $ease-in-quad);
@include clearfix;
position: relative;
z-index: 2;
border-bottom: 1px solid $accent-light;
padding-bottom: $pad-medium;
max-height: 100px;
}
&__logo {
@include size(42px);
float: left;
margin-right: 10px;
border: 1px solid $accent-medium;
border-radius: 50%;
2016-12-21 18:39:40 +00:00
@include breakpoint(smalldesk) {
2016-12-01 22:14:39 +00:00
margin: 24px 5px 10px;
}
}
&__org-name {
@include ellipsis(110px);
font-size: 16px;
letter-spacing: 0.5px;
padding: 0;
white-space: nowrap;
text-transform: none;
font-weight: $bold;
display: block;
color: $text-ultradark;
2016-12-01 22:14:39 +00:00
2016-12-21 18:39:40 +00:00
@include breakpoint(smalldesk) {
2016-12-01 22:14:39 +00:00
display: none;
margin: 24px 0 5px 63px;
}
}
&__user-status {
@include size(16px);
background-color: $warning;
border-radius: 50%;
display: inline-block;
margin-right: 6px;
position: relative;
&--enabled {
background-color: $success;
}
2016-12-21 18:39:40 +00:00
@include breakpoint(smalldesk) {
2016-12-01 22:14:39 +00:00
display: none;
}
}
&__username {
@include ellipsis(110px);
margin: 0;
padding: 0;
font-size: 13px;
letter-spacing: 0.6px;
text-transform: uppercase;
position: relative;
line-height: 16px;
2016-12-21 18:39:40 +00:00
@include breakpoint(smalldesk) {
2016-12-01 22:14:39 +00:00
display: none;
}
}
&__carat {
@include position(absolute, null 0 $pad-small null);
color: $accent-medium;
font-size: 9px;
}
2016-12-01 22:14:39 +00:00
}
.user-menu-toggle {
height: 0;
width: 239px;
position: absolute;
2017-01-05 15:41:53 +00:00
left: $base;
2016-12-01 22:14:39 +00:00
padding: 0;
z-index: 2;
overflow: hidden;
opacity: 0;
box-sizing: border-box;
2017-01-05 15:41:53 +00:00
border-radius: 4px;
background-color: #443a6b;
box-shadow: 1px 6px 15px 0 rgba(0, 0, 0, 0.2);
border: solid 1px rgba(73, 143, 226, 0.6);
2016-12-01 22:14:39 +00:00
&--open {
height: auto;
padding: $pad-medium 0 0;
opacity: 1;
}
&__avatar {
@include size(42px);
float: left;
border: solid 1px $accent-medium;
border-radius: 50%;
margin: 0 10px 0 $pad-medium;
}
&__name,
&__position {
@include ellipsis(170px);
margin: 0;
float: left;
text-transform: none;
2017-01-05 15:41:53 +00:00
font-size: 15px;
font-weight: $bold;
line-height: 1.6;
letter-spacing: -0.5px;
color: rgba(255, 255, 255, 0.95);
2016-12-01 22:14:39 +00:00
}
2017-01-05 15:41:53 +00:00
&__position {
font-weight: $normal;
color: rgba(255, 255, 255, 0.6);
em {
padding-right: 4px;
}
2016-12-01 22:14:39 +00:00
}
&__nav {
clear: both;
}
&__nav-list {
list-style: none;
margin: 0;
padding: 0;
}
&__nav-item {
2017-01-05 15:41:53 +00:00
font-size: 15px;
font-weight: $normal;
letter-spacing: 0.5px;
padding: 14px 0;
2016-12-01 22:14:39 +00:00
a {
2017-01-05 15:41:53 +00:00
@include transition(opacity 75ms $ease-in-quad, background 75ms $ease-in-quad);
2016-12-01 22:14:39 +00:00
color: $white;
display: block;
text-decoration: none;
2017-01-05 15:41:53 +00:00
text-transform: none;
margin: 0 18px;
line-height: 40px;
border-radius: 4px;
padding: 0 9px;
opacity: 0.75;
&:hover {
opacity: 1;
}
2016-12-01 22:14:39 +00:00
i {
margin-right: $pad-half;
font-size: $large;
2017-01-05 15:41:53 +00:00
vertical-align: text-bottom;
2016-12-01 22:14:39 +00:00
}
2017-01-05 15:41:53 +00:00
}
2016-12-01 22:14:39 +00:00
2017-01-05 15:41:53 +00:00
&:first-child {
border-bottom: solid 1px rgba(73, 143, 226, 0.4);
a {
&:hover {
background-color: $link;
}
2016-12-01 22:14:39 +00:00
}
}
2017-01-05 15:41:53 +00:00
&:last-child {
a {
&:hover {
background-color: #3c3655;
}
2016-12-01 22:14:39 +00:00
}
}
}
}