UNPKG

643 BSCSSView Raw
1@import "restyle";
2
3// define our UI element...
4@include restyle-define(test, (
5 color: red,
6 height: 100%,
7
8 restyle-modifiers: (
9 alt: (
10 color: green
11 ),
12 alt2: (
13 color: blue
14 ),
15 small: (
16 height: 75%,
17 )
18 )
19));
20
21@include restyle-alias(alias1, test);
22@include restyle-alias((
23 alias2: alt2 test,
24 alias3: alt small test
25));
26
27.alias1 {
28 @include restyle(alias1);
29 &.alt2 {
30 @include restyle(alt2 alias1);
31 }
32}
33
34.alias2 {
35 @include restyle(alias2);
36 &.small {
37 @include restyle(small alias2);
38 }
39}
40
41.alias3 {
42 @include restyle(alias3);
43 &.alt2 {
44 @include restyle(alt2 alias3);
45 }
46}