nunta/scss/_navbar.scss

74 lines
1.5 KiB
SCSS
Raw Normal View History

// Styling for the navbar
#mainNav {
2017-08-11 21:12:34 +02:00
background-color: $gray-darker;
.navbar-toggler {
font-size: 12px;
right: 0;
padding: 13px;
text-transform: uppercase;
color: white;
border: 0;
background-color: $theme-primary;
@include heading-font;
}
.navbar-brand {
color: $theme-primary;
@include script-font;
&.active,
&:active,
&:focus,
&:hover {
color: darken($theme-primary, 10%);
}
}
.navbar-nav {
.nav-item {
.nav-link {
font-size: 90%;
font-weight: 400;
padding: 0.75em 0;
letter-spacing: 1px;
2017-05-08 20:57:42 +02:00
color: white;
@include heading-font;
2017-08-11 21:12:34 +02:00
&.active,
&:hover {
color: $theme-primary;
}
2017-08-11 21:12:34 +02:00
}
}
2017-08-11 21:12:34 +02:00
}
}
@media(min-width:992px) {
2017-08-11 21:12:34 +02:00
#mainNav {
padding-top: 25px;
padding-bottom: 25px;
-webkit-transition: padding-top 0.3s, padding-bottom 0.3s;
-moz-transition: padding-top 0.3s, padding-bottom 0.3s;
transition: padding-top 0.3s, padding-bottom 0.3s;
border: none;
background-color: transparent;
.navbar-brand {
font-size: 1.75em;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
}
.navbar-nav {
.nav-item {
.nav-link {
padding: 1.1em 1em !important;
}
2017-08-11 21:12:34 +02:00
}
}
&.navbar-shrink {
padding-top: 0;
padding-bottom: 0;
background-color: $gray-darker;
.navbar-brand {
font-size: 1.25em;
padding: 12px 0;
}
}
2017-08-11 21:12:34 +02:00
}
}