Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Lacreuse <florianlacreuse@users.noreply.github.com>2021-12-16 11:27:00 +0300
committerGitHub <noreply@github.com>2021-12-16 11:27:00 +0300
commitd17801265e3562e5386b3445b84915618f5a81d7 (patch)
tree12f0860581689ddac50d7919453f5d9f7e8101a8 /scss/helpers
parent2d07383e32b7ad9ebad43e85ebdeb891dd0d105c (diff)
Add sticky bottom utility (#35518)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'scss/helpers')
-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 31851eb721..59103d9436 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;
+ }
}
}