diff options
| author | Martijn Cuppens <[email protected]> | 2020-04-18 14:10:18 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-18 14:10:18 +0200 |
| commit | 4fc701f6aa8b01fb952733b8a4a0b55337760391 (patch) | |
| tree | c04475d94abbdf75c5dec8251ce655379b446fcb | |
| parent | 338ca8382187ecf9cd7c4c1f63c28f7853330c2d (diff) | |
| download | bootstrap-4fc701f6aa8b01fb952733b8a4a0b55337760391.tar.xz bootstrap-4fc701f6aa8b01fb952733b8a4a0b55337760391.zip | |
Drop `@support (position: sticky)` media query (#30415)
| -rw-r--r-- | scss/helpers/_position.scss | 16 | ||||
| -rw-r--r-- | site/assets/scss/_toc.scss | 14 |
2 files changed, 13 insertions, 17 deletions
diff --git a/scss/helpers/_position.scss b/scss/helpers/_position.scss index 6bcbbbd5a..31851eb72 100644 --- a/scss/helpers/_position.scss +++ b/scss/helpers/_position.scss @@ -17,16 +17,14 @@ } // Responsive sticky top -@supports (position: sticky) { - @each $breakpoint in map-keys($grid-breakpoints) { - @include media-breakpoint-up($breakpoint) { - $infix: breakpoint-infix($breakpoint, $grid-breakpoints); +@each $breakpoint in map-keys($grid-breakpoints) { + @include media-breakpoint-up($breakpoint) { + $infix: breakpoint-infix($breakpoint, $grid-breakpoints); - .sticky#{$infix}-top { - position: sticky; - top: 0; - z-index: $zindex-sticky; - } + .sticky#{$infix}-top { + position: sticky; + top: 0; + z-index: $zindex-sticky; } } } diff --git a/site/assets/scss/_toc.scss b/site/assets/scss/_toc.scss index 17ac4b819..596945628 100644 --- a/site/assets/scss/_toc.scss +++ b/site/assets/scss/_toc.scss @@ -2,14 +2,12 @@ .bd-toc { @include media-breakpoint-up(lg) { - @supports (position: sticky) { - position: sticky; - top: 5rem; - right: 0; - z-index: 2; - height: subtract(100vh, 7rem); - overflow-y: auto; - } + position: sticky; + top: 5rem; + right: 0; + z-index: 2; + height: subtract(100vh, 7rem); + overflow-y: auto; } nav { |
