mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
Drop @support (position: sticky)
media query (#30415)
This commit is contained in:
parent
338ca83821
commit
4fc701f6aa
@ -17,16 +17,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Responsive sticky top
|
// Responsive sticky top
|
||||||
@supports (position: sticky) {
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
||||||
@each $breakpoint in map-keys($grid-breakpoints) {
|
@include media-breakpoint-up($breakpoint) {
|
||||||
@include media-breakpoint-up($breakpoint) {
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
||||||
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
||||||
|
|
||||||
.sticky#{$infix}-top {
|
.sticky#{$infix}-top {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: $zindex-sticky;
|
z-index: $zindex-sticky;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,14 +2,12 @@
|
|||||||
|
|
||||||
.bd-toc {
|
.bd-toc {
|
||||||
@include media-breakpoint-up(lg) {
|
@include media-breakpoint-up(lg) {
|
||||||
@supports (position: sticky) {
|
position: sticky;
|
||||||
position: sticky;
|
top: 5rem;
|
||||||
top: 5rem;
|
right: 0;
|
||||||
right: 0;
|
z-index: 2;
|
||||||
z-index: 2;
|
height: subtract(100vh, 7rem);
|
||||||
height: subtract(100vh, 7rem);
|
overflow-y: auto;
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user