From 3fbdedbf22dc9257e06d73b13f6db7244dbda7cb Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 7 Aug 2017 22:36:57 -0700 Subject: Add basic property-value utils for position --- scss/utilities/_position.scss | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'scss') 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; -- cgit v1.2.3