mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-01 20:53:13 +01:00
78 lines
1.6 KiB
SCSS
78 lines
1.6 KiB
SCSS
// Base styling for the navbar
|
|
#mainNav {
|
|
box-shadow: $box-shadow;
|
|
background-color: $white;
|
|
transition: background-color 0.2s ease;
|
|
.navbar-brand {
|
|
font-family: $font-family-sans-serif;
|
|
font-weight: $font-weight-bold;
|
|
color: $gray-900;
|
|
}
|
|
.navbar-nav {
|
|
.nav-item {
|
|
.nav-link {
|
|
color: $gray-600;
|
|
font-family: $font-family-sans-serif;
|
|
font-weight: $font-weight-bold;
|
|
font-size: 0.9rem;
|
|
padding: 0.75rem 0;
|
|
&:hover,
|
|
&:active {
|
|
color: $primary;
|
|
}
|
|
&.active {
|
|
color: $primary !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@include media-breakpoint-up(lg) {
|
|
// Base styling for the navbar - screen sizes greater than the large breakpoint
|
|
box-shadow: none;
|
|
background-color: transparent;
|
|
.navbar-brand {
|
|
color: fade-out($white, .3);
|
|
&:hover {
|
|
color: $white;
|
|
}
|
|
}
|
|
.navbar-nav {
|
|
.nav-item {
|
|
.nav-link {
|
|
color: fade-out($white, .3);
|
|
padding: 0 1rem;
|
|
&:hover {
|
|
color: $white;
|
|
}
|
|
}
|
|
&:last-child {
|
|
.nav-link {
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// Navbar styling applied when the page is scrolled
|
|
&.navbar-scrolled {
|
|
box-shadow: $box-shadow;
|
|
background-color: $white;
|
|
.navbar-brand {
|
|
color: $gray-900;
|
|
&:hover {
|
|
color: $primary;
|
|
}
|
|
}
|
|
.navbar-nav {
|
|
.nav-item {
|
|
.nav-link {
|
|
color: $gray-900;
|
|
&:hover {
|
|
color: $primary;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|