diff options
| author | Martijn Cuppens <[email protected]> | 2019-09-06 09:24:08 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-09-06 18:06:13 +0300 |
| commit | 9066f9495cb41459574ab181fc3d435c1b4e358a (patch) | |
| tree | d2f43789877d75487f0bbfa0b5de09d82c7d4851 | |
| parent | c5e80ff2afe056fc959cd14b2ffda88016e0b81d (diff) | |
| download | bootstrap-9066f9495cb41459574ab181fc3d435c1b4e358a.tar.xz bootstrap-9066f9495cb41459574ab181fc3d435c1b4e358a.zip | |
Make sure the content doesn't cover the navbar dropdown
See https://github.com/twbs/bootstrap/pull/29368#issuecomment-528725686
| -rw-r--r-- | site/static/docs/4.3/assets/scss/_subnav.scss | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/site/static/docs/4.3/assets/scss/_subnav.scss b/site/static/docs/4.3/assets/scss/_subnav.scss index df192dcf3..58b55d081 100644 --- a/site/static/docs/4.3/assets/scss/_subnav.scss +++ b/site/static/docs/4.3/assets/scss/_subnav.scss @@ -1,4 +1,7 @@ .bd-subnavbar { + // The position and z-index are needed for the dropdown to stay on top of the content + position: relative; + z-index: $zindex-sticky; background-color: rgba($white, .75); backdrop-filter: blur(1rem); box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05), inset 0 -1px 0 rgba(0, 0, 0, .15); @@ -15,11 +18,8 @@ } @include media-breakpoint-up(md) { - @supports (position: sticky) { - position: sticky; - top: 0; - z-index: $zindex-sticky; - } + position: sticky; + top: 0; } } |
