1 | @import "restyle";
|
2 |
|
3 | $data-this: ();
|
4 | $data-var: ();
|
5 | $data-static: ();
|
6 |
|
7 | $limit: 100;
|
8 | @for $i from 0 to $limit {
|
9 | $data-this: map-merge($data-this, (
|
10 | // create a reference to the next property (this is a worst-case scenario)
|
11 | foo#{$i}: if($i == ($limit - 1), bar, this(foo#{$i + 1}))
|
12 | ));
|
13 | $data-static: map-merge($data-static, (
|
14 | foo#{$i}: bar
|
15 | ));
|
16 | }
|
17 |
|
18 | @for $i from 0 to ($limit / 2) {
|
19 | $data-var: map-merge($data-var, (
|
20 | restyle-var(foo#{$i}): if($i == (($limit / 2) - 1), bar, restyle-var(foo#{$i + 1})),
|
21 | foo#{$i}: restyle-var(foo#{$i})
|
22 | ));
|
23 | }
|
24 |
|
25 | @include restyle-config(log, (
|
26 | time: (
|
27 | styles-from-grammar: true,
|
28 | styles: true,
|
29 | total: true,
|
30 | all-define: true
|
31 | )
|
32 | ));
|
33 |
|
34 | @include -restyle--log-time(total) {
|
35 |
|
36 | @include -restyle--log-time(all-define) {
|
37 | @for $i from 0 to $limit {
|
38 | @include restyle-define(test-this#{$i}, $data-this);
|
39 | }
|
40 |
|
41 | @include restyle-define(test-var, $data-var);
|
42 |
|
43 | @include restyle-define(test-static, $data-static);
|
44 | }
|
45 |
|
46 | .test-this {
|
47 | @include restyle(test-this0);
|
48 | }
|
49 |
|
50 | .test-var {
|
51 | @include restyle(test-var);
|
52 | }
|
53 |
|
54 | .test-static {
|
55 | @include restyle(test-static);
|
56 | }
|
57 | }
|