forked from leafo/scssphp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.scss
More file actions
42 lines (34 loc) · 769 Bytes
/
list.scss
File metadata and controls
42 lines (34 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$list: (black);
$list: join($list, white, comma);
div {
padding: join(10px 20px, 30px 40px);
margin: join((0, 10px), (10px, 10px), space);
background: linear-gradient($list);
}
$list: ();
$list: join($list, (red, blue), comma);
p {
background: linear-gradient($list);
}
$list: [];
$list: join($list, [red, blue], comma);
.bracket-list {
background: linear-gradient($list);
}
div {
x: index(1px solid red, solid);
y: index(1px solid red, dashed);
z: index((width: 10px, height: 20px), (height 20px));
}
$list: set-nth($list: 10px 20px 30px, $n: 2, $value: -20px);
div {
a: nth($list, 1);
b: nth($list, 2);
c: nth($list, 3);
d: nth($list, -1);
}
div {
x:list-separator(1px 2px 3px);
y:list-separator(1px, 2px, 3px);
z:list-separator('foo');
}