1 | @import "restyle";
|
2 |
|
3 | @include restyle-define(test, (
|
4 | restyle-meta: (
|
5 | description: "this is a test pattern",
|
6 | class: default
|
7 | ),
|
8 |
|
9 | color: green,
|
10 |
|
11 | restyle-modifiers: (
|
12 | alt: (
|
13 | restyle-meta: (
|
14 | description: "this is an alternate test pattern",
|
15 | class: type
|
16 | ),
|
17 | restyle-extends: ext,
|
18 | color: red
|
19 | ),
|
20 | ext: (
|
21 | extended: true
|
22 | ),
|
23 | primary: (
|
24 | restyle-meta: (
|
25 | description: "this is the primary test pattern",
|
26 | class: type
|
27 | )
|
28 | ),
|
29 | secondary: (
|
30 | restyle-meta: (
|
31 | description: this is the secondary test pattern,
|
32 | class: type
|
33 | )
|
34 | ),
|
35 | tertiary: (
|
36 | restyle-meta: (
|
37 | class: type
|
38 | )
|
39 | ),
|
40 |
|
41 | not-a-map: (
|
42 | restyle-meta: "this is not a map"
|
43 | ),
|
44 |
|
45 | small: (
|
46 | restyle-meta: (
|
47 | description: "this is the small size",
|
48 | class: size
|
49 | ),
|
50 | font-size: 70%
|
51 | ),
|
52 |
|
53 | large: (
|
54 | restyle-meta: (
|
55 | description: "this is the large size",
|
56 | class: size,
|
57 | allow-conflicts: true
|
58 | ),
|
59 | font-size: 100%
|
60 | ),
|
61 |
|
62 | small primary: (
|
63 | restyle-meta: (
|
64 | description: "this is a compound size and type",
|
65 | class: size type
|
66 | ),
|
67 | font-size: 95%,
|
68 | color: blue
|
69 | )
|
70 | )
|
71 | ));
|
72 |
|
73 | .test {
|
74 | @include restyle(test);
|
75 |
|
76 | &.alt {
|
77 | @include restyle(alt test);
|
78 | }
|
79 |
|
80 | &.primary {
|
81 | @include restyle(primary test);
|
82 | }
|
83 |
|
84 | &.small {
|
85 | @include restyle(small test);
|
86 | }
|
87 |
|
88 | &.small.alt {
|
89 | @include restyle(small alt test);
|
90 | }
|
91 |
|
92 | &.large {
|
93 | @include restyle(large test);
|
94 | }
|
95 |
|
96 | &.small.large {
|
97 | @include restyle(small large test);
|
98 | }
|
99 |
|
100 | &.small.primary {
|
101 | @include restyle(small primary test);
|
102 | }
|
103 |
|
104 | &.small.large.primary {
|
105 | @include restyle(small large primary test);
|
106 | }
|
107 |
|
108 | &.small.alt.primary {
|
109 | @include restyle(small alt primary test);
|
110 | }
|
111 |
|
112 | &.small.secondary.primary {
|
113 | @include restyle(small secondary primary test);
|
114 | }
|
115 |
|
116 | &.small.tertiary.primary {
|
117 | @include restyle(small tertiary primary test);
|
118 | }
|
119 |
|
120 | &.not-a-map {
|
121 | @include restyle(not-a-map test);
|
122 | }
|
123 | }
|