Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1241 (comment), subnav in header + css
- Loading branch information
1 parent
6331beb
commit 883a456
Showing
4 changed files
with
8 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,8 @@ | ||
// Boosted mod: doesn't exist anymore in Bootstrap | ||
|
||
.bd-subnavbar { | ||
--bs-gutter-x: $bd-gutter-x; | ||
--bs-gutter-y: $bd-gutter-x; | ||
--bs-navbar-toggler-icon-bg: #{escape-svg($navbar-light-toggler-icon-bg-small)}; | ||
|
||
// The position and z-index are needed for the dropdown to stay on top of the content | ||
position: sticky; | ||
top: 3.125rem; | ||
z-index: $zindex-dropdown; // goes under the navbar + dropdown. | ||
|
||
// The z-index is needed for the dropdown to stay on top of the content | ||
z-index: $zindex-dropdown - 1; // goes under the navbar + dropdown. | ||
background-color: rgba($white, .95); | ||
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05), inset 0 -1px 0 rgba(0, 0, 0, .15); | ||
|
||
.dropdown-menu { | ||
@include font-size(.875rem); | ||
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05); | ||
} | ||
|
||
.dropdown-item.current { | ||
font-weight: 600; | ||
background-image: escape-svg($dropdown-active-icon); | ||
background-repeat: no-repeat; | ||
background-position: right $dropdown-item-padding-x top .6rem; | ||
background-size: .75rem .75rem; | ||
} | ||
|
||
@include media-breakpoint-up(md) { | ||
top: 3.75rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters