3 /// Provides a concise, one-line method for setting an element’s positioning
4 /// properties: `position`, `top`, `right`, `bottom` and `left`. Use a `null`
5 /// value to “skip” an edge of the box.
7 /// @argument {string} $position
8 /// A CSS position value.
10 /// @argument {list} $box-edge-values
11 /// List of lengths; accepts CSS shorthand.
15 /// @include position(relative, 0 null null 10em);
21 /// position: relative;
27 /// @include position(absolute, 0);
32 /// position: absolute;
39 /// @require {function} _is-length
41 /// @require {function} _unpack-shorthand
47 $box-edge-values: _unpack-shorthand($box-edge-values);
49 top: nth($box-edge-values, 1),
50 right: nth($box-edge-values, 2),
51 bottom: nth($box-edge-values, 3),
52 left: nth($box-edge-values, 4),
57 @each $offset, $value in $offsets {
58 @if _is-length($value) {