diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2019-09-06 10:24:08 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-09-06 18:06:13 +0300 |
commit | 9066f9495cb41459574ab181fc3d435c1b4e358a (patch) | |
tree | d2f43789877d75487f0bbfa0b5de09d82c7d4851 /site/static/docs | |
parent | c5e80ff2afe056fc959cd14b2ffda88016e0b81d (diff) |
Make sure the content doesn't cover the navbar dropdown
See https://github.com/twbs/bootstrap/pull/29368#issuecomment-528725686
Diffstat (limited to 'site/static/docs')
-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 df192dcf30..58b55d0817 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; } } |