open-consul/website/source/assets/stylesheets/_header.scss
RJ Spiker 8c11e3a4fc website - font and brand updates (#6716)
* website - font and brand updates

* sidebar font-size adjustments and scss cleanup

* adjust nav and inline code styles
2019-11-06 13:53:36 -05:00

182 lines
3.3 KiB
SCSS
Executable file

#header {
background: $header-background-color;
.navbar-nav > li > a {
padding-left: 12px;
padding-right: 12px;
}
// Kind of gnarly override for bootstrap's nav toggle behavior
@media (max-width: 991px) {
.navbar-header {
float: none;
}
.navbar-left,
.navbar-right {
float: none !important;
}
.navbar-toggle {
display: block;
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-collapse.collapse {
display: none !important;
}
.navbar-nav {
float: none !important;
margin-top: 7.5px;
}
.navbar-nav > li {
float: none;
}
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
}
.collapse.in {
display: block !important;
}
}
.navbar-toggle {
height: $header-height;
margin: 0;
padding-right: 15px;
border-radius: 0;
.icon-bar {
border: 1px solid $white;
border-radius: 0;
}
}
.navbar-brand {
display: block;
margin: 0;
padding: 0;
a {
display: flex;
align-items: center;
height: $header-height;
line-height: $header-height;
svg.logo {
transition: opacity 0.15s ease-in-out;
@extend svg.logo.white;
&:hover,
&:focus,
&:active {
opacity: 0.6;
outline: 0;
text-decoration: none;
}
}
}
}
ul.nav {
li {
color: $gray-1;
font-size: $header-font-size;
font-family: $font-body;
font-weight: $font-weight-bold;
height: $header-height;
margin: 0;
text-decoration: none;
&:hover,
&:focus,
&:active {
background-color: transparent;
color: $header-link-color-hover;
outline: 0;
svg {
fill: $header-link-color-hover;
}
}
span {
display: block;
padding: 15px;
line-height: 20px;
svg {
fill: $header-link-color;
position: relative;
top: -2px;
width: 9px;
height: 5px;
margin-left: 7px;
}
}
svg {
fill: $header-link-color;
position: relative;
top: 2px;
width: 14px;
height: 14px;
margin-right: 3px;
}
&:hover {
cursor: pointer;
& > ul {
visibility: visible;
opacity: 1;
display: block;
transition: all 0.5s ease;
}
}
ul {
visibility: hidden;
opacity: 0;
transition: all 0.5s ease;
min-width: 220px;
box-shadow: 0px 4px 12px -2px rgba(63, 68, 85, 0.5);
border-radius: 3px;
padding: 20px;
position: absolute;
height: 124px;
z-index: 1;
background-color: white;
margin-left: -15px;
&:hover {
visibility: visible;
opacity: 1;
}
li {
clear: both;
width: 100%;
display: block;
padding: 10px;
position: relative;
height: 44px;
a {
text-decoration: none;
}
}
}
}
}
.buttons {
margin-top: 20px;
}
}