aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorFlorian Lacreuse <[email protected]>2021-12-16 09:27:00 +0100
committerGitHub <[email protected]>2021-12-16 10:27:00 +0200
commitd17801265e3562e5386b3445b84915618f5a81d7 (patch)
tree12f0860581689ddac50d7919453f5d9f7e8101a8 /scss
parent2d07383e32b7ad9ebad43e85ebdeb891dd0d105c (diff)
downloadbootstrap-d17801265e3562e5386b3445b84915618f5a81d7.tar.xz
bootstrap-d17801265e3562e5386b3445b84915618f5a81d7.zip
Add sticky bottom utility (#35518)
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'scss')
-rw-r--r--scss/helpers/_position.scss8
1 files changed, 7 insertions, 1 deletions
diff --git a/scss/helpers/_position.scss b/scss/helpers/_position.scss
index 31851eb72..59103d943 100644
--- a/scss/helpers/_position.scss
+++ b/scss/helpers/_position.scss
@@ -16,7 +16,7 @@
z-index: $zindex-fixed;
}
-// Responsive sticky top
+// Responsive sticky top and bottom
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
@@ -26,5 +26,11 @@
top: 0;
z-index: $zindex-sticky;
}
+
+ .sticky#{$infix}-bottom {
+ position: sticky;
+ bottom: 0;
+ z-index: $zindex-sticky;
+ }
}
}