consul/website/source/assets/stylesheets/_header.scss

177 lines
3.3 KiB
SCSS
Raw Normal View History

#header {
background: $header-background-color;
2014-02-08 00:41:03 +00:00
2018-06-22 19:18:15 +00:00
// 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;
2014-02-08 00:41:03 +00:00
.icon-bar {
border: 1px solid $white;
border-radius: 0;
2014-02-08 00:41:03 +00:00
}
2015-11-07 07:17:00 +00:00
}
2014-02-08 00:41:03 +00:00
2015-11-07 07:17:00 +00:00
.navbar-brand {
display: block;
margin: 0;
padding: 0;
a {
display: flex;
align-items: center;
height: $header-height;
2016-01-12 19:58:30 +00:00
line-height: $header-height;
2015-11-07 07:17:00 +00:00
svg.logo {
transition: opacity 0.15s ease-in-out;
@extend svg.logo.white;
2014-04-05 09:03:01 +00:00
2018-06-22 19:18:15 +00:00
&:hover,
&:focus,
&:active {
opacity: 0.6;
outline: 0;
text-decoration: none;
}
2015-11-07 07:17:00 +00:00
}
}
2015-11-07 07:17:00 +00:00
}
2014-04-05 09:03:01 +00:00
ul.nav {
li {
2018-06-22 19:18:15 +00:00
color: $consul-black;
font-size: $header-font-size;
font-family: $font-family-open-sans;
font-weight: $font-weight-bold;
height: $header-height;
margin: 0;
text-decoration: none;
2018-06-22 19:18:15 +00:00
&:hover,
&:focus,
&:active {
background-color: transparent;
color: $header-link-color-hover;
outline: 0;
svg {
fill: $header-link-color-hover;
}
2018-06-22 19:18:15 +00:00
}
span {
display: block;
padding: 15px;
line-height: 20px;
svg {
fill: $header-link-color;
position: relative;
2018-06-22 19:18:15 +00:00
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: 22rem;
box-shadow: 0px 4px 12px -2px rgba(63, 68, 85, 0.5);
border-radius: 3px;
padding: 2rem;
position: absolute;
2019-07-09 06:45:58 +00:00
height: 124px;
2018-06-22 19:18:15 +00:00
z-index: 1;
background-color: white;
margin-left: -15px;
&:hover {
visibility: visible;
opacity: 1;
}
li {
clear: both;
width: 100%;
display: block;
padding: 1rem;
position: relative;
height: 44px;
a {
text-decoration: none;
}
}
2015-11-07 07:17:00 +00:00
}
}
}
.buttons {
2018-06-22 19:18:15 +00:00
margin-top: 20px;
}
2014-02-08 00:41:03 +00:00
}