This repository was archived by the owner on Apr 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +130
-0
lines changed Expand file tree Collapse file tree 3 files changed +130
-0
lines changed Original file line number Diff line number Diff line change 178
178
font-weight : 400 ;
179
179
}
180
180
}
181
+ .use-base-only-a {
182
+ font-weight : 700 ;
183
+ }
184
+ .use-dependant-only-b {
185
+ font-weight : 700 ;
186
+ font-weight : 400 ;
187
+ }
188
+ .btn {
189
+ border-radius : 0.25rem ;
190
+ padding-left : 1rem ;
191
+ padding-right : 1rem ;
192
+ padding-top : 0.5rem ;
193
+ padding-bottom : 0.5rem ;
194
+ font-weight : 700 ;
195
+ }
196
+ .btn-blue {
197
+ border-radius : 0.25rem ;
198
+ padding-left : 1rem ;
199
+ padding-right : 1rem ;
200
+ padding-top : 0.5rem ;
201
+ padding-bottom : 0.5rem ;
202
+ font-weight : 700 ;
203
+ --tw-bg-opacity : 1 ;
204
+ background-color : rgba (59 , 130 , 246 , var (--tw-bg-opacity ));
205
+ --tw-text-opacity : 1 ;
206
+ color : rgba (255 , 255 , 255 , var (--tw-text-opacity ));
207
+ }
208
+ .btn-blue : hover {
209
+ --tw-bg-opacity : 1 ;
210
+ background-color : rgba (29 , 78 , 216 , var (--tw-bg-opacity ));
211
+ }
212
+ .recursive-apply-a {
213
+ font-weight : 900 ;
214
+ }
215
+ @media (min-width : 640px ) {
216
+ .recursive-apply-a {
217
+ font-weight : 100 ;
218
+ }
219
+ }
220
+ .recursive-apply-b {
221
+ font-weight : 900 ;
222
+ }
223
+ @media (min-width : 640px ) {
224
+ .recursive-apply-b {
225
+ font-weight : 100 ;
226
+ }
227
+ }
228
+ .recursive-apply-b {
229
+ font-weight : 600 ;
230
+ }
231
+ @media (min-width : 768px ) {
232
+ .recursive-apply-b {
233
+ font-weight : 200 ;
234
+ }
235
+ }
236
+ .recursive-apply-c {
237
+ font-weight : 900 ;
238
+ }
239
+ @media (min-width : 640px ) {
240
+ .recursive-apply-c {
241
+ font-weight : 100 ;
242
+ }
243
+ }
244
+ .recursive-apply-c {
245
+ font-weight : 600 ;
246
+ }
247
+ @media (min-width : 768px ) {
248
+ .recursive-apply-c {
249
+ font-weight : 200 ;
250
+ }
251
+ }
252
+ .recursive-apply-c {
253
+ font-weight : 700 ;
254
+ }
255
+ @media (min-width : 1024px ) {
256
+ .recursive-apply-c {
257
+ font-weight : 300 ;
258
+ }
259
+ }
260
+ .use-with-other-properties-base {
261
+ color : green;
262
+ font-weight : 700 ;
263
+ }
264
+ .use-with-other-properties-component {
265
+ color : green;
266
+ font-weight : 700 ;
267
+ }
Original file line number Diff line number Diff line change 23
23
< div class ="basic-nesting-parent ">
24
24
< div class ="basic-nesting-child "> </ div >
25
25
</ div >
26
+ < div class ="use-base-only-a "> </ div >
27
+ < div class ="use-dependant-only-b "> </ div >
28
+ < div class ="btn "> </ div >
29
+ < div class ="btn-blue "> </ div >
30
+ < div class ="recursive-apply-a "> </ div >
31
+ < div class ="recursive-apply-b "> </ div >
32
+ < div class ="recursive-apply-c "> </ div >
33
+ < div class ="use-with-other-properties-base use-with-other-properties-component "> </ div >
34
+ < div class ="a b "> </ div >
26
35
</ body >
27
36
</ html >
Original file line number Diff line number Diff line change @@ -65,6 +65,40 @@ test('@apply', () => {
65
65
@apply font-bold hover:font-normal;
66
66
}
67
67
}
68
+ .use-base-only-a {
69
+ @apply font-bold;
70
+ }
71
+ .use-base-only-b {
72
+ @apply use-base-only-a font-normal;
73
+ }
74
+ .use-dependant-only-a {
75
+ @apply font-bold;
76
+ }
77
+ .use-dependant-only-b {
78
+ @apply use-dependant-only-a font-normal;
79
+ }
80
+ .btn {
81
+ @apply font-bold py-2 px-4 rounded;
82
+ }
83
+ .btn-blue {
84
+ @apply btn bg-blue-500 hover:bg-blue-700 text-white;
85
+ }
86
+ .recursive-apply-a {
87
+ @apply font-black sm:font-thin;
88
+ }
89
+ .recursive-apply-b {
90
+ @apply recursive-apply-a font-semibold md:font-extralight;
91
+ }
92
+ .recursive-apply-c {
93
+ @apply recursive-apply-b font-bold lg:font-light;
94
+ }
95
+ .use-with-other-properties-base {
96
+ color: green;
97
+ @apply font-bold;
98
+ }
99
+ .use-with-other-properties-component {
100
+ @apply use-with-other-properties-base;
101
+ }
68
102
}
69
103
70
104
@layer utilities {
You can’t perform that action at this time.
0 commit comments