aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-08-07 22:36:57 -0700
committerMark Otto <[email protected]>2017-08-10 22:35:38 -0700
commit3fbdedbf22dc9257e06d73b13f6db7244dbda7cb (patch)
tree8fb94fa14f81a5742611b1a42b55717d602f6f13 /scss
parent35f80bb12e4e71fd777ee60ffa43711d8f84b1a6 (diff)
downloadbootstrap-3fbdedbf22dc9257e06d73b13f6db7244dbda7cb.tar.xz
bootstrap-3fbdedbf22dc9257e06d73b13f6db7244dbda7cb.zip
Add basic property-value utils for position
Diffstat (limited to 'scss')
-rw-r--r--scss/utilities/_position.scss11
1 files changed, 10 insertions, 1 deletions
diff --git a/scss/utilities/_position.scss b/scss/utilities/_position.scss
index 74b8d39e7..bddae2151 100644
--- a/scss/utilities/_position.scss
+++ b/scss/utilities/_position.scss
@@ -1,4 +1,13 @@
-// Positioning
+// Common values
+
+// Sass list not in variables since it's not intended for customization.
+$positions: static, relative, absolute, fixed, sticky;
+
+@each $position in $positions {
+ .position-#{$position} { position: $position !important; }
+}
+
+// Shorthand
.fixed-top {
position: fixed;