site-max/scss/_navbar.scss

82 lines
2.2 KiB
SCSS
Raw Normal View History

2017-07-14 15:51:49 +02:00
// Styling for the navbar
#mainNav {
border-color: fade-out($gray-darker, .95);
background-color: white;
@include sans-serif-font;
@include transition-all;
.navbar-brand {
font-weight: 700;
text-transform: uppercase;
2017-07-14 16:30:04 +02:00
color: $theme-primary;
2017-07-14 15:51:49 +02:00
@include sans-serif-font;
&:hover,
&:focus {
2017-07-14 16:30:04 +02:00
color: darken($theme-primary, .1);
2017-07-14 15:51:49 +02:00
}
}
.navbar-toggle {
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
2017-07-14 16:30:04 +02:00
color: $gray-darker;
2017-07-14 15:51:49 +02:00
}
.navbar-nav {
> li.nav-item {
> a.nav-link,
> a.nav-link:focus {
font-size: 13px;
font-weight: 700;
text-transform: uppercase;
2017-07-14 16:30:04 +02:00
color: $gray-darker;
2017-07-14 15:51:49 +02:00
&:hover {
2017-07-14 16:30:04 +02:00
color: $theme-primary;
2017-07-14 15:51:49 +02:00
}
&.active {
color: $theme-primary !important;
background-color: transparent;
&:hover {
background-color: transparent;
}
}
}
}
}
@media (min-width: 992px) {
2017-07-14 16:30:04 +02:00
border-color: fade-out(black, .7);
2017-07-14 15:51:49 +02:00
background-color: transparent;
.navbar-brand {
2017-07-14 16:30:04 +02:00
color: fade-out(black, .3);
2017-07-14 15:51:49 +02:00
&:hover,
&:focus {
2017-07-14 16:30:04 +02:00
color: black;
2017-07-14 15:51:49 +02:00
}
}
.navbar-nav > li.nav-item > a.nav-link,
.navbar-nav > li.nav-item > a.nav-link:focus {
2017-07-14 16:30:04 +02:00
color: fade-out(black, .3);
2017-07-14 15:51:49 +02:00
&:hover {
2017-07-14 16:30:04 +02:00
color: black;
2017-07-14 15:51:49 +02:00
}
}
&.navbar-shrink {
border-color: fade-out($gray-darker, .95);
background-color: white;
.navbar-brand {
font-size: 16px;
color: $theme-primary;
&:hover,
&:focus {
color: darken($theme-primary, .1);
}
}
.navbar-nav > li.nav-item > a.nav-link,
.navbar-nav > li.nav-item > a.nav-link:focus {
color: $gray-darker;
&:hover {
color: $theme-primary;
}
}
}
}
}