Debian Codegraph @

sass-spec/spec/libsass/bourbon/lib/addons/_position.scss

raw
1 @mixin position ($position: relative, $coordinates: 0 0 0 0) {
2
3 @if type-of($position) == list {
4 $coordinates: $position;
5 $position: relative;
6 }
7
8 $top: nth($coordinates, 1);
9 $right: nth($coordinates, 2);
10 $bottom: nth($coordinates, 3);
11 $left: nth($coordinates, 4);
12
13 position: $position;
14
15 @if $top == auto {
16 top: $top;
17 }
18 @else if not(unitless($top)) {
19 top: $top;
20 }
21
22 @if $right == auto {
23 right: $right;
24 }
25 @else if not(unitless($right)) {
26 right: $right;
27 }
28
29 @if $bottom == auto {
30 bottom: $bottom;
31 }
32 @else if not(unitless($bottom)) {
33 bottom: $bottom;
34 }
35
36 @if $left == auto {
37 left: $left;
38 }
39 @else if not(unitless($left)) {
40 left: $left;
41 }
42 }