diff options
| author | Mark Otto <[email protected]> | 2017-05-29 20:28:42 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-05-29 23:32:28 -0700 |
| commit | f95cbc5950bf31995f33023014c47a61665ffacc (patch) | |
| tree | 5ffe09c63ac4e522890fc7b2b87c0a47b0f1a971 | |
| parent | 12ca6d9d34bbfa96d14b3f72569a9687200b2705 (diff) | |
| download | bootstrap-f95cbc5950bf31995f33023014c47a61665ffacc.tar.xz bootstrap-f95cbc5950bf31995f33023014c47a61665ffacc.zip | |
wrap the sticky in a @supports so that edge and ie don't screw it all up
| -rw-r--r-- | assets/scss/_sidebar.scss | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/assets/scss/_sidebar.scss b/assets/scss/_sidebar.scss index 7c5d9ef16..8816609c1 100644 --- a/assets/scss/_sidebar.scss +++ b/assets/scss/_sidebar.scss @@ -5,9 +5,11 @@ // .bd-toc { - position: sticky; - top: 4rem; - max-height: calc(100vh - 4rem); + @supports (position: sticky) { + position: sticky; + top: 4rem; + max-height: calc(100vh - 4rem); + } padding-top: 1.5rem; padding-bottom: 1.5rem; overflow-y: auto; @@ -47,9 +49,11 @@ border-bottom: 1px solid rgba(0,0,0,.1); @include media-breakpoint-up(md) { - position: sticky; - top: 4rem; - max-height: calc(100vh - 4rem); + @supports (position: sticky) { + position: sticky; + top: 4rem; + max-height: calc(100vh - 4rem); + } overflow-y: auto; border-right: 1px solid rgba(0,0,0,.1); } |
