mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 17:28:54 +00:00
759a69b5b7
- Replace uses of deprecated Bourbon helpers with raw CSS - Add autoprefixer into the build chain to prefix the now removed helpers This process was achieved by running through each of the deprecation warnings and using the following bash function to replace it in all files: ``` function bourbon-deprecate() { grep -rl "@include $1" ./frontend --exclude-dir=.git | xargs sed -i '' -E "s/@include $1[(](.*)[)]/$1: \1/g" } ``` For some helpers, this did not result in valid CSS, so manual modifications were made. Closes #1189 #1274
235 lines
4.1 KiB
SCSS
235 lines
4.1 KiB
SCSS
.site-nav-header {
|
|
position: relative;
|
|
|
|
&__button {
|
|
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;
|
|
|
|
@at-root .site-nav--small & {
|
|
padding: 0;
|
|
}
|
|
|
|
@include breakpoint(smalldesk) {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
&__org {
|
|
@include clearfix;
|
|
transition: border 150ms $ease-in-quad;
|
|
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%;
|
|
|
|
@at-root .site-nav--small & {
|
|
margin: 24px 5px 10px;
|
|
}
|
|
|
|
@include breakpoint(smalldesk) {
|
|
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;
|
|
|
|
@at-root .site-nav--small & {
|
|
display: none;
|
|
margin: 24px 0 5px 63px;
|
|
}
|
|
|
|
@include breakpoint(smalldesk) {
|
|
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;
|
|
}
|
|
|
|
@at-root .site-nav--small & {
|
|
display: none;
|
|
}
|
|
|
|
@include breakpoint(smalldesk) {
|
|
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;
|
|
|
|
@at-root .site-nav--small & {
|
|
display: none;
|
|
}
|
|
|
|
@include breakpoint(smalldesk) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&__carat {
|
|
@include position(absolute, null 0 $pad-small null);
|
|
color: $accent-medium;
|
|
font-size: 9px;
|
|
|
|
@at-root .site-nav--small & {
|
|
display: none;
|
|
}
|
|
|
|
@include breakpoint(smalldesk) {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-menu-toggle {
|
|
height: 0;
|
|
width: 239px;
|
|
position: absolute;
|
|
left: $base;
|
|
padding: 0;
|
|
z-index: 2;
|
|
overflow: hidden;
|
|
opacity: 0;
|
|
box-sizing: border-box;
|
|
background-color: $brand-dark;
|
|
border: solid 1px rgba(73, 143, 226, 0.6);
|
|
|
|
&--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(150px);
|
|
width: 150px;
|
|
margin: 0;
|
|
float: left;
|
|
text-transform: none;
|
|
font-size: 15px;
|
|
font-weight: $bold;
|
|
line-height: 1.6;
|
|
letter-spacing: -0.5px;
|
|
color: rgba(255, 255, 255, 0.95);
|
|
}
|
|
|
|
&__position {
|
|
font-weight: $normal;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
|
|
em {
|
|
padding-right: 4px;
|
|
}
|
|
}
|
|
|
|
&__nav {
|
|
clear: both;
|
|
}
|
|
|
|
&__nav-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
&__nav-item {
|
|
font-size: 15px;
|
|
font-weight: $normal;
|
|
letter-spacing: 0.5px;
|
|
padding: 14px 0;
|
|
|
|
a {
|
|
transition: opacity 75ms $ease-in-quad, background 75ms $ease-in-quad;
|
|
color: $white;
|
|
display: block;
|
|
text-decoration: none;
|
|
text-transform: none;
|
|
margin: 0 18px;
|
|
line-height: 40px;
|
|
border-radius: 4px;
|
|
padding: 0 9px;
|
|
opacity: 0.75;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
i {
|
|
margin-right: $pad-half;
|
|
font-size: $large;
|
|
vertical-align: text-bottom;
|
|
}
|
|
}
|
|
|
|
&:first-child {
|
|
border-bottom: solid 1px rgba(73, 143, 226, 0.4);
|
|
|
|
a {
|
|
&:hover {
|
|
background-color: $link;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
a {
|
|
&:hover {
|
|
background-color: #3c3655;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|