site-max/scss/_navbar.scss

101 lines
2.9 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 19:05:49 +02:00
border-color: fade-out(white, .7);
2017-07-14 15:51:49 +02:00
background-color: transparent;
.navbar-brand {
2017-07-14 19:05:49 +02:00
color: fade-out(white, .3);
2017-07-15 01:06:02 +02:00
-webkit-text-stroke: 1px rgba(0, 0, 0, 0.7);
2017-07-14 20:40:25 +02:00
font-size: 1.5rem;
2017-07-15 18:33:39 +02:00
small {
font-size: 1.3rem;
font-weight: 700;
}
2017-07-14 15:51:49 +02:00
&:hover,
&:focus {
2017-07-14 19:05:49 +02:00
color: white;
2017-07-14 15:51:49 +02:00
}
2017-08-12 22:20:41 +02:00
margin-left: 6rem;
2017-08-12 21:10:12 +02:00
}
.navbar-nav {
2017-08-12 22:20:41 +02:00
margin-right: 9rem;
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 19:05:49 +02:00
color: fade-out(white, .3);
2017-07-15 01:06:02 +02:00
-webkit-text-stroke: 1px rgba(0, 0, 0, 0.7);
font-size: 1.3rem;
2017-07-14 15:51:49 +02:00
&:hover {
2017-07-14 19:05:49 +02:00
color: white;
2017-07-14 15:51:49 +02:00
}
}
&.navbar-shrink {
border-color: fade-out($gray-darker, .95);
background-color: white;
.navbar-brand {
2017-07-15 01:06:02 +02:00
font-size: 1.3rem;
2017-07-14 15:51:49 +02:00
color: $theme-primary;
2017-07-15 01:06:02 +02:00
-webkit-text-stroke: 0px rgba(0, 0, 0, 0.7);
2017-07-15 18:33:39 +02:00
small {
font-size: 1rem;
font-weight: 700;
}
2017-07-14 15:51:49 +02:00
&: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;
2017-07-15 01:06:02 +02:00
-webkit-text-stroke: 0px rgba(0, 0, 0, 0.7);
font-size: 1rem;
2017-07-14 15:51:49 +02:00
&:hover {
color: $theme-primary;
}
}
}
}
}