UNPKG

706 BSCSSView Raw
1@import "restyle";
2
3@include restyle-define(test, (
4 "@restyle.var color": red,
5 "@restyle.var color-hover": orange,
6 color: "@var.color",
7
8 "@restyle.states": (
9 hover: (
10 color: "@var.color-hover"
11 )
12 ),
13
14 "@restyle.modifiers": (
15 alt: (
16 "@restyle.var color": blue,
17 "@restyle.var color-hover": green,
18 alt: true
19 )
20 )
21));
22
23.test {
24 @include restyle(test);
25}
26
27.alt {
28 @include restyle(alt test);
29}
30
31
32@include restyle-define(nested-vars, (
33 restyle-var(color): red,
34 restyle-var(foo): foo2,
35
36 a: restyle-var(color),
37 b: 1px solid restyle-var(color),
38 c: (restyle-var(foo) bar, restyle-var(color), baz)
39));
40
41.nested-vars {
42 @include restyle(nested-vars);
43}
44