UNPKG

883 BSCSSView Raw
1@import "restyle";
2
3@function my-func($a, $b, $c) {
4 @return (
5 my-func-a: $a,
6 my-func-b: $b,
7 restyle-states: (
8 hover: (
9 my-func-c: $c
10 )
11 )
12 );
13}
14
15@function fn($a) {
16 @return (
17 fn: $a
18 );
19}
20
21@function fn2($values) {
22 @return (
23 fn2: $values
24 );
25}
26
27@function fn3($a, $b) {
28 @return (
29 fn3: ($a, $b)
30 );
31}
32
33@include restyle-define(test, (
34 restyle-var(foo): bar,
35 restyle-var(baz): 1,
36 color: red,
37
38 restyle-function(my-func): (1, restyle-var(foo), this(color)),
39 background: none, // this should be between the function output
40 restyle-function(fn): this(color),
41 restyle-function(fn2): multiple-values(restyle-var(foo), this(color)),
42
43 restyle-states: (
44 active: (
45 restyle-function(fn): root(color),
46 restyle-function(fn3): (restyle-var(foo), parent(color))
47 )
48 )
49));
50
51.test {
52 @include restyle(test);
53}