@master/css-preset 2.0.0-rc.84 → 2.0.0-rc.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/utilities.css CHANGED
@@ -1,773 +1,773 @@
1
1
  /* Static utilities for positioning, clipping, and content. */
2
2
  @utilities {
3
- abs {
4
- position: absolute;
5
- }
6
-
7
- bg-clip-border {
8
- background-clip: border-box;
9
- }
10
-
11
- bg-clip-content {
12
- background-clip: content-box;
13
- }
14
-
15
- bg-clip-padding {
16
- background-clip: padding-box;
17
- }
18
-
19
- bg-clip-text {
20
- background-clip: text;
21
- }
22
-
23
- bg-origin-<border|content|padding> {
24
- background-origin: --value()-box;
25
- }
26
-
27
- block {
28
- display: block;
29
- }
30
-
31
- bottom {
32
- bottom: 0;
33
- }
34
-
35
- box-<border|content> {
36
- box-sizing: --value()-box;
37
- }
38
-
39
- break-spaces {
40
- white-space: break-spaces;
41
- }
42
-
43
- break-word {
44
- word-break: break-word;
45
- }
46
-
47
- capitalize {
48
- text-transform: capitalize;
49
- }
50
-
51
- center {
52
- left: 0;
53
- right: 0;
54
- margin-left: auto;
55
- margin-right: auto;
56
- }
57
-
58
- clip-border {
59
- clip-path: border-box;
60
- }
61
-
62
- clip-content {
63
- clip-path: content-box;
64
- }
65
-
66
- clip-fill {
67
- clip-path: fill-box;
68
- }
69
-
70
- clip-margin {
71
- clip-path: margin-box;
72
- }
73
-
74
- clip-none {
75
- clip-path: none;
76
- }
77
-
78
- clip-padding {
79
- clip-path: padding-box;
80
- }
81
-
82
- clip-stroke {
83
- clip-path: stroke-box;
84
- }
85
-
86
- clip-view {
87
- clip-path: view-box;
88
- }
89
-
90
- container {
91
- container-type: inline-size;
92
- }
93
-
94
- content-<around|between|evenly> {
95
- align-content: space---value();
96
- }
97
-
98
- content-<baseline|center|end|flex-end|flex-start|normal|start|stretch> {
99
- align-content: --value();
100
- }
101
-
102
- contents {
103
- display: contents;
104
- }
3
+ abs {
4
+ position: absolute;
5
+ }
6
+
7
+ bg-clip-border {
8
+ background-clip: border-box;
9
+ }
10
+
11
+ bg-clip-content {
12
+ background-clip: content-box;
13
+ }
14
+
15
+ bg-clip-padding {
16
+ background-clip: padding-box;
17
+ }
18
+
19
+ bg-clip-text {
20
+ background-clip: text;
21
+ }
22
+
23
+ bg-origin-<border|content|padding> {
24
+ background-origin: --value()-box;
25
+ }
26
+
27
+ block {
28
+ display: block;
29
+ }
30
+
31
+ bottom {
32
+ bottom: 0;
33
+ }
34
+
35
+ box-<border|content> {
36
+ box-sizing: --value()-box;
37
+ }
38
+
39
+ break-spaces {
40
+ white-space: break-spaces;
41
+ }
42
+
43
+ break-word {
44
+ word-break: break-word;
45
+ }
46
+
47
+ capitalize {
48
+ text-transform: capitalize;
49
+ }
50
+
51
+ center {
52
+ left: 0;
53
+ right: 0;
54
+ margin-left: auto;
55
+ margin-right: auto;
56
+ }
57
+
58
+ clip-border {
59
+ clip-path: border-box;
60
+ }
61
+
62
+ clip-content {
63
+ clip-path: content-box;
64
+ }
65
+
66
+ clip-fill {
67
+ clip-path: fill-box;
68
+ }
69
+
70
+ clip-margin {
71
+ clip-path: margin-box;
72
+ }
73
+
74
+ clip-none {
75
+ clip-path: none;
76
+ }
77
+
78
+ clip-padding {
79
+ clip-path: padding-box;
80
+ }
81
+
82
+ clip-stroke {
83
+ clip-path: stroke-box;
84
+ }
85
+
86
+ clip-view {
87
+ clip-path: view-box;
88
+ }
89
+
90
+ container {
91
+ container-type: inline-size;
92
+ }
93
+
94
+ content-<around|between|evenly> {
95
+ align-content: space---value();
96
+ }
97
+
98
+ content-<baseline|center|end|flex-end|flex-start|normal|start|stretch> {
99
+ align-content: --value();
100
+ }
101
+
102
+ contents {
103
+ display: contents;
104
+ }
105
105
  }
106
106
 
107
107
  /* Static utilities for display, font rendering, and alignment. */
108
108
  @utilities {
109
- decoration-from-font {
110
- text-decoration-thickness: from-font;
111
- }
112
-
113
- diagonal-fractions {
114
- font-variant-numeric: diagonal-fractions;
115
- }
116
-
117
- fit {
118
- width: fit-content;
119
- height: fit-content;
120
- }
121
-
122
- fixed {
123
- position: fixed;
124
- }
125
-
126
- flex {
127
- display: flex;
128
- }
129
-
130
- flex-col {
131
- flex-direction: column;
132
- }
133
-
134
- flex-col-reverse {
135
- flex-direction: column-reverse;
136
- }
137
-
138
- flex-row {
139
- flex-direction: row;
140
- }
141
-
142
- flex-row-reverse {
143
- flex-direction: row-reverse;
144
- }
145
-
146
- flow-root {
147
- display: flow-root;
148
- }
149
-
150
- font-antialiased {
151
- -webkit-font-smoothing: antialiased;
152
- -moz-osx-font-smoothing: grayscale;
153
- }
154
-
155
- font-subpixel-antialiased {
156
- -webkit-font-smoothing: auto;
157
- -moz-osx-font-smoothing: auto;
158
- }
159
-
160
- font-bolder {
161
- font-weight: bolder;
162
- }
163
-
164
- full {
165
- width: 100%;
166
- height: 100%;
167
- }
168
-
169
- text-gradient {
170
- -webkit-text-fill-color: transparent;
171
- background-clip: text;
172
- }
173
-
174
- grid {
175
- display: grid;
176
- }
177
-
178
- hidden {
179
- display: none;
180
- }
181
-
182
- inline {
183
- display: inline;
184
- }
185
-
186
- inline-block {
187
- display: inline-block;
188
- }
189
-
190
- inline-flex {
191
- display: inline-flex;
192
- }
193
-
194
- inline-grid {
195
- display: inline-grid;
196
- }
197
-
198
- inline-table {
199
- display: inline-table;
200
- }
201
-
202
- invisible {
203
- visibility: hidden;
204
- }
205
-
206
- isolate {
207
- isolation: isolate;
208
- }
209
-
210
- italic {
211
- font-style: italic;
212
- }
213
-
214
- items-<baseline|center|end|flex-end|flex-start|normal|self-end|self-start|start|stretch> {
215
- align-items: --value();
216
- }
217
-
218
- justify-<around|between|evenly> {
219
- justify-content: space---value();
220
- }
221
-
222
- justify-<center|end|flex-end|flex-start|left|normal|right|start|stretch> {
223
- justify-content: --value();
224
- }
109
+ decoration-from-font {
110
+ text-decoration-thickness: from-font;
111
+ }
112
+
113
+ diagonal-fractions {
114
+ font-variant-numeric: diagonal-fractions;
115
+ }
116
+
117
+ fit {
118
+ width: fit-content;
119
+ height: fit-content;
120
+ }
121
+
122
+ fixed {
123
+ position: fixed;
124
+ }
125
+
126
+ flex {
127
+ display: flex;
128
+ }
129
+
130
+ flex-col {
131
+ flex-direction: column;
132
+ }
133
+
134
+ flex-col-reverse {
135
+ flex-direction: column-reverse;
136
+ }
137
+
138
+ flex-row {
139
+ flex-direction: row;
140
+ }
141
+
142
+ flex-row-reverse {
143
+ flex-direction: row-reverse;
144
+ }
145
+
146
+ flow-root {
147
+ display: flow-root;
148
+ }
149
+
150
+ font-antialiased {
151
+ -webkit-font-smoothing: antialiased;
152
+ -moz-osx-font-smoothing: grayscale;
153
+ }
154
+
155
+ font-subpixel-antialiased {
156
+ -webkit-font-smoothing: auto;
157
+ -moz-osx-font-smoothing: auto;
158
+ }
159
+
160
+ font-bolder {
161
+ font-weight: bolder;
162
+ }
163
+
164
+ full {
165
+ width: 100%;
166
+ height: 100%;
167
+ }
168
+
169
+ text-gradient {
170
+ -webkit-text-fill-color: transparent;
171
+ background-clip: text;
172
+ }
173
+
174
+ grid {
175
+ display: grid;
176
+ }
177
+
178
+ hidden {
179
+ display: none;
180
+ }
181
+
182
+ inline {
183
+ display: inline;
184
+ }
185
+
186
+ inline-block {
187
+ display: inline-block;
188
+ }
189
+
190
+ inline-flex {
191
+ display: inline-flex;
192
+ }
193
+
194
+ inline-grid {
195
+ display: inline-grid;
196
+ }
197
+
198
+ inline-table {
199
+ display: inline-table;
200
+ }
201
+
202
+ invisible {
203
+ visibility: hidden;
204
+ }
205
+
206
+ isolate {
207
+ isolation: isolate;
208
+ }
209
+
210
+ italic {
211
+ font-style: italic;
212
+ }
213
+
214
+ items-<baseline|center|end|flex-end|flex-start|normal|self-end|self-start|start|stretch> {
215
+ align-items: --value();
216
+ }
217
+
218
+ justify-<around|between|evenly> {
219
+ justify-content: space---value();
220
+ }
221
+
222
+ justify-<center|end|flex-end|flex-start|left|normal|right|start|stretch> {
223
+ justify-content: --value();
224
+ }
225
225
  }
226
226
 
227
227
  /* Static utilities for text variants, viewport bounds, and shapes. */
228
228
  @utilities {
229
- left {
230
- left: 0;
231
- }
232
-
233
- line-through {
234
- text-decoration: line-through;
235
- }
236
-
237
- lining-nums {
238
- font-variant-numeric: lining-nums;
239
- }
240
-
241
- list-item {
242
- display: list-item;
243
- }
244
-
245
- lowercase {
246
- text-transform: lowercase;
247
- }
248
-
249
- max-vh {
250
- max-height: 100vh;
251
- }
252
-
253
- max-vw {
254
- max-width: 100vw;
255
- }
256
-
257
- middle {
258
- top: 0;
259
- bottom: 0;
260
- margin-top: auto;
261
- margin-bottom: auto;
262
- }
263
-
264
- min-vh {
265
- min-height: 100vh;
266
- }
267
-
268
- min-vw {
269
- min-width: 100vw;
270
- }
271
-
272
- oblique {
273
- font-style: oblique;
274
- }
275
-
276
- oldstyle-nums {
277
- font-variant-numeric: oldstyle-nums;
278
- }
279
-
280
- ordinal {
281
- font-variant-numeric: ordinal;
282
- }
283
-
284
- overline {
285
- text-decoration: overline;
286
- }
287
-
288
- overflow {
289
- overflow: visible;
290
- }
291
-
292
- proportional-nums {
293
- font-variant-numeric: proportional-nums;
294
- }
295
-
296
- rel {
297
- position: relative;
298
- }
299
-
300
- right {
301
- right: 0;
302
- }
303
-
304
- round {
305
- border-radius: 50%;
306
- aspect-ratio: 1/1;
307
- }
308
-
309
- rounded {
310
- border-radius: 1e9em;
311
- }
312
-
313
- self-<anchor-center|auto|baseline|center|end|flex-end|flex-start|normal|self-end|self-start|start|stretch> {
314
- align-self: --value();
315
- }
316
-
317
- shape-border {
318
- shape-outside: border-box;
319
- }
320
-
321
- shape-content {
322
- shape-outside: content-box;
323
- }
324
-
325
- shape-margin {
326
- shape-outside: margin-box;
327
- }
328
-
329
- shape-none {
330
- shape-outside: none;
331
- }
332
-
333
- shape-padding {
334
- shape-outside: padding-box;
335
- }
336
-
337
- slashed-zero {
338
- font-variant-numeric: slashed-zero;
339
- }
340
-
341
- stacked-fractions {
342
- font-variant-numeric: stacked-fractions;
343
- }
344
-
345
- square {
346
- aspect-ratio: 1/1;
347
- }
348
-
349
- sr-only {
350
- position: absolute;
351
- width: 1px;
352
- height: 1px;
353
- padding: 0;
354
- margin: -1px;
355
- overflow: hidden;
356
- clip: rect(0, 0, 0, 0);
357
- white-space: nowrap;
358
- border-width: 0;
359
- }
229
+ left {
230
+ left: 0;
231
+ }
232
+
233
+ line-through {
234
+ text-decoration: line-through;
235
+ }
236
+
237
+ lining-nums {
238
+ font-variant-numeric: lining-nums;
239
+ }
240
+
241
+ list-item {
242
+ display: list-item;
243
+ }
244
+
245
+ lowercase {
246
+ text-transform: lowercase;
247
+ }
248
+
249
+ max-vh {
250
+ max-height: 100vh;
251
+ }
252
+
253
+ max-vw {
254
+ max-width: 100vw;
255
+ }
256
+
257
+ middle {
258
+ top: 0;
259
+ bottom: 0;
260
+ margin-top: auto;
261
+ margin-bottom: auto;
262
+ }
263
+
264
+ min-vh {
265
+ min-height: 100vh;
266
+ }
267
+
268
+ min-vw {
269
+ min-width: 100vw;
270
+ }
271
+
272
+ oblique {
273
+ font-style: oblique;
274
+ }
275
+
276
+ oldstyle-nums {
277
+ font-variant-numeric: oldstyle-nums;
278
+ }
279
+
280
+ ordinal {
281
+ font-variant-numeric: ordinal;
282
+ }
283
+
284
+ overline {
285
+ text-decoration: overline;
286
+ }
287
+
288
+ overflow {
289
+ overflow: visible;
290
+ }
291
+
292
+ proportional-nums {
293
+ font-variant-numeric: proportional-nums;
294
+ }
295
+
296
+ rel {
297
+ position: relative;
298
+ }
299
+
300
+ right {
301
+ right: 0;
302
+ }
303
+
304
+ round {
305
+ border-radius: 50%;
306
+ aspect-ratio: 1/1;
307
+ }
308
+
309
+ rounded {
310
+ border-radius: 1e9em;
311
+ }
312
+
313
+ self-<anchor-center|auto|baseline|center|end|flex-end|flex-start|normal|self-end|self-start|start|stretch> {
314
+ align-self: --value();
315
+ }
316
+
317
+ shape-border {
318
+ shape-outside: border-box;
319
+ }
320
+
321
+ shape-content {
322
+ shape-outside: content-box;
323
+ }
324
+
325
+ shape-margin {
326
+ shape-outside: margin-box;
327
+ }
328
+
329
+ shape-none {
330
+ shape-outside: none;
331
+ }
332
+
333
+ shape-padding {
334
+ shape-outside: padding-box;
335
+ }
336
+
337
+ slashed-zero {
338
+ font-variant-numeric: slashed-zero;
339
+ }
340
+
341
+ stacked-fractions {
342
+ font-variant-numeric: stacked-fractions;
343
+ }
344
+
345
+ square {
346
+ aspect-ratio: 1/1;
347
+ }
348
+
349
+ sr-only {
350
+ position: absolute;
351
+ width: 1px;
352
+ height: 1px;
353
+ padding: 0;
354
+ margin: -1px;
355
+ overflow: hidden;
356
+ clip: rect(0, 0, 0, 0);
357
+ white-space: nowrap;
358
+ border-width: 0;
359
+ }
360
360
  }
361
361
 
362
362
  /* Static utilities for positioning, tables, transforms, and wrapping. */
363
363
  @utilities {
364
- static {
365
- position: static;
366
- }
364
+ static {
365
+ position: static;
366
+ }
367
367
 
368
- sticky {
369
- position: sticky;
370
- }
368
+ sticky {
369
+ position: sticky;
370
+ }
371
371
 
372
- table {
373
- display: table;
374
- }
372
+ table {
373
+ display: table;
374
+ }
375
375
 
376
- table-caption {
377
- display: table-caption;
378
- }
376
+ table-caption {
377
+ display: table-caption;
378
+ }
379
379
 
380
- table-cell {
381
- display: table-cell;
382
- }
380
+ table-cell {
381
+ display: table-cell;
382
+ }
383
383
 
384
- table-column {
385
- display: table-column;
386
- }
384
+ table-column {
385
+ display: table-column;
386
+ }
387
387
 
388
- table-column-group {
389
- display: table-column-group;
390
- }
388
+ table-column-group {
389
+ display: table-column-group;
390
+ }
391
391
 
392
- table-footer-group {
393
- display: table-footer-group;
394
- }
392
+ table-footer-group {
393
+ display: table-footer-group;
394
+ }
395
395
 
396
- table-header-group {
397
- display: table-header-group;
398
- }
396
+ table-header-group {
397
+ display: table-header-group;
398
+ }
399
399
 
400
- table-row {
401
- display: table-row;
402
- }
400
+ table-row {
401
+ display: table-row;
402
+ }
403
403
 
404
- table-row-group {
405
- display: table-row-group;
406
- }
404
+ table-row-group {
405
+ display: table-row-group;
406
+ }
407
407
 
408
- tabular-nums {
409
- font-variant-numeric: tabular-nums;
410
- }
408
+ tabular-nums {
409
+ font-variant-numeric: tabular-nums;
410
+ }
411
411
 
412
- top {
413
- top: 0;
414
- }
412
+ top {
413
+ top: 0;
414
+ }
415
415
 
416
- transform-<border|content|fill|stroke|view> {
417
- transform-box: --value()-box;
418
- }
416
+ transform-<border|content|fill|stroke|view> {
417
+ transform-box: --value()-box;
418
+ }
419
419
 
420
- untouchable {
421
- pointer-events: none;
422
- }
420
+ untouchable {
421
+ pointer-events: none;
422
+ }
423
423
 
424
- underline {
425
- text-decoration: underline;
426
- }
424
+ underline {
425
+ text-decoration: underline;
426
+ }
427
427
 
428
- uppercase {
429
- text-transform: uppercase;
430
- }
428
+ uppercase {
429
+ text-transform: uppercase;
430
+ }
431
431
 
432
- vh {
433
- height: 100vh;
434
- }
432
+ vh {
433
+ height: 100vh;
434
+ }
435
435
 
436
- video {
437
- aspect-ratio: 16/9;
438
- }
436
+ video {
437
+ aspect-ratio: 16/9;
438
+ }
439
439
 
440
- visible {
441
- visibility: visible;
442
- }
440
+ visible {
441
+ visibility: visible;
442
+ }
443
443
 
444
- vw {
445
- width: 100vw;
446
- }
444
+ vw {
445
+ width: 100vw;
446
+ }
447
447
 
448
- wrap-<anywhere|break-word|normal> {
449
- overflow-wrap: --value();
450
- }
448
+ wrap-<anywhere|break-word|normal> {
449
+ overflow-wrap: --value();
450
+ }
451
451
  }
452
452
 
453
453
  /* Token and size shorthands. */
454
454
  @utilities {
455
- animate:<~animate> {
456
- animation: --value();
457
- }
458
-
459
- font:<~font-size|number> {
460
- font-size: --value();
461
- }
462
-
463
- font:<~font-family> {
464
- font-family: --value();
465
- }
466
-
467
- font:<~font-weight> {
468
- font-weight: --value();
469
- }
470
-
471
- bg:<color> {
472
- background-color: --value();
473
- }
474
-
475
- bg:<~color|image> {
476
- background-image: --value();
477
- }
478
-
479
- surface:<~color-surface> {
480
- background-color: --value();
481
- }
482
-
483
- size:<~container|number|*> {
484
- width: --value();
485
- height: --value();
486
- }
487
-
488
- min-size:<~container|number|*> {
489
- min-width: --value();
490
- min-height: --value();
491
- }
492
-
493
- max-size:<~container|number|*> {
494
- max-width: --value();
495
- max-height: --value();
496
- }
455
+ animate:<~animate> {
456
+ animation: --value();
457
+ }
458
+
459
+ font:<~font-size|number> {
460
+ font-size: --value();
461
+ }
462
+
463
+ font:<~font-family> {
464
+ font-family: --value();
465
+ }
466
+
467
+ font:<~font-weight> {
468
+ font-weight: --value();
469
+ }
470
+
471
+ bg:<color> {
472
+ background-color: --value();
473
+ }
474
+
475
+ bg:<~color|image> {
476
+ background-image: --value();
477
+ }
478
+
479
+ surface:<~color-surface> {
480
+ background-color: --value();
481
+ }
482
+
483
+ size:<~container|number|*> {
484
+ width: --value();
485
+ height: --value();
486
+ }
487
+
488
+ min-size:<~container|number|*> {
489
+ min-width: --value();
490
+ min-height: --value();
491
+ }
492
+
493
+ max-size:<~container|number|*> {
494
+ max-width: --value();
495
+ max-height: --value();
496
+ }
497
497
  }
498
498
 
499
499
  /* Border and outline shorthands. */
500
500
  @utilities {
501
- b:<number> {
502
- border-width: --value();
503
- }
501
+ b:<number> {
502
+ border-width: --value();
503
+ }
504
504
 
505
- b:<~color-line|color> {
506
- border-color: --value();
507
- }
505
+ b:<~color-line|color> {
506
+ border-color: --value();
507
+ }
508
508
 
509
- bt:<number> {
510
- border-top-width: --value();
511
- }
509
+ bt:<number> {
510
+ border-top-width: --value();
511
+ }
512
512
 
513
- bt:<~color-line|color> {
514
- border-top-color: --value();
515
- }
513
+ bt:<~color-line|color> {
514
+ border-top-color: --value();
515
+ }
516
516
 
517
- br:<number> {
518
- border-right-width: --value();
519
- }
517
+ br:<number> {
518
+ border-right-width: --value();
519
+ }
520
520
 
521
- br:<~color-line|color> {
522
- border-right-color: --value();
523
- }
521
+ br:<~color-line|color> {
522
+ border-right-color: --value();
523
+ }
524
524
 
525
- bb:<number> {
526
- border-bottom-width: --value();
527
- }
525
+ bb:<number> {
526
+ border-bottom-width: --value();
527
+ }
528
528
 
529
- bb:<~color-line|color> {
530
- border-bottom-color: --value();
531
- }
529
+ bb:<~color-line|color> {
530
+ border-bottom-color: --value();
531
+ }
532
532
 
533
- bl:<number> {
534
- border-left-width: --value();
535
- }
533
+ bl:<number> {
534
+ border-left-width: --value();
535
+ }
536
536
 
537
- bl:<~color-line|color> {
538
- border-left-color: --value();
539
- }
537
+ bl:<~color-line|color> {
538
+ border-left-color: --value();
539
+ }
540
540
 
541
- bx:<number> {
542
- border-inline-width: --value();
543
- }
541
+ bx:<number> {
542
+ border-inline-width: --value();
543
+ }
544
544
 
545
- bx:<~color-line|color> {
546
- border-inline-color: --value();
547
- }
545
+ bx:<~color-line|color> {
546
+ border-inline-color: --value();
547
+ }
548
548
 
549
- by:<number> {
550
- border-block-width: --value();
551
- }
549
+ by:<number> {
550
+ border-block-width: --value();
551
+ }
552
552
 
553
- by:<~color-line|color> {
554
- border-block-color: --value();
555
- }
553
+ by:<~color-line|color> {
554
+ border-block-color: --value();
555
+ }
556
556
 
557
- outline:<number> {
558
- outline-width: --value();
559
- }
557
+ outline:<number> {
558
+ outline-width: --value();
559
+ }
560
560
 
561
- outline:<~color-line|color> {
562
- outline-color: --value();
563
- }
561
+ outline:<~color-line|color> {
562
+ outline-color: --value();
563
+ }
564
564
 
565
- outline-<medium|thick|thin> {
566
- outline-width: --value();
567
- }
565
+ outline-<medium|thick|thin> {
566
+ outline-width: --value();
567
+ }
568
568
 
569
- outline-<auto|dashed|dotted|double|hidden|none|solid> {
570
- outline-style: --value();
571
- }
569
+ outline-<auto|dashed|dotted|double|hidden|none|solid> {
570
+ outline-style: --value();
571
+ }
572
572
  }
573
573
 
574
574
  /* Grid, stroke, and text shorthands. */
575
575
  @utilities {
576
- grid-cols:<number|*> {
577
- display: grid;
578
- grid-template-columns: repeat(--value(), minmax(0, 1fr));
579
- }
580
-
581
- grid-rows:<number|*> {
582
- display: grid;
583
- grid-auto-flow: column;
584
- grid-template-rows: repeat(--value(), minmax(0, 1fr));
585
- }
586
-
587
- grid-col-span:<number|*> {
588
- grid-column: span --value()/span --value();
589
- }
590
-
591
- grid-row-span:<number|*> {
592
- grid-row: span --value()/span --value();
593
- }
594
-
595
- line-clamp:<number> {
596
- display: -webkit-box;
597
- -webkit-box-orient: vertical;
598
- -webkit-line-clamp: --value();
599
- overflow: hidden;
600
- overflow-wrap: break-word;
601
- text-overflow: ellipsis;
602
- }
603
-
604
- stroke:<number> {
605
- stroke-width: --value();
606
- }
607
-
608
- text:<~font-size|number> {
609
- font-size: --value();
610
- line-height: max(1.8em - max(0rem, --value() - 1rem) * 1.12, --value());
611
- letter-spacing: clamp(-0.072em, calc((--value() - 1rem) * -0.048), 0em);
612
- }
613
-
614
- text:<~color-text> {
615
- color: --value();
616
- }
617
-
618
- text-decoration:<number> {
619
- text-decoration-thickness: --value();
620
- }
621
-
622
- text-decoration:<~color-text|color> {
623
- text-decoration-color: --value();
624
- }
625
-
626
- text-decoration:<~color-text|~color|*> {
627
- -webkit-text-decoration: --value();
628
- text-decoration: --value();
629
- }
630
-
631
- text-decoration-thickness:<number|*> {
632
- text-decoration-thickness: --value();
633
- }
634
-
635
- text-underline:<~spacing> {
636
- text-underline-offset: --value();
637
- }
638
-
639
- text-stroke:<number> {
640
- -webkit-text-stroke-width: --value();
641
- }
642
-
643
- text-stroke:<color> {
644
- -webkit-text-stroke-color: --value();
645
- }
646
-
647
- text-stroke:<~color|*> {
648
- -webkit-text-stroke: --value();
649
- }
576
+ grid-cols:<number|*> {
577
+ display: grid;
578
+ grid-template-columns: repeat(--value(), minmax(0, 1fr));
579
+ }
580
+
581
+ grid-rows:<number|*> {
582
+ display: grid;
583
+ grid-auto-flow: column;
584
+ grid-template-rows: repeat(--value(), minmax(0, 1fr));
585
+ }
586
+
587
+ grid-col-span:<number|*> {
588
+ grid-column: span --value()/span --value();
589
+ }
590
+
591
+ grid-row-span:<number|*> {
592
+ grid-row: span --value()/span --value();
593
+ }
594
+
595
+ line-clamp:<number> {
596
+ display: -webkit-box;
597
+ -webkit-box-orient: vertical;
598
+ -webkit-line-clamp: --value();
599
+ overflow: hidden;
600
+ overflow-wrap: break-word;
601
+ text-overflow: ellipsis;
602
+ }
603
+
604
+ stroke:<number> {
605
+ stroke-width: --value();
606
+ }
607
+
608
+ text:<~font-size|number> {
609
+ font-size: --value();
610
+ line-height: max(1.8em - max(0rem, --value() - 1rem) * 1.12, --value());
611
+ letter-spacing: clamp(-0.072em, calc((--value() - 1rem) * -0.048), 0em);
612
+ }
613
+
614
+ text:<~color-text> {
615
+ color: --value();
616
+ }
617
+
618
+ text-decoration:<number> {
619
+ text-decoration-thickness: --value();
620
+ }
621
+
622
+ text-decoration:<~color-text|color> {
623
+ text-decoration-color: --value();
624
+ }
625
+
626
+ text-decoration:<~color-text|~color|*> {
627
+ -webkit-text-decoration: --value();
628
+ text-decoration: --value();
629
+ }
630
+
631
+ text-decoration-thickness:<number|*> {
632
+ text-decoration-thickness: --value();
633
+ }
634
+
635
+ text-underline:<~spacing> {
636
+ text-underline-offset: --value();
637
+ }
638
+
639
+ text-stroke:<number> {
640
+ -webkit-text-stroke-width: --value();
641
+ }
642
+
643
+ text-stroke:<color> {
644
+ -webkit-text-stroke-color: --value();
645
+ }
646
+
647
+ text-stroke:<~color|*> {
648
+ -webkit-text-stroke: --value();
649
+ }
650
650
  }
651
651
 
652
652
  /* Vendor-prefixed shorthands. */
653
653
  @utilities {
654
- backdrop-filter:<~color|*> {
655
- -webkit-backdrop-filter: --value();
656
- backdrop-filter: --value();
657
- }
658
-
659
- box-decoration-break:<clone|slice> {
660
- -webkit-box-decoration-break: --value();
661
- box-decoration-break: --value();
662
- }
663
-
664
- mask-image:<*> {
665
- -webkit-mask-image: --value();
666
- mask-image: --value();
667
- }
668
-
669
- user-drag:<auto|element|none> {
670
- -webkit-user-drag: --value();
671
- user-drag: --value();
672
- }
673
-
674
- user-select:<auto|none|text|all> {
675
- -webkit-user-select: --value();
676
- user-select: --value();
677
- }
654
+ backdrop-filter:<~color|*> {
655
+ -webkit-backdrop-filter: --value();
656
+ backdrop-filter: --value();
657
+ }
658
+
659
+ box-decoration-break:<clone|slice> {
660
+ -webkit-box-decoration-break: --value();
661
+ box-decoration-break: --value();
662
+ }
663
+
664
+ mask-image:<*> {
665
+ -webkit-mask-image: --value();
666
+ mask-image: --value();
667
+ }
668
+
669
+ user-drag:<auto|element|none> {
670
+ -webkit-user-drag: --value();
671
+ user-drag: --value();
672
+ }
673
+
674
+ user-select:<auto|none|text|all> {
675
+ -webkit-user-select: --value();
676
+ user-select: --value();
677
+ }
678
678
  }
679
679
 
680
680
  /* Enum utility shortcuts. */
681
681
  @utilities {
682
- bg-<auto|contain|cover> {
683
- background-size: --value();
684
- }
682
+ bg-<auto|contain|cover> {
683
+ background-size: --value();
684
+ }
685
685
 
686
- bg-<bottom|center|left|right|top> {
687
- background-position: --value();
688
- }
686
+ bg-<bottom|center|left|right|top> {
687
+ background-position: --value();
688
+ }
689
689
 
690
- bg-<fixed|local|scroll> {
691
- background-attachment: --value();
692
- }
690
+ bg-<fixed|local|scroll> {
691
+ background-attachment: --value();
692
+ }
693
693
 
694
- bg-<repeat|no-repeat|repeat-x|repeat-y> {
695
- background-repeat: --value();
696
- }
694
+ bg-<repeat|no-repeat|repeat-x|repeat-y> {
695
+ background-repeat: --value();
696
+ }
697
697
 
698
- b-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
699
- border-style: --value();
700
- }
698
+ b-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
699
+ border-style: --value();
700
+ }
701
701
 
702
- bt-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
703
- border-top-style: --value();
704
- }
702
+ bt-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
703
+ border-top-style: --value();
704
+ }
705
705
 
706
- br-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
707
- border-right-style: --value();
708
- }
706
+ br-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
707
+ border-right-style: --value();
708
+ }
709
709
 
710
- bb-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
711
- border-bottom-style: --value();
712
- }
710
+ bb-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
711
+ border-bottom-style: --value();
712
+ }
713
713
 
714
- bl-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
715
- border-left-style: --value();
716
- }
714
+ bl-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
715
+ border-left-style: --value();
716
+ }
717
717
 
718
- bx-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
719
- border-inline-style: --value();
720
- }
718
+ bx-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
719
+ border-inline-style: --value();
720
+ }
721
721
 
722
- by-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
723
- border-block-style: --value();
724
- }
722
+ by-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
723
+ border-block-style: --value();
724
+ }
725
725
 
726
- decoration-<solid|double|dotted|dashed|wavy> {
727
- text-decoration-style: --value();
728
- }
726
+ decoration-<solid|double|dotted|dashed|wavy> {
727
+ text-decoration-style: --value();
728
+ }
729
729
 
730
- flex-<wrap|nowrap|wrap-reverse> {
731
- flex-wrap: --value();
732
- }
730
+ flex-<wrap|nowrap|wrap-reverse> {
731
+ flex-wrap: --value();
732
+ }
733
733
 
734
- list-<disc|decimal> {
735
- list-style-type: --value();
736
- }
734
+ list-<disc|decimal> {
735
+ list-style-type: --value();
736
+ }
737
737
 
738
- list-<inside|outside> {
739
- list-style-position: --value();
740
- }
738
+ list-<inside|outside> {
739
+ list-style-position: --value();
740
+ }
741
741
 
742
- object-<cover|contain|fill|scale-down> {
743
- object-fit: --value();
744
- }
742
+ object-<cover|contain|fill|scale-down> {
743
+ object-fit: --value();
744
+ }
745
745
 
746
- object-<center|top|bottom|left|right> {
747
- object-position: --value();
748
- }
746
+ object-<center|top|bottom|left|right> {
747
+ object-position: --value();
748
+ }
749
749
 
750
- snap-<x|y|both|block|inline> {
751
- scroll-snap-type: --value();
752
- }
750
+ snap-<x|y|both|block|inline> {
751
+ scroll-snap-type: --value();
752
+ }
753
753
 
754
- snap-<start|end|center> {
755
- scroll-snap-align: --value();
756
- }
754
+ snap-<start|end|center> {
755
+ scroll-snap-align: --value();
756
+ }
757
757
 
758
- snap-<normal|always> {
759
- scroll-snap-stop: --value();
760
- }
758
+ snap-<normal|always> {
759
+ scroll-snap-stop: --value();
760
+ }
761
761
 
762
- text-<left|center|right|start|end|justify> {
763
- text-align: --value();
764
- }
762
+ text-<left|center|right|start|end|justify> {
763
+ text-align: --value();
764
+ }
765
765
 
766
- text-<wrap|nowrap|balance|pretty> {
767
- text-wrap: --value();
768
- }
766
+ text-<wrap|nowrap|balance|pretty> {
767
+ text-wrap: --value();
768
+ }
769
769
 
770
- text-<ellipsis|clip> {
771
- text-overflow: --value();
772
- }
770
+ text-<ellipsis|clip> {
771
+ text-overflow: --value();
772
+ }
773
773
  }