@master/css-preset 2.0.0-rc.70

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.
@@ -0,0 +1,769 @@
1
+ /* Static utilities for positioning, clipping, and content. */
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
+ }
105
+ }
106
+
107
+ /* Static utilities for display, font rendering, and alignment. */
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
+ }
225
+ }
226
+
227
+ /* Static utilities for text variants, viewport bounds, and shapes. */
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
+ }
360
+ }
361
+
362
+ /* Static utilities for positioning, tables, transforms, and wrapping. */
363
+ @utilities {
364
+ static {
365
+ position: static;
366
+ }
367
+
368
+ sticky {
369
+ position: sticky;
370
+ }
371
+
372
+ table {
373
+ display: table;
374
+ }
375
+
376
+ table-caption {
377
+ display: table-caption;
378
+ }
379
+
380
+ table-cell {
381
+ display: table-cell;
382
+ }
383
+
384
+ table-column {
385
+ display: table-column;
386
+ }
387
+
388
+ table-column-group {
389
+ display: table-column-group;
390
+ }
391
+
392
+ table-footer-group {
393
+ display: table-footer-group;
394
+ }
395
+
396
+ table-header-group {
397
+ display: table-header-group;
398
+ }
399
+
400
+ table-row {
401
+ display: table-row;
402
+ }
403
+
404
+ table-row-group {
405
+ display: table-row-group;
406
+ }
407
+
408
+ tabular-nums {
409
+ font-variant-numeric: tabular-nums;
410
+ }
411
+
412
+ top {
413
+ top: 0;
414
+ }
415
+
416
+ transform-<border|content|fill|stroke|view> {
417
+ transform-box: --value()-box;
418
+ }
419
+
420
+ untouchable {
421
+ pointer-events: none;
422
+ }
423
+
424
+ underline {
425
+ text-decoration: underline;
426
+ }
427
+
428
+ uppercase {
429
+ text-transform: uppercase;
430
+ }
431
+
432
+ vh {
433
+ height: 100vh;
434
+ }
435
+
436
+ video {
437
+ aspect-ratio: 16/9;
438
+ }
439
+
440
+ visible {
441
+ visibility: visible;
442
+ }
443
+
444
+ vw {
445
+ width: 100vw;
446
+ }
447
+
448
+ wrap-<anywhere|break-word|normal> {
449
+ overflow-wrap: --value();
450
+ }
451
+ }
452
+
453
+ /* Token and size shorthands. */
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
+ size:<~container|number|*> {
480
+ width: --value();
481
+ height: --value();
482
+ }
483
+
484
+ min-size:<~container|number|*> {
485
+ min-width: --value();
486
+ min-height: --value();
487
+ }
488
+
489
+ max-size:<~container|number|*> {
490
+ max-width: --value();
491
+ max-height: --value();
492
+ }
493
+ }
494
+
495
+ /* Border and outline shorthands. */
496
+ @utilities {
497
+ b:<number> {
498
+ border-width: --value();
499
+ }
500
+
501
+ b:<~color-line|color> {
502
+ border-color: --value();
503
+ }
504
+
505
+ bt:<number> {
506
+ border-top-width: --value();
507
+ }
508
+
509
+ bt:<~color-line|color> {
510
+ border-top-color: --value();
511
+ }
512
+
513
+ br:<number> {
514
+ border-right-width: --value();
515
+ }
516
+
517
+ br:<~color-line|color> {
518
+ border-right-color: --value();
519
+ }
520
+
521
+ bb:<number> {
522
+ border-bottom-width: --value();
523
+ }
524
+
525
+ bb:<~color-line|color> {
526
+ border-bottom-color: --value();
527
+ }
528
+
529
+ bl:<number> {
530
+ border-left-width: --value();
531
+ }
532
+
533
+ bl:<~color-line|color> {
534
+ border-left-color: --value();
535
+ }
536
+
537
+ bx:<number> {
538
+ border-inline-width: --value();
539
+ }
540
+
541
+ bx:<~color-line|color> {
542
+ border-inline-color: --value();
543
+ }
544
+
545
+ by:<number> {
546
+ border-block-width: --value();
547
+ }
548
+
549
+ by:<~color-line|color> {
550
+ border-block-color: --value();
551
+ }
552
+
553
+ outline:<number> {
554
+ outline-width: --value();
555
+ }
556
+
557
+ outline:<~color-line|color> {
558
+ outline-color: --value();
559
+ }
560
+
561
+ outline-<medium|thick|thin> {
562
+ outline-width: --value();
563
+ }
564
+
565
+ outline-<auto|dashed|dotted|double|hidden|none|solid> {
566
+ outline-style: --value();
567
+ }
568
+ }
569
+
570
+ /* Grid, stroke, and text shorthands. */
571
+ @utilities {
572
+ grid-cols:<number|*> {
573
+ display: grid;
574
+ grid-template-columns: repeat(--value(), minmax(0, 1fr));
575
+ }
576
+
577
+ grid-rows:<number|*> {
578
+ display: grid;
579
+ grid-auto-flow: column;
580
+ grid-template-rows: repeat(--value(), minmax(0, 1fr));
581
+ }
582
+
583
+ grid-col-span:<number|*> {
584
+ grid-column: span --value()/span --value();
585
+ }
586
+
587
+ grid-row-span:<number|*> {
588
+ grid-row: span --value()/span --value();
589
+ }
590
+
591
+ line-clamp:<number> {
592
+ display: -webkit-box;
593
+ -webkit-box-orient: vertical;
594
+ -webkit-line-clamp: --value();
595
+ overflow: hidden;
596
+ overflow-wrap: break-word;
597
+ text-overflow: ellipsis;
598
+ }
599
+
600
+ stroke:<number> {
601
+ stroke-width: --value();
602
+ }
603
+
604
+ text:<~font-size|number> {
605
+ font-size: --value();
606
+ line-height: max(1.8em - max(0rem, --value() - 1rem) * 1.12, --value());
607
+ letter-spacing: clamp(-0.072em, calc((--value() - 1rem) * -0.048), 0em);
608
+ }
609
+
610
+ text:<~color-text|~color|color> {
611
+ color: --value();
612
+ }
613
+
614
+ text-decoration:<number> {
615
+ text-decoration-thickness: --value();
616
+ }
617
+
618
+ text-decoration:<~color-text|color> {
619
+ text-decoration-color: --value();
620
+ }
621
+
622
+ text-decoration:<~color-text|~color|*> {
623
+ -webkit-text-decoration: --value();
624
+ text-decoration: --value();
625
+ }
626
+
627
+ text-decoration-thickness:<number|*> {
628
+ text-decoration-thickness: --value();
629
+ }
630
+
631
+ text-underline:<~spacing> {
632
+ text-underline-offset: --value();
633
+ }
634
+
635
+ text-stroke:<number> {
636
+ -webkit-text-stroke-width: --value();
637
+ }
638
+
639
+ text-stroke:<color> {
640
+ -webkit-text-stroke-color: --value();
641
+ }
642
+
643
+ text-stroke:<~color|*> {
644
+ -webkit-text-stroke: --value();
645
+ }
646
+ }
647
+
648
+ /* Vendor-prefixed shorthands. */
649
+ @utilities {
650
+ backdrop-filter:<~color|*> {
651
+ -webkit-backdrop-filter: --value();
652
+ backdrop-filter: --value();
653
+ }
654
+
655
+ box-decoration-break:<clone|slice> {
656
+ -webkit-box-decoration-break: --value();
657
+ box-decoration-break: --value();
658
+ }
659
+
660
+ mask-image:<*> {
661
+ -webkit-mask-image: --value();
662
+ mask-image: --value();
663
+ }
664
+
665
+ user-drag:<auto|element|none> {
666
+ -webkit-user-drag: --value();
667
+ user-drag: --value();
668
+ }
669
+
670
+ user-select:<auto|none|text|all> {
671
+ -webkit-user-select: --value();
672
+ user-select: --value();
673
+ }
674
+ }
675
+
676
+ /* Enum utility shortcuts. */
677
+ @utilities {
678
+ bg-<auto|contain|cover> {
679
+ background-size: --value();
680
+ }
681
+
682
+ bg-<bottom|center|left|right|top> {
683
+ background-position: --value();
684
+ }
685
+
686
+ bg-<fixed|local|scroll> {
687
+ background-attachment: --value();
688
+ }
689
+
690
+ bg-<repeat|no-repeat|repeat-x|repeat-y> {
691
+ background-repeat: --value();
692
+ }
693
+
694
+ b-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
695
+ border-style: --value();
696
+ }
697
+
698
+ bt-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
699
+ border-top-style: --value();
700
+ }
701
+
702
+ br-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
703
+ border-right-style: --value();
704
+ }
705
+
706
+ bb-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
707
+ border-bottom-style: --value();
708
+ }
709
+
710
+ bl-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
711
+ border-left-style: --value();
712
+ }
713
+
714
+ bx-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
715
+ border-inline-style: --value();
716
+ }
717
+
718
+ by-<solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden> {
719
+ border-block-style: --value();
720
+ }
721
+
722
+ decoration-<solid|double|dotted|dashed|wavy> {
723
+ text-decoration-style: --value();
724
+ }
725
+
726
+ flex-<wrap|nowrap|wrap-reverse> {
727
+ flex-wrap: --value();
728
+ }
729
+
730
+ list-<disc|decimal> {
731
+ list-style-type: --value();
732
+ }
733
+
734
+ list-<inside|outside> {
735
+ list-style-position: --value();
736
+ }
737
+
738
+ object-<cover|contain|fill|scale-down> {
739
+ object-fit: --value();
740
+ }
741
+
742
+ object-<center|top|bottom|left|right> {
743
+ object-position: --value();
744
+ }
745
+
746
+ snap-<x|y|both|block|inline> {
747
+ scroll-snap-type: --value();
748
+ }
749
+
750
+ snap-<start|end|center> {
751
+ scroll-snap-align: --value();
752
+ }
753
+
754
+ snap-<normal|always> {
755
+ scroll-snap-stop: --value();
756
+ }
757
+
758
+ text-<left|center|right|start|end|justify> {
759
+ text-align: --value();
760
+ }
761
+
762
+ text-<wrap|nowrap|balance|pretty> {
763
+ text-wrap: --value();
764
+ }
765
+
766
+ text-<ellipsis|clip> {
767
+ text-overflow: --value();
768
+ }
769
+ }