mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
a780d74b28
* Redesign docs navbar to use offcanvas, tweak overall padding while I'm here * Match code snippets to new gutter width * Replace value with docs-specific variable Opted not to do a CSS variable here since on .bd-content it would be inherited into our examples Co-authored-by: XhmikosR <xhmikosr@gmail.com>
45 lines
701 B
SCSS
45 lines
701 B
SCSS
.bd-navbar {
|
|
--bs-gutter-x: $bd-gutter-x;
|
|
--bs-gutter-y: $bd-gutter-x;
|
|
|
|
padding: .75rem 0;
|
|
background-color: $bd-purple-bright;
|
|
|
|
.navbar-toggler {
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
.navbar-nav {
|
|
.nav-link {
|
|
padding-right: $spacer * .25;
|
|
padding-left: $spacer * .25;
|
|
color: rgba($white, .85);
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: $white;
|
|
}
|
|
|
|
&.active {
|
|
font-weight: 600;
|
|
color: $white;
|
|
}
|
|
}
|
|
}
|
|
|
|
.navbar-nav-svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
}
|
|
|
|
.offcanvas {
|
|
background-color: $bd-purple-bright;
|
|
border-left: 0;
|
|
|
|
@include media-breakpoint-down(md) {
|
|
box-shadow: $box-shadow-lg;
|
|
}
|
|
}
|
|
}
|