@finhay-pro/leaf-design-system 0.1.6 → 0.1.7
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/README.md +175 -81
- package/dist/border.css +154 -17
- package/dist/button.css +2 -12
- package/dist/cdn/leaf-0.1.7.min.css +2 -0
- package/dist/cdn/leaf-0.1.7.min.js +2 -0
- package/dist/classes.css +1898 -268
- package/dist/color.css +27 -32
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Logo/Logo.d.ts.map +1 -1
- package/dist/components/Logo/Logo.js +2 -2
- package/dist/components/Logo/Logo.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/Slider.js.map +1 -1
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.js +2 -2
- package/dist/components/Spinner/Spinner.js.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +3 -3
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/Toggle/Toggle.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/dialog.css +4 -36
- package/dist/flex.css +229 -0
- package/dist/grid.css +533 -0
- package/dist/logo.css +2 -7
- package/dist/overflow.css +72 -0
- package/dist/position.css +140 -0
- package/dist/sizing.css +377 -0
- package/dist/skeleton.css +0 -4
- package/dist/slider.css +3 -31
- package/dist/spacing.css +71 -4
- package/dist/spinner.css +2 -16
- package/dist/styles.css +1909 -276
- package/dist/tabs.css +2 -13
- package/dist/text-layout.css +219 -0
- package/dist/toggle.css +1 -9
- package/dist/tokens.css +11 -8
- package/dist/tooltip.css +2 -15
- package/dist/typography.css +1 -3
- package/package.json +7 -1
- package/dist/cdn/leaf-0.1.6.min.css +0 -2
- package/dist/cdn/leaf-0.1.6.min.js +0 -2
package/dist/styles.css
CHANGED
|
@@ -269,6 +269,7 @@
|
|
|
269
269
|
|
|
270
270
|
:root {
|
|
271
271
|
--spacing-0: 0px;
|
|
272
|
+
--spacing-2xs: 2px;
|
|
272
273
|
--spacing-xs: 4px;
|
|
273
274
|
--spacing-s: 8px;
|
|
274
275
|
--spacing-m: 12px;
|
|
@@ -284,16 +285,18 @@
|
|
|
284
285
|
|
|
285
286
|
/* --- ../tokens/src/border.css --- */
|
|
286
287
|
|
|
287
|
-
/* Border
|
|
288
|
+
/* Border tokens — độ dày viền + bo góc. */
|
|
288
289
|
|
|
289
290
|
:root {
|
|
290
|
-
--
|
|
291
|
-
--
|
|
292
|
-
--
|
|
293
|
-
--
|
|
294
|
-
|
|
295
|
-
--radius-
|
|
296
|
-
--radius-
|
|
291
|
+
--border-width-s: 0.5px;
|
|
292
|
+
--border-width-m: 1px;
|
|
293
|
+
--border-width-l: 1.5px;
|
|
294
|
+
--border-width-xl: 2px;
|
|
295
|
+
|
|
296
|
+
--radius-s: 4px;
|
|
297
|
+
--radius-m: 8px;
|
|
298
|
+
--radius-l: 12px;
|
|
299
|
+
--radius-full: 9999px; /* pill / circle */
|
|
297
300
|
}
|
|
298
301
|
|
|
299
302
|
/* --- src/components/Button/button.css --- */
|
|
@@ -331,9 +334,6 @@
|
|
|
331
334
|
--leaf-button-bg: var(--button-base-primary);
|
|
332
335
|
--leaf-button-fg: var(--button-content-primary);
|
|
333
336
|
|
|
334
|
-
display: inline-flex;
|
|
335
|
-
align-items: center;
|
|
336
|
-
justify-content: center;
|
|
337
337
|
box-sizing: border-box;
|
|
338
338
|
width: var(--leaf-button-width, auto);
|
|
339
339
|
height: var(--leaf-button-height);
|
|
@@ -345,8 +345,6 @@
|
|
|
345
345
|
border-radius: 1000px;
|
|
346
346
|
background-color: var(--leaf-button-bg);
|
|
347
347
|
color: var(--leaf-button-fg);
|
|
348
|
-
text-align: center;
|
|
349
|
-
white-space: nowrap;
|
|
350
348
|
font: inherit;
|
|
351
349
|
font-family: var(--font-sans);
|
|
352
350
|
font-size: var(--leaf-button-font-size);
|
|
@@ -354,15 +352,10 @@
|
|
|
354
352
|
font-weight: var(--leaf-button-font-weight);
|
|
355
353
|
letter-spacing: var(--leaf-button-letter-spacing);
|
|
356
354
|
text-decoration: none;
|
|
357
|
-
vertical-align: middle;
|
|
358
355
|
appearance: none;
|
|
359
356
|
}
|
|
360
357
|
|
|
361
358
|
.leaf-button__icon {
|
|
362
|
-
display: inline-flex;
|
|
363
|
-
flex-shrink: 0;
|
|
364
|
-
align-items: center;
|
|
365
|
-
justify-content: center;
|
|
366
359
|
width: var(--leaf-button-icon-size);
|
|
367
360
|
height: var(--leaf-button-icon-size);
|
|
368
361
|
font-size: var(--leaf-button-icon-size);
|
|
@@ -376,8 +369,8 @@
|
|
|
376
369
|
}
|
|
377
370
|
|
|
378
371
|
/*
|
|
379
|
-
* `
|
|
380
|
-
*
|
|
372
|
+
* Layout (`inline-flex`…) lấy từ class Leaf trên markup. `[hidden]` vẫn cần rule riêng
|
|
373
|
+
* vì class layout cũng set display (selector `[hidden]` specificity cao hơn nên thắng).
|
|
381
374
|
*/
|
|
382
375
|
.leaf-button[hidden],
|
|
383
376
|
.leaf-button__icon[hidden] {
|
|
@@ -522,12 +515,7 @@
|
|
|
522
515
|
|
|
523
516
|
@layer components {
|
|
524
517
|
.leaf-dialog-backdrop {
|
|
525
|
-
position: fixed;
|
|
526
|
-
inset: 0;
|
|
527
518
|
z-index: var(--leaf-z-dialog, 50);
|
|
528
|
-
display: flex;
|
|
529
|
-
align-items: center;
|
|
530
|
-
justify-content: center;
|
|
531
519
|
padding: 16px;
|
|
532
520
|
box-sizing: border-box;
|
|
533
521
|
/*
|
|
@@ -539,7 +527,7 @@
|
|
|
539
527
|
backdrop-filter: blur(5px);
|
|
540
528
|
}
|
|
541
529
|
|
|
542
|
-
/* `
|
|
530
|
+
/* `hidden` luôn ẩn — display đến từ class layout; selector `[hidden]` specificity cao hơn nên thắng. */
|
|
543
531
|
.leaf-dialog-backdrop[hidden] {
|
|
544
532
|
display: none;
|
|
545
533
|
}
|
|
@@ -552,21 +540,18 @@
|
|
|
552
540
|
--leaf-dialog-close-size: 28px;
|
|
553
541
|
--leaf-dialog-close-icon: 20px;
|
|
554
542
|
|
|
555
|
-
display: flex;
|
|
556
|
-
flex-direction: column;
|
|
557
543
|
gap: var(--leaf-dialog-gap);
|
|
558
544
|
/*
|
|
559
545
|
* Width: luôn 100% trong trần maxWidth (responsive).
|
|
560
546
|
* Height: cố định khi có --leaf-dialog-height (content động không giật panel);
|
|
561
547
|
* không có → auto theo nội dung. maxHeight luôn là trần viewport.
|
|
548
|
+
* Layout flex/overflow/w-full lấy từ class Leaf trên markup.
|
|
562
549
|
*/
|
|
563
|
-
width: 100%;
|
|
564
550
|
max-width: var(--leaf-dialog-max-width, 100%);
|
|
565
551
|
height: var(--leaf-dialog-height, auto);
|
|
566
552
|
max-height: var(--leaf-dialog-max-height, 100%);
|
|
567
553
|
margin: 0;
|
|
568
554
|
padding: var(--leaf-dialog-padding);
|
|
569
|
-
overflow: hidden;
|
|
570
555
|
box-sizing: border-box;
|
|
571
556
|
border-radius: var(--leaf-dialog-radius);
|
|
572
557
|
background-color: var(--base-primary);
|
|
@@ -580,34 +565,20 @@
|
|
|
580
565
|
}
|
|
581
566
|
|
|
582
567
|
.leaf-dialog__header {
|
|
583
|
-
display: flex;
|
|
584
|
-
flex-shrink: 0;
|
|
585
|
-
align-items: center;
|
|
586
|
-
justify-content: space-between;
|
|
587
568
|
gap: var(--leaf-dialog-gap);
|
|
588
|
-
width: 100%;
|
|
589
|
-
min-width: 0;
|
|
590
569
|
}
|
|
591
570
|
|
|
592
|
-
/* Cụm trái: back + title */
|
|
571
|
+
/* Cụm trái: back + title — flex/min-w từ class Leaf trên markup */
|
|
593
572
|
.leaf-dialog__start {
|
|
594
|
-
display: flex;
|
|
595
|
-
align-items: center;
|
|
596
573
|
gap: var(--leaf-dialog-gap);
|
|
597
|
-
min-width: 0;
|
|
598
|
-
flex: 1 1 auto;
|
|
599
574
|
}
|
|
600
575
|
|
|
601
576
|
/*
|
|
602
577
|
* Title — heading-3 · --text-primary nằm ngay ở đây: markup không cần class typography /
|
|
603
|
-
* màu, nên utility trùng tên của app (vd. `text-primary`
|
|
578
|
+
* màu, nên utility trùng tên của app (vd. `text-primary`) không chen vào.
|
|
604
579
|
*/
|
|
605
580
|
.leaf-dialog__start > :where(h2, p) {
|
|
606
581
|
margin: 0;
|
|
607
|
-
min-width: 0;
|
|
608
|
-
overflow: hidden;
|
|
609
|
-
text-overflow: ellipsis;
|
|
610
|
-
white-space: nowrap;
|
|
611
582
|
color: var(--text-primary);
|
|
612
583
|
font-family: var(--font-sans);
|
|
613
584
|
font-size: var(--heading-3-size);
|
|
@@ -617,10 +588,6 @@
|
|
|
617
588
|
|
|
618
589
|
.leaf-dialog__back,
|
|
619
590
|
.leaf-dialog__close {
|
|
620
|
-
display: inline-flex;
|
|
621
|
-
flex-shrink: 0;
|
|
622
|
-
align-items: center;
|
|
623
|
-
justify-content: center;
|
|
624
591
|
margin: 0;
|
|
625
592
|
padding: 0;
|
|
626
593
|
border: none;
|
|
@@ -668,13 +635,7 @@
|
|
|
668
635
|
}
|
|
669
636
|
|
|
670
637
|
.leaf-dialog__body {
|
|
671
|
-
display: flex;
|
|
672
|
-
flex: 1 1 auto;
|
|
673
|
-
flex-direction: column;
|
|
674
638
|
gap: var(--leaf-dialog-gap);
|
|
675
|
-
min-height: 0;
|
|
676
|
-
width: 100%;
|
|
677
|
-
overflow: auto;
|
|
678
639
|
}
|
|
679
640
|
}
|
|
680
641
|
|
|
@@ -692,10 +653,6 @@
|
|
|
692
653
|
|
|
693
654
|
@layer components {
|
|
694
655
|
.leaf-logo {
|
|
695
|
-
display: inline-flex;
|
|
696
|
-
flex-shrink: 0;
|
|
697
|
-
align-items: center;
|
|
698
|
-
justify-content: center;
|
|
699
656
|
margin: 0;
|
|
700
657
|
padding: 0;
|
|
701
658
|
border: none;
|
|
@@ -704,7 +661,6 @@
|
|
|
704
661
|
background-position: center;
|
|
705
662
|
background-size: contain;
|
|
706
663
|
line-height: 0;
|
|
707
|
-
vertical-align: middle;
|
|
708
664
|
box-sizing: border-box;
|
|
709
665
|
}
|
|
710
666
|
|
|
@@ -719,10 +675,10 @@
|
|
|
719
675
|
display: block;
|
|
720
676
|
height: var(--leaf-logo-size, 40px);
|
|
721
677
|
width: auto;
|
|
722
|
-
max-
|
|
678
|
+
/* max-w-full — class Leaf trên markup (React img) */
|
|
723
679
|
}
|
|
724
680
|
|
|
725
|
-
/* `
|
|
681
|
+
/* `hidden` luôn ẩn — display đến từ class layout; selector `[hidden]` specificity cao hơn nên thắng. */
|
|
726
682
|
.leaf-logo[hidden] {
|
|
727
683
|
display: none;
|
|
728
684
|
}
|
|
@@ -744,8 +700,6 @@
|
|
|
744
700
|
--leaf-skeleton-height: 100%;
|
|
745
701
|
--leaf-skeleton-radius: 12px;
|
|
746
702
|
|
|
747
|
-
position: relative;
|
|
748
|
-
overflow: hidden;
|
|
749
703
|
box-sizing: border-box;
|
|
750
704
|
width: var(--leaf-skeleton-width);
|
|
751
705
|
height: var(--leaf-skeleton-height);
|
|
@@ -754,8 +708,6 @@
|
|
|
754
708
|
}
|
|
755
709
|
|
|
756
710
|
.leaf-skeleton__shimmer {
|
|
757
|
-
position: absolute;
|
|
758
|
-
inset: 0;
|
|
759
711
|
background: linear-gradient(
|
|
760
712
|
to right,
|
|
761
713
|
transparent,
|
|
@@ -803,11 +755,7 @@
|
|
|
803
755
|
20px
|
|
804
756
|
);
|
|
805
757
|
|
|
806
|
-
|
|
807
|
-
flex-direction: column;
|
|
808
|
-
/* Figma gap S (8) giữa Title/Unit và khối track+labels. */
|
|
809
|
-
gap: 8px;
|
|
810
|
-
width: 100%;
|
|
758
|
+
/* flex / flex-col / w-full / gap-s — class Leaf trên markup */
|
|
811
759
|
box-sizing: border-box;
|
|
812
760
|
font-family: var(--font-sans);
|
|
813
761
|
font-size: var(--body-5-size);
|
|
@@ -818,45 +766,21 @@
|
|
|
818
766
|
-webkit-user-select: none;
|
|
819
767
|
}
|
|
820
768
|
|
|
821
|
-
/* `
|
|
769
|
+
/* `hidden` luôn ẩn — display đến từ class layout; selector `[hidden]` specificity cao hơn nên thắng. */
|
|
822
770
|
.leaf-slider[hidden] {
|
|
823
771
|
display: none;
|
|
824
772
|
}
|
|
825
773
|
|
|
826
774
|
/* Figma gap XS (4) giữa track và Value labels. */
|
|
827
|
-
|
|
828
|
-
display: flex;
|
|
829
|
-
flex-direction: column;
|
|
830
|
-
gap: 4px;
|
|
831
|
-
width: 100%;
|
|
832
|
-
}
|
|
775
|
+
/* body — layout từ class Leaf trên markup */
|
|
833
776
|
|
|
834
777
|
.leaf-slider__header {
|
|
835
|
-
display: flex;
|
|
836
|
-
align-items: flex-start;
|
|
837
|
-
justify-content: space-between;
|
|
838
|
-
gap: 8px;
|
|
839
|
-
width: 100%;
|
|
840
778
|
color: var(--text-primary);
|
|
841
|
-
white-space: nowrap;
|
|
842
779
|
user-select: text;
|
|
843
780
|
-webkit-user-select: text;
|
|
844
781
|
}
|
|
845
782
|
|
|
846
|
-
.leaf-slider__title,
|
|
847
|
-
.leaf-slider__unit {
|
|
848
|
-
min-width: 0;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
.leaf-slider__unit {
|
|
852
|
-
text-align: right;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
783
|
.leaf-slider__control {
|
|
856
|
-
position: relative;
|
|
857
|
-
display: flex;
|
|
858
|
-
align-items: center;
|
|
859
|
-
width: 100%;
|
|
860
784
|
height: var(--leaf-slider-control-height);
|
|
861
785
|
outline: none;
|
|
862
786
|
cursor: pointer;
|
|
@@ -1035,37 +959,23 @@
|
|
|
1035
959
|
--leaf-spinner-size: 24px;
|
|
1036
960
|
--leaf-spinner-duration: 1.2s;
|
|
1037
961
|
|
|
1038
|
-
display: inline-flex;
|
|
1039
|
-
flex-shrink: 0;
|
|
1040
|
-
align-items: center;
|
|
1041
|
-
justify-content: center;
|
|
1042
962
|
width: var(--leaf-spinner-size);
|
|
1043
963
|
height: var(--leaf-spinner-size);
|
|
1044
964
|
color: var(--base-quinary);
|
|
1045
|
-
vertical-align: middle;
|
|
1046
965
|
line-height: 0;
|
|
1047
966
|
}
|
|
1048
967
|
|
|
1049
|
-
|
|
1050
|
-
display: block;
|
|
1051
|
-
width: 100%;
|
|
1052
|
-
height: 100%;
|
|
1053
|
-
}
|
|
968
|
+
/* icon: block size-full — class Leaf trên markup */
|
|
1054
969
|
|
|
1055
970
|
/* Fullscreen overlay — pattern Spinner (portal + nền mờ). */
|
|
1056
971
|
.leaf-spinner-overlay {
|
|
1057
|
-
position: fixed;
|
|
1058
|
-
inset: 0;
|
|
1059
972
|
z-index: var(--leaf-z-spinner-overlay, 100);
|
|
1060
|
-
display: flex;
|
|
1061
|
-
align-items: center;
|
|
1062
|
-
justify-content: center;
|
|
1063
973
|
box-sizing: border-box;
|
|
1064
974
|
background-color: var(--overlay);
|
|
1065
975
|
color: var(--base-quinary);
|
|
1066
976
|
}
|
|
1067
977
|
|
|
1068
|
-
/* `
|
|
978
|
+
/* `hidden` luôn ẩn — display đến từ class layout; selector `[hidden]` specificity cao hơn nên thắng. */
|
|
1069
979
|
.leaf-spinner[hidden],
|
|
1070
980
|
.leaf-spinner-overlay[hidden] {
|
|
1071
981
|
display: none;
|
|
@@ -1162,10 +1072,7 @@
|
|
|
1162
1072
|
--leaf-tab-line-height: var(--body-3-line-height);
|
|
1163
1073
|
--leaf-tab-font-weight: var(--body-3-highlight-weight);
|
|
1164
1074
|
|
|
1165
|
-
|
|
1166
|
-
flex-wrap: wrap;
|
|
1167
|
-
align-items: center;
|
|
1168
|
-
gap: 12px;
|
|
1075
|
+
/* flex / wrap / items / gap-m — class Leaf trên markup */
|
|
1169
1076
|
}
|
|
1170
1077
|
|
|
1171
1078
|
.leaf-tabs[data-size="lg"] {
|
|
@@ -1193,9 +1100,6 @@
|
|
|
1193
1100
|
}
|
|
1194
1101
|
|
|
1195
1102
|
.leaf-tab {
|
|
1196
|
-
display: inline-flex;
|
|
1197
|
-
align-items: center;
|
|
1198
|
-
justify-content: center;
|
|
1199
1103
|
border: none;
|
|
1200
1104
|
margin: 0;
|
|
1201
1105
|
padding: 0;
|
|
@@ -1204,13 +1108,11 @@
|
|
|
1204
1108
|
color: inherit;
|
|
1205
1109
|
font: inherit;
|
|
1206
1110
|
font-family: var(--font-sans);
|
|
1207
|
-
text-align: center;
|
|
1208
|
-
white-space: nowrap;
|
|
1209
1111
|
box-sizing: border-box;
|
|
1210
1112
|
appearance: none;
|
|
1211
1113
|
}
|
|
1212
1114
|
|
|
1213
|
-
/* `
|
|
1115
|
+
/* `hidden` luôn ẩn — display đến từ class layout; selector `[hidden]` specificity cao hơn nên thắng. */
|
|
1214
1116
|
.leaf-tabs[hidden],
|
|
1215
1117
|
.leaf-tab[hidden] {
|
|
1216
1118
|
display: none;
|
|
@@ -1222,9 +1124,6 @@
|
|
|
1222
1124
|
}
|
|
1223
1125
|
|
|
1224
1126
|
.leaf-tab__label {
|
|
1225
|
-
display: inline-flex;
|
|
1226
|
-
align-items: center;
|
|
1227
|
-
justify-content: center;
|
|
1228
1127
|
line-height: inherit;
|
|
1229
1128
|
}
|
|
1230
1129
|
|
|
@@ -1405,10 +1304,6 @@
|
|
|
1405
1304
|
var(--leaf-toggle-width) - var(--leaf-toggle-padding) * 2 - var(--leaf-toggle-thumb)
|
|
1406
1305
|
);
|
|
1407
1306
|
|
|
1408
|
-
position: relative;
|
|
1409
|
-
display: inline-flex;
|
|
1410
|
-
flex-shrink: 0;
|
|
1411
|
-
align-items: center;
|
|
1412
1307
|
box-sizing: border-box;
|
|
1413
1308
|
width: var(--leaf-toggle-width);
|
|
1414
1309
|
height: var(--leaf-toggle-height);
|
|
@@ -1418,7 +1313,6 @@
|
|
|
1418
1313
|
border-radius: 12px;
|
|
1419
1314
|
background-color: var(--base-quaternary);
|
|
1420
1315
|
cursor: pointer;
|
|
1421
|
-
vertical-align: middle;
|
|
1422
1316
|
appearance: none;
|
|
1423
1317
|
-webkit-appearance: none;
|
|
1424
1318
|
font: inherit;
|
|
@@ -1426,15 +1320,12 @@
|
|
|
1426
1320
|
transition: background-color 0.2s ease;
|
|
1427
1321
|
}
|
|
1428
1322
|
|
|
1429
|
-
/* `
|
|
1323
|
+
/* `hidden` luôn ẩn — display đến từ class layout; selector `[hidden]` specificity cao hơn nên thắng. */
|
|
1430
1324
|
.leaf-toggle[hidden] {
|
|
1431
1325
|
display: none;
|
|
1432
1326
|
}
|
|
1433
1327
|
|
|
1434
1328
|
.leaf-toggle__thumb {
|
|
1435
|
-
display: flex;
|
|
1436
|
-
align-items: center;
|
|
1437
|
-
justify-content: center;
|
|
1438
1329
|
width: var(--leaf-toggle-thumb);
|
|
1439
1330
|
height: var(--leaf-toggle-thumb);
|
|
1440
1331
|
border-radius: 100px;
|
|
@@ -1508,13 +1399,6 @@
|
|
|
1508
1399
|
*/
|
|
1509
1400
|
|
|
1510
1401
|
@layer components {
|
|
1511
|
-
.leaf-tooltip-trigger {
|
|
1512
|
-
position: relative;
|
|
1513
|
-
display: inline-flex;
|
|
1514
|
-
max-width: 100%;
|
|
1515
|
-
vertical-align: middle;
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
1402
|
.leaf-tooltip {
|
|
1519
1403
|
--leaf-tooltip-pad-y: 8px;
|
|
1520
1404
|
--leaf-tooltip-pad-x: 16px;
|
|
@@ -1529,6 +1413,7 @@
|
|
|
1529
1413
|
/* Chiều rộng tam giác thật trong khung. */
|
|
1530
1414
|
--leaf-tooltip-caret-tip: 12px;
|
|
1531
1415
|
|
|
1416
|
+
/* inline-flex — class Leaf; direction / align vẫn ở CSS (đổi theo data-position / data-align) */
|
|
1532
1417
|
display: inline-flex;
|
|
1533
1418
|
flex-direction: column;
|
|
1534
1419
|
align-items: center;
|
|
@@ -1547,21 +1432,17 @@
|
|
|
1547
1432
|
z-index: var(--leaf-z-tooltip, 110);
|
|
1548
1433
|
}
|
|
1549
1434
|
|
|
1550
|
-
/* `
|
|
1435
|
+
/* `hidden` luôn ẩn — display đến từ class layout; selector `[hidden]` specificity cao hơn nên thắng. */
|
|
1551
1436
|
.leaf-tooltip-trigger[hidden],
|
|
1552
1437
|
.leaf-tooltip[hidden] {
|
|
1553
1438
|
display: none;
|
|
1554
1439
|
}
|
|
1555
1440
|
|
|
1556
1441
|
.leaf-tooltip__body {
|
|
1557
|
-
position: relative;
|
|
1558
|
-
z-index: 1;
|
|
1559
1442
|
box-sizing: border-box;
|
|
1560
|
-
max-width: 100%;
|
|
1561
1443
|
padding: var(--leaf-tooltip-pad-y) var(--leaf-tooltip-pad-x);
|
|
1562
1444
|
border-radius: var(--leaf-tooltip-radius);
|
|
1563
1445
|
background-color: var(--base-quaternary);
|
|
1564
|
-
text-align: left;
|
|
1565
1446
|
word-break: break-word;
|
|
1566
1447
|
}
|
|
1567
1448
|
|
|
@@ -1570,9 +1451,6 @@
|
|
|
1570
1451
|
* Mặc định: mũi nhọn xuống (position=top — caret dưới body).
|
|
1571
1452
|
*/
|
|
1572
1453
|
.leaf-tooltip__caret {
|
|
1573
|
-
position: relative;
|
|
1574
|
-
display: block;
|
|
1575
|
-
flex-shrink: 0;
|
|
1576
1454
|
width: var(--leaf-tooltip-caret-w);
|
|
1577
1455
|
height: var(--leaf-tooltip-caret-h);
|
|
1578
1456
|
background-color: transparent;
|
|
@@ -1708,24 +1586,19 @@
|
|
|
1708
1586
|
/* --- src/styles/border.css --- */
|
|
1709
1587
|
|
|
1710
1588
|
/*
|
|
1711
|
-
* Border
|
|
1712
|
-
* (Figma 700:4390).
|
|
1589
|
+
* Border classes — map 1:1 sang token trong @finhay/leaf-tokens.
|
|
1713
1590
|
*
|
|
1714
|
-
*
|
|
1715
|
-
*
|
|
1591
|
+
* Width: `border-s|m|l|xl` (+ biến thể cạnh `border-top-s`…).
|
|
1592
|
+
* Mỗi class set width + `border-style: solid` để một class là thấy viền
|
|
1593
|
+
* (không trông vào CSS reset).
|
|
1594
|
+
* Hậu tố width khác hậu tố màu (`border-primary`… chỉ set border-color).
|
|
1595
|
+
* Không có bậc 0 — không viền thì không gắn class.
|
|
1716
1596
|
*
|
|
1717
|
-
*
|
|
1718
|
-
* Chỉ set border-radius — width / style / color do app tự lo.
|
|
1597
|
+
* Radius: `radius-*` → border-radius. Hậu tố: s (4) · m (8) · l (12) · full.
|
|
1719
1598
|
*/
|
|
1720
1599
|
|
|
1721
1600
|
@layer utilities {
|
|
1722
|
-
|
|
1723
|
-
border-radius: var(--radius-0);
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
.radius-xs {
|
|
1727
|
-
border-radius: var(--radius-xs);
|
|
1728
|
-
}
|
|
1601
|
+
/* Radius */
|
|
1729
1602
|
|
|
1730
1603
|
.radius-s {
|
|
1731
1604
|
border-radius: var(--radius-s);
|
|
@@ -1739,12 +1612,154 @@
|
|
|
1739
1612
|
border-radius: var(--radius-l);
|
|
1740
1613
|
}
|
|
1741
1614
|
|
|
1742
|
-
.radius-
|
|
1743
|
-
border-radius: var(--radius-
|
|
1615
|
+
.radius-full {
|
|
1616
|
+
border-radius: var(--radius-full);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
/* All sides */
|
|
1620
|
+
|
|
1621
|
+
.border-s {
|
|
1622
|
+
border-width: var(--border-width-s);
|
|
1623
|
+
border-style: solid;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.border-m {
|
|
1627
|
+
border-width: var(--border-width-m);
|
|
1628
|
+
border-style: solid;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
.border-l {
|
|
1632
|
+
border-width: var(--border-width-l);
|
|
1633
|
+
border-style: solid;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
.border-xl {
|
|
1637
|
+
border-width: var(--border-width-xl);
|
|
1638
|
+
border-style: solid;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
/* Per side */
|
|
1642
|
+
|
|
1643
|
+
.border-top-s {
|
|
1644
|
+
border-top-width: var(--border-width-s);
|
|
1645
|
+
border-top-style: solid;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
.border-top-m {
|
|
1649
|
+
border-top-width: var(--border-width-m);
|
|
1650
|
+
border-top-style: solid;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
.border-top-l {
|
|
1654
|
+
border-top-width: var(--border-width-l);
|
|
1655
|
+
border-top-style: solid;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
.border-top-xl {
|
|
1659
|
+
border-top-width: var(--border-width-xl);
|
|
1660
|
+
border-top-style: solid;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
.border-right-s {
|
|
1664
|
+
border-right-width: var(--border-width-s);
|
|
1665
|
+
border-right-style: solid;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
.border-right-m {
|
|
1669
|
+
border-right-width: var(--border-width-m);
|
|
1670
|
+
border-right-style: solid;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
.border-right-l {
|
|
1674
|
+
border-right-width: var(--border-width-l);
|
|
1675
|
+
border-right-style: solid;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
.border-right-xl {
|
|
1679
|
+
border-right-width: var(--border-width-xl);
|
|
1680
|
+
border-right-style: solid;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
.border-bottom-s {
|
|
1684
|
+
border-bottom-width: var(--border-width-s);
|
|
1685
|
+
border-bottom-style: solid;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.border-bottom-m {
|
|
1689
|
+
border-bottom-width: var(--border-width-m);
|
|
1690
|
+
border-bottom-style: solid;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
.border-bottom-l {
|
|
1694
|
+
border-bottom-width: var(--border-width-l);
|
|
1695
|
+
border-bottom-style: solid;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
.border-bottom-xl {
|
|
1699
|
+
border-bottom-width: var(--border-width-xl);
|
|
1700
|
+
border-bottom-style: solid;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.border-left-s {
|
|
1704
|
+
border-left-width: var(--border-width-s);
|
|
1705
|
+
border-left-style: solid;
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
.border-left-m {
|
|
1709
|
+
border-left-width: var(--border-width-m);
|
|
1710
|
+
border-left-style: solid;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
.border-left-l {
|
|
1714
|
+
border-left-width: var(--border-width-l);
|
|
1715
|
+
border-left-style: solid;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
.border-left-xl {
|
|
1719
|
+
border-left-width: var(--border-width-xl);
|
|
1720
|
+
border-left-style: solid;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
/* Logical */
|
|
1724
|
+
|
|
1725
|
+
.border-inline-s {
|
|
1726
|
+
border-inline-width: var(--border-width-s);
|
|
1727
|
+
border-inline-style: solid;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
.border-inline-m {
|
|
1731
|
+
border-inline-width: var(--border-width-m);
|
|
1732
|
+
border-inline-style: solid;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
.border-inline-l {
|
|
1736
|
+
border-inline-width: var(--border-width-l);
|
|
1737
|
+
border-inline-style: solid;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
.border-inline-xl {
|
|
1741
|
+
border-inline-width: var(--border-width-xl);
|
|
1742
|
+
border-inline-style: solid;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
.border-block-s {
|
|
1746
|
+
border-block-width: var(--border-width-s);
|
|
1747
|
+
border-block-style: solid;
|
|
1744
1748
|
}
|
|
1745
1749
|
|
|
1746
|
-
.
|
|
1747
|
-
border-
|
|
1750
|
+
.border-block-m {
|
|
1751
|
+
border-block-width: var(--border-width-m);
|
|
1752
|
+
border-block-style: solid;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
.border-block-l {
|
|
1756
|
+
border-block-width: var(--border-width-l);
|
|
1757
|
+
border-block-style: solid;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
.border-block-xl {
|
|
1761
|
+
border-block-width: var(--border-width-xl);
|
|
1762
|
+
border-block-style: solid;
|
|
1748
1763
|
}
|
|
1749
1764
|
}
|
|
1750
1765
|
|
|
@@ -1756,33 +1771,28 @@
|
|
|
1756
1771
|
* Quy tắc tên: **tiền tố nói thuộc tính, phần sau nói vai trò của token**.
|
|
1757
1772
|
*
|
|
1758
1773
|
* text-* → color (text-primary, text-red)
|
|
1759
|
-
*
|
|
1774
|
+
* bg-* → background-color (bg-primary, bg-red) — token vẫn là --base-*
|
|
1760
1775
|
* border-* → border-color (border-primary, border-red)
|
|
1761
1776
|
*
|
|
1762
|
-
* Ba bộ dùng chung một hậu tố nên đọc là đoán được: `text-red` / `
|
|
1763
|
-
* `border-red`, `text-primary` / `
|
|
1777
|
+
* Ba bộ dùng chung một hậu tố nên đọc là đoán được: `text-red` / `bg-red` /
|
|
1778
|
+
* `border-red`, `text-primary` / `bg-primary` / `border-primary`. Nhóm system
|
|
1764
1779
|
* bỏ chữ `system` trong tên class (token vẫn là `--system-red`), còn `border-*`
|
|
1765
1780
|
* lấy màu từ thang base vì viền luôn là màu bề mặt. Secondary của system giữ
|
|
1766
1781
|
* hậu tố `-secondary` (vd. `text-red-secondary` ↔ `--system-red-secondary`).
|
|
1767
1782
|
*
|
|
1768
1783
|
* Mỗi class chỉ set đúng 1 thuộc tính (color / background-color / border-color)
|
|
1769
|
-
* —
|
|
1770
|
-
* `[data-theme="light"]` vì nó trỏ vào var, không hard-code màu.
|
|
1784
|
+
* — độ dày / style viền dùng class width (`border-s`…) trong `border.css`.
|
|
1785
|
+
* Class tự đổi giá trị theo `[data-theme="light"]` vì nó trỏ vào var, không hard-code màu.
|
|
1771
1786
|
*
|
|
1772
1787
|
* Chỉ semantic token mới có class. Primitive (--neutral-500, --brand-300…) là
|
|
1773
1788
|
* nguồn nội bộ, không dùng thẳng trong UI.
|
|
1774
1789
|
*
|
|
1775
1790
|
* ─ Vì sao `@layer utilities` ─────────────────────────────────────────────────
|
|
1776
1791
|
*
|
|
1777
|
-
* Màu của Leaf là token gốc, trùng tên thì phải thắng. Đặt
|
|
1778
|
-
*
|
|
1779
|
-
* khi app cũng khai báo `--color-primary` / `--color-red` trong `@theme` thì
|
|
1780
|
-
* `.text-primary` của Leaf (cùng specificity, đứng sau) là cái có hiệu lực.
|
|
1792
|
+
* Màu của Leaf là token gốc, trùng tên thì phải thắng. Đặt ở layer cao nhất
|
|
1793
|
+
* nên `.text-primary` của Leaf luôn có hiệu lực khi trùng tên.
|
|
1781
1794
|
*
|
|
1782
|
-
* Biến thể trạng thái vẫn override được vì pseudo-class cộng thêm specificity
|
|
1783
|
-
* `hover:text-[var(--text-highlight)]`, `focus:…` thắng bình thường. Riêng biến
|
|
1784
|
-
* thể responsive (`md:`, `lg:`) cùng specificity và được Tailwind ghi ra trước
|
|
1785
|
-
* file này nên phải thêm important modifier: `md:text-[var(--text-secondary)]!`.
|
|
1795
|
+
* Biến thể trạng thái vẫn override được vì pseudo-class cộng thêm specificity.
|
|
1786
1796
|
*/
|
|
1787
1797
|
|
|
1788
1798
|
@layer utilities {
|
|
@@ -1858,79 +1868,79 @@
|
|
|
1858
1868
|
color: var(--system-purple-secondary);
|
|
1859
1869
|
}
|
|
1860
1870
|
|
|
1861
|
-
/* Background — base */
|
|
1871
|
+
/* Background — surface (--base-*) + system */
|
|
1862
1872
|
|
|
1863
|
-
.
|
|
1873
|
+
.bg-highlight {
|
|
1864
1874
|
background-color: var(--text-highlight);
|
|
1865
1875
|
}
|
|
1866
1876
|
|
|
1867
|
-
.
|
|
1877
|
+
.bg-primary {
|
|
1868
1878
|
background-color: var(--base-primary);
|
|
1869
1879
|
}
|
|
1870
1880
|
|
|
1871
|
-
.
|
|
1881
|
+
.bg-secondary {
|
|
1872
1882
|
background-color: var(--base-secondary);
|
|
1873
1883
|
}
|
|
1874
1884
|
|
|
1875
|
-
.
|
|
1885
|
+
.bg-tertiary {
|
|
1876
1886
|
background-color: var(--base-tertiary);
|
|
1877
1887
|
}
|
|
1878
1888
|
|
|
1879
|
-
.
|
|
1889
|
+
.bg-quaternary {
|
|
1880
1890
|
background-color: var(--base-quaternary);
|
|
1881
1891
|
}
|
|
1882
1892
|
|
|
1883
|
-
.
|
|
1893
|
+
.bg-quinary {
|
|
1884
1894
|
background-color: var(--base-quinary);
|
|
1885
1895
|
}
|
|
1886
1896
|
|
|
1887
1897
|
/* Background — system */
|
|
1888
1898
|
|
|
1889
|
-
.
|
|
1899
|
+
.bg-blue {
|
|
1890
1900
|
background-color: var(--system-blue);
|
|
1891
1901
|
}
|
|
1892
1902
|
|
|
1893
|
-
.
|
|
1903
|
+
.bg-green {
|
|
1894
1904
|
background-color: var(--system-green);
|
|
1895
1905
|
}
|
|
1896
1906
|
|
|
1897
|
-
.
|
|
1907
|
+
.bg-yellow {
|
|
1898
1908
|
background-color: var(--system-yellow);
|
|
1899
1909
|
}
|
|
1900
1910
|
|
|
1901
|
-
.
|
|
1911
|
+
.bg-orange {
|
|
1902
1912
|
background-color: var(--system-orange);
|
|
1903
1913
|
}
|
|
1904
1914
|
|
|
1905
|
-
.
|
|
1915
|
+
.bg-red {
|
|
1906
1916
|
background-color: var(--system-red);
|
|
1907
1917
|
}
|
|
1908
1918
|
|
|
1909
|
-
.
|
|
1919
|
+
.bg-purple {
|
|
1910
1920
|
background-color: var(--system-purple);
|
|
1911
1921
|
}
|
|
1912
1922
|
|
|
1913
|
-
.
|
|
1923
|
+
.bg-blue-secondary {
|
|
1914
1924
|
background-color: var(--system-blue-secondary);
|
|
1915
1925
|
}
|
|
1916
1926
|
|
|
1917
|
-
.
|
|
1927
|
+
.bg-green-secondary {
|
|
1918
1928
|
background-color: var(--system-green-secondary);
|
|
1919
1929
|
}
|
|
1920
1930
|
|
|
1921
|
-
.
|
|
1931
|
+
.bg-yellow-secondary {
|
|
1922
1932
|
background-color: var(--system-yellow-secondary);
|
|
1923
1933
|
}
|
|
1924
1934
|
|
|
1925
|
-
.
|
|
1935
|
+
.bg-orange-secondary {
|
|
1926
1936
|
background-color: var(--system-orange-secondary);
|
|
1927
1937
|
}
|
|
1928
1938
|
|
|
1929
|
-
.
|
|
1939
|
+
.bg-red-secondary {
|
|
1930
1940
|
background-color: var(--system-red-secondary);
|
|
1931
1941
|
}
|
|
1932
1942
|
|
|
1933
|
-
.
|
|
1943
|
+
.bg-purple-secondary {
|
|
1934
1944
|
background-color: var(--system-purple-secondary);
|
|
1935
1945
|
}
|
|
1936
1946
|
|
|
@@ -2011,148 +2021,1500 @@
|
|
|
2011
2021
|
}
|
|
2012
2022
|
}
|
|
2013
2023
|
|
|
2014
|
-
/* --- src/styles/
|
|
2024
|
+
/* --- src/styles/flex.css --- */
|
|
2015
2025
|
|
|
2016
2026
|
/*
|
|
2017
|
-
*
|
|
2027
|
+
* Flex + alignment classes.
|
|
2018
2028
|
*
|
|
2019
|
-
*
|
|
2020
|
-
*
|
|
2029
|
+
* Display, hướng, wrap, grow/shrink/basis, và căn chỉnh (justify / items / self /
|
|
2030
|
+
* content). Nhóm căn chỉnh dùng chung cho grid.
|
|
2031
|
+
*
|
|
2032
|
+
* Nằm trong @layer components — SCSS module (ngoài layer) đè được class Leaf.
|
|
2021
2033
|
*
|
|
2022
|
-
*
|
|
2023
|
-
* Nằm trong @layer utilities để Leaf thắng khi trùng tên với utility Tailwind
|
|
2024
|
-
* (import sau @import "tailwindcss"), giống color.css.
|
|
2034
|
+
* `.flex[hidden]`… specificity cao hơn class display nên `hidden` luôn ẩn.
|
|
2025
2035
|
*/
|
|
2026
2036
|
|
|
2027
|
-
@layer
|
|
2028
|
-
|
|
2037
|
+
@layer components {
|
|
2038
|
+
.block {
|
|
2039
|
+
display: block;
|
|
2040
|
+
}
|
|
2029
2041
|
|
|
2030
|
-
.
|
|
2031
|
-
|
|
2042
|
+
.inline-block {
|
|
2043
|
+
display: inline-block;
|
|
2032
2044
|
}
|
|
2033
2045
|
|
|
2034
|
-
.
|
|
2035
|
-
|
|
2046
|
+
.inline {
|
|
2047
|
+
display: inline;
|
|
2036
2048
|
}
|
|
2037
2049
|
|
|
2038
|
-
.
|
|
2039
|
-
|
|
2050
|
+
.hidden {
|
|
2051
|
+
display: none;
|
|
2040
2052
|
}
|
|
2041
2053
|
|
|
2042
|
-
.
|
|
2043
|
-
|
|
2054
|
+
.flex {
|
|
2055
|
+
display: flex;
|
|
2044
2056
|
}
|
|
2045
2057
|
|
|
2046
|
-
.
|
|
2047
|
-
|
|
2058
|
+
.inline-flex {
|
|
2059
|
+
display: inline-flex;
|
|
2048
2060
|
}
|
|
2049
2061
|
|
|
2050
|
-
.
|
|
2051
|
-
|
|
2062
|
+
.block[hidden],
|
|
2063
|
+
.inline-block[hidden],
|
|
2064
|
+
.inline[hidden],
|
|
2065
|
+
.flex[hidden],
|
|
2066
|
+
.inline-flex[hidden] {
|
|
2067
|
+
display: none;
|
|
2052
2068
|
}
|
|
2053
2069
|
|
|
2054
|
-
.
|
|
2055
|
-
|
|
2070
|
+
.flex-row {
|
|
2071
|
+
flex-direction: row;
|
|
2056
2072
|
}
|
|
2057
2073
|
|
|
2058
|
-
.
|
|
2059
|
-
|
|
2074
|
+
.flex-row-reverse {
|
|
2075
|
+
flex-direction: row-reverse;
|
|
2060
2076
|
}
|
|
2061
2077
|
|
|
2062
|
-
.
|
|
2063
|
-
|
|
2078
|
+
.flex-col {
|
|
2079
|
+
flex-direction: column;
|
|
2064
2080
|
}
|
|
2065
2081
|
|
|
2066
|
-
.
|
|
2067
|
-
|
|
2082
|
+
.flex-col-reverse {
|
|
2083
|
+
flex-direction: column-reverse;
|
|
2068
2084
|
}
|
|
2069
2085
|
|
|
2070
|
-
.
|
|
2071
|
-
|
|
2086
|
+
.flex-wrap {
|
|
2087
|
+
flex-wrap: wrap;
|
|
2072
2088
|
}
|
|
2073
2089
|
|
|
2074
|
-
.
|
|
2075
|
-
|
|
2090
|
+
.flex-wrap-reverse {
|
|
2091
|
+
flex-wrap: wrap-reverse;
|
|
2076
2092
|
}
|
|
2077
2093
|
|
|
2078
|
-
.
|
|
2079
|
-
|
|
2094
|
+
.flex-nowrap {
|
|
2095
|
+
flex-wrap: nowrap;
|
|
2080
2096
|
}
|
|
2081
2097
|
|
|
2082
|
-
.
|
|
2083
|
-
|
|
2098
|
+
.flex-1 {
|
|
2099
|
+
flex: 1;
|
|
2084
2100
|
}
|
|
2085
2101
|
|
|
2086
|
-
.
|
|
2087
|
-
|
|
2102
|
+
.flex-auto {
|
|
2103
|
+
flex: auto;
|
|
2088
2104
|
}
|
|
2089
2105
|
|
|
2090
|
-
.
|
|
2091
|
-
|
|
2106
|
+
.flex-initial {
|
|
2107
|
+
flex: 0 auto;
|
|
2092
2108
|
}
|
|
2093
2109
|
|
|
2094
|
-
.
|
|
2095
|
-
|
|
2110
|
+
.flex-none {
|
|
2111
|
+
flex: none;
|
|
2096
2112
|
}
|
|
2097
2113
|
|
|
2098
|
-
.
|
|
2099
|
-
|
|
2114
|
+
.grow {
|
|
2115
|
+
flex-grow: 1;
|
|
2100
2116
|
}
|
|
2101
2117
|
|
|
2102
|
-
.
|
|
2103
|
-
|
|
2118
|
+
.grow-0 {
|
|
2119
|
+
flex-grow: 0;
|
|
2104
2120
|
}
|
|
2105
2121
|
|
|
2106
|
-
.
|
|
2107
|
-
|
|
2122
|
+
.shrink {
|
|
2123
|
+
flex-shrink: 1;
|
|
2108
2124
|
}
|
|
2109
2125
|
|
|
2110
|
-
.
|
|
2111
|
-
|
|
2126
|
+
.shrink-0 {
|
|
2127
|
+
flex-shrink: 0;
|
|
2112
2128
|
}
|
|
2113
2129
|
|
|
2114
|
-
.
|
|
2115
|
-
|
|
2130
|
+
.basis-0 {
|
|
2131
|
+
flex-basis: 0px;
|
|
2116
2132
|
}
|
|
2117
2133
|
|
|
2118
|
-
.
|
|
2119
|
-
|
|
2134
|
+
.basis-auto {
|
|
2135
|
+
flex-basis: auto;
|
|
2120
2136
|
}
|
|
2121
2137
|
|
|
2122
|
-
.
|
|
2123
|
-
|
|
2138
|
+
.basis-full {
|
|
2139
|
+
flex-basis: 100%;
|
|
2124
2140
|
}
|
|
2125
2141
|
|
|
2126
|
-
.
|
|
2127
|
-
|
|
2142
|
+
.justify-start {
|
|
2143
|
+
justify-content: flex-start;
|
|
2128
2144
|
}
|
|
2129
2145
|
|
|
2130
|
-
.
|
|
2131
|
-
|
|
2146
|
+
.justify-end {
|
|
2147
|
+
justify-content: flex-end;
|
|
2132
2148
|
}
|
|
2133
2149
|
|
|
2134
|
-
.
|
|
2135
|
-
|
|
2150
|
+
.justify-center {
|
|
2151
|
+
justify-content: center;
|
|
2136
2152
|
}
|
|
2137
2153
|
|
|
2138
|
-
.
|
|
2139
|
-
|
|
2154
|
+
.justify-between {
|
|
2155
|
+
justify-content: space-between;
|
|
2140
2156
|
}
|
|
2141
2157
|
|
|
2142
|
-
.
|
|
2143
|
-
|
|
2158
|
+
.justify-around {
|
|
2159
|
+
justify-content: space-around;
|
|
2144
2160
|
}
|
|
2145
2161
|
|
|
2146
|
-
.
|
|
2147
|
-
|
|
2162
|
+
.justify-evenly {
|
|
2163
|
+
justify-content: space-evenly;
|
|
2148
2164
|
}
|
|
2149
2165
|
|
|
2150
|
-
.
|
|
2151
|
-
|
|
2166
|
+
.justify-stretch {
|
|
2167
|
+
justify-content: stretch;
|
|
2152
2168
|
}
|
|
2153
2169
|
|
|
2154
|
-
.
|
|
2155
|
-
|
|
2170
|
+
.justify-normal {
|
|
2171
|
+
justify-content: normal;
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
.items-start {
|
|
2175
|
+
align-items: flex-start;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
.items-end {
|
|
2179
|
+
align-items: flex-end;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
.items-center {
|
|
2183
|
+
align-items: center;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
.items-baseline {
|
|
2187
|
+
align-items: baseline;
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
.items-stretch {
|
|
2191
|
+
align-items: stretch;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
.self-auto {
|
|
2195
|
+
align-self: auto;
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
.self-start {
|
|
2199
|
+
align-self: flex-start;
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
.self-end {
|
|
2203
|
+
align-self: flex-end;
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
.self-center {
|
|
2207
|
+
align-self: center;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
.self-baseline {
|
|
2211
|
+
align-self: baseline;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
.self-stretch {
|
|
2215
|
+
align-self: stretch;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
.content-start {
|
|
2219
|
+
align-content: flex-start;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
.content-end {
|
|
2223
|
+
align-content: flex-end;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
.content-center {
|
|
2227
|
+
align-content: center;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
.content-between {
|
|
2231
|
+
align-content: space-between;
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
.content-around {
|
|
2235
|
+
align-content: space-around;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
.content-evenly {
|
|
2239
|
+
align-content: space-evenly;
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
.content-stretch {
|
|
2243
|
+
align-content: stretch;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
.content-normal {
|
|
2247
|
+
align-content: normal;
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
/* --- src/styles/grid.css --- */
|
|
2252
|
+
|
|
2253
|
+
/*
|
|
2254
|
+
* Grid classes.
|
|
2255
|
+
*
|
|
2256
|
+
* Display, template columns/rows, span/start/end, flow, auto-cols/rows, và
|
|
2257
|
+
* place/justify-items/self. Gap dùng class spacing (`gap-*`).
|
|
2258
|
+
*
|
|
2259
|
+
* Nằm trong @layer components (cùng lý do với flex.css).
|
|
2260
|
+
*/
|
|
2261
|
+
|
|
2262
|
+
@layer components {
|
|
2263
|
+
.grid {
|
|
2264
|
+
display: grid;
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
.inline-grid {
|
|
2268
|
+
display: inline-grid;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
/* `hidden` luôn ẩn — cùng lý do với flex.css. */
|
|
2272
|
+
.grid[hidden],
|
|
2273
|
+
.inline-grid[hidden] {
|
|
2274
|
+
display: none;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
.grid-cols-1 {
|
|
2278
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
.grid-cols-2 {
|
|
2282
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
.grid-cols-3 {
|
|
2286
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
.grid-cols-4 {
|
|
2290
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
.grid-cols-5 {
|
|
2294
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
.grid-cols-6 {
|
|
2298
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
.grid-cols-7 {
|
|
2302
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
.grid-cols-8 {
|
|
2306
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
.grid-cols-9 {
|
|
2310
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
.grid-cols-10 {
|
|
2314
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
.grid-cols-11 {
|
|
2318
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
.grid-cols-12 {
|
|
2322
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
.grid-cols-none {
|
|
2326
|
+
grid-template-columns: none;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
.grid-cols-subgrid {
|
|
2330
|
+
grid-template-columns: subgrid;
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
.col-span-1 {
|
|
2334
|
+
grid-column: span 1 / span 1;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
.col-span-2 {
|
|
2338
|
+
grid-column: span 2 / span 2;
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
.col-span-3 {
|
|
2342
|
+
grid-column: span 3 / span 3;
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
.col-span-4 {
|
|
2346
|
+
grid-column: span 4 / span 4;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
.col-span-5 {
|
|
2350
|
+
grid-column: span 5 / span 5;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
.col-span-6 {
|
|
2354
|
+
grid-column: span 6 / span 6;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
.col-span-7 {
|
|
2358
|
+
grid-column: span 7 / span 7;
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
.col-span-8 {
|
|
2362
|
+
grid-column: span 8 / span 8;
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
.col-span-9 {
|
|
2366
|
+
grid-column: span 9 / span 9;
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
.col-span-10 {
|
|
2370
|
+
grid-column: span 10 / span 10;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
.col-span-11 {
|
|
2374
|
+
grid-column: span 11 / span 11;
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
.col-span-12 {
|
|
2378
|
+
grid-column: span 12 / span 12;
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
.col-span-full {
|
|
2382
|
+
grid-column: 1 / -1;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
.col-auto {
|
|
2386
|
+
grid-column: auto;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
.col-start-1 {
|
|
2390
|
+
grid-column-start: 1;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
.col-start-2 {
|
|
2394
|
+
grid-column-start: 2;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
.col-start-3 {
|
|
2398
|
+
grid-column-start: 3;
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
.col-start-4 {
|
|
2402
|
+
grid-column-start: 4;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
.col-start-5 {
|
|
2406
|
+
grid-column-start: 5;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
.col-start-6 {
|
|
2410
|
+
grid-column-start: 6;
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
.col-start-7 {
|
|
2414
|
+
grid-column-start: 7;
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
.col-start-8 {
|
|
2418
|
+
grid-column-start: 8;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
.col-start-9 {
|
|
2422
|
+
grid-column-start: 9;
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
.col-start-10 {
|
|
2426
|
+
grid-column-start: 10;
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
.col-start-11 {
|
|
2430
|
+
grid-column-start: 11;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
.col-start-12 {
|
|
2434
|
+
grid-column-start: 12;
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
.col-start-13 {
|
|
2438
|
+
grid-column-start: 13;
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
.col-start-auto {
|
|
2442
|
+
grid-column-start: auto;
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
.col-end-1 {
|
|
2446
|
+
grid-column-end: 1;
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
.col-end-2 {
|
|
2450
|
+
grid-column-end: 2;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
.col-end-3 {
|
|
2454
|
+
grid-column-end: 3;
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
.col-end-4 {
|
|
2458
|
+
grid-column-end: 4;
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
.col-end-5 {
|
|
2462
|
+
grid-column-end: 5;
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
.col-end-6 {
|
|
2466
|
+
grid-column-end: 6;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
.col-end-7 {
|
|
2470
|
+
grid-column-end: 7;
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
.col-end-8 {
|
|
2474
|
+
grid-column-end: 8;
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
.col-end-9 {
|
|
2478
|
+
grid-column-end: 9;
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
.col-end-10 {
|
|
2482
|
+
grid-column-end: 10;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
.col-end-11 {
|
|
2486
|
+
grid-column-end: 11;
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
.col-end-12 {
|
|
2490
|
+
grid-column-end: 12;
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
.col-end-13 {
|
|
2494
|
+
grid-column-end: 13;
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
.col-end-auto {
|
|
2498
|
+
grid-column-end: auto;
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
.grid-rows-1 {
|
|
2502
|
+
grid-template-rows: repeat(1, minmax(0, 1fr));
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
.grid-rows-2 {
|
|
2506
|
+
grid-template-rows: repeat(2, minmax(0, 1fr));
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
.grid-rows-3 {
|
|
2510
|
+
grid-template-rows: repeat(3, minmax(0, 1fr));
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
.grid-rows-4 {
|
|
2514
|
+
grid-template-rows: repeat(4, minmax(0, 1fr));
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
.grid-rows-5 {
|
|
2518
|
+
grid-template-rows: repeat(5, minmax(0, 1fr));
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.grid-rows-6 {
|
|
2522
|
+
grid-template-rows: repeat(6, minmax(0, 1fr));
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
.grid-rows-none {
|
|
2526
|
+
grid-template-rows: none;
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
.grid-rows-subgrid {
|
|
2530
|
+
grid-template-rows: subgrid;
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
.row-span-1 {
|
|
2534
|
+
grid-row: span 1 / span 1;
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2537
|
+
.row-span-2 {
|
|
2538
|
+
grid-row: span 2 / span 2;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
.row-span-3 {
|
|
2542
|
+
grid-row: span 3 / span 3;
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
.row-span-4 {
|
|
2546
|
+
grid-row: span 4 / span 4;
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
.row-span-5 {
|
|
2550
|
+
grid-row: span 5 / span 5;
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
.row-span-6 {
|
|
2554
|
+
grid-row: span 6 / span 6;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
.row-span-full {
|
|
2558
|
+
grid-row: 1 / -1;
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
.row-auto {
|
|
2562
|
+
grid-row: auto;
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
.row-start-1 {
|
|
2566
|
+
grid-row-start: 1;
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
.row-start-2 {
|
|
2570
|
+
grid-row-start: 2;
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
.row-start-3 {
|
|
2574
|
+
grid-row-start: 3;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
.row-start-4 {
|
|
2578
|
+
grid-row-start: 4;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
.row-start-5 {
|
|
2582
|
+
grid-row-start: 5;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
.row-start-6 {
|
|
2586
|
+
grid-row-start: 6;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
.row-start-7 {
|
|
2590
|
+
grid-row-start: 7;
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
.row-start-auto {
|
|
2594
|
+
grid-row-start: auto;
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
.row-end-1 {
|
|
2598
|
+
grid-row-end: 1;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
.row-end-2 {
|
|
2602
|
+
grid-row-end: 2;
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
.row-end-3 {
|
|
2606
|
+
grid-row-end: 3;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
.row-end-4 {
|
|
2610
|
+
grid-row-end: 4;
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
.row-end-5 {
|
|
2614
|
+
grid-row-end: 5;
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
.row-end-6 {
|
|
2618
|
+
grid-row-end: 6;
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
.row-end-7 {
|
|
2622
|
+
grid-row-end: 7;
|
|
2623
|
+
}
|
|
2624
|
+
|
|
2625
|
+
.row-end-auto {
|
|
2626
|
+
grid-row-end: auto;
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
.grid-flow-row {
|
|
2630
|
+
grid-auto-flow: row;
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
.grid-flow-col {
|
|
2634
|
+
grid-auto-flow: column;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
.grid-flow-dense {
|
|
2638
|
+
grid-auto-flow: dense;
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
.grid-flow-row-dense {
|
|
2642
|
+
grid-auto-flow: row dense;
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
.grid-flow-col-dense {
|
|
2646
|
+
grid-auto-flow: column dense;
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
.auto-cols-auto {
|
|
2650
|
+
grid-auto-columns: auto;
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
.auto-cols-min {
|
|
2654
|
+
grid-auto-columns: min-content;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
.auto-cols-max {
|
|
2658
|
+
grid-auto-columns: max-content;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
.auto-cols-fr {
|
|
2662
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
.auto-rows-auto {
|
|
2666
|
+
grid-auto-rows: auto;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
.auto-rows-min {
|
|
2670
|
+
grid-auto-rows: min-content;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
.auto-rows-max {
|
|
2674
|
+
grid-auto-rows: max-content;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
.auto-rows-fr {
|
|
2678
|
+
grid-auto-rows: minmax(0, 1fr);
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
.justify-items-start {
|
|
2682
|
+
justify-items: start;
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
.justify-items-end {
|
|
2686
|
+
justify-items: end;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
.justify-items-center {
|
|
2690
|
+
justify-items: center;
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
.justify-items-stretch {
|
|
2694
|
+
justify-items: stretch;
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
.justify-self-auto {
|
|
2698
|
+
justify-self: auto;
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
.justify-self-start {
|
|
2702
|
+
justify-self: flex-start;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
.justify-self-end {
|
|
2706
|
+
justify-self: flex-end;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
.justify-self-center {
|
|
2710
|
+
justify-self: center;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
.justify-self-stretch {
|
|
2714
|
+
justify-self: stretch;
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
.place-content-center {
|
|
2718
|
+
place-content: center;
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
.place-content-start {
|
|
2722
|
+
place-content: start;
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2725
|
+
.place-content-end {
|
|
2726
|
+
place-content: end;
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
.place-content-between {
|
|
2730
|
+
place-content: space-between;
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
.place-content-around {
|
|
2734
|
+
place-content: space-around;
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
.place-content-evenly {
|
|
2738
|
+
place-content: space-evenly;
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
.place-content-stretch {
|
|
2742
|
+
place-content: stretch;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
.place-items-start {
|
|
2746
|
+
place-items: start;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
.place-items-end {
|
|
2750
|
+
place-items: end;
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
.place-items-center {
|
|
2754
|
+
place-items: center;
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
.place-items-stretch {
|
|
2758
|
+
place-items: stretch;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
.place-self-auto {
|
|
2762
|
+
place-self: auto;
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
.place-self-start {
|
|
2766
|
+
place-self: start;
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
.place-self-end {
|
|
2770
|
+
place-self: end;
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
.place-self-center {
|
|
2774
|
+
place-self: center;
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
.place-self-stretch {
|
|
2778
|
+
place-self: stretch;
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
/* --- src/styles/overflow.css --- */
|
|
2783
|
+
|
|
2784
|
+
/*
|
|
2785
|
+
* Overflow classes.
|
|
2786
|
+
*
|
|
2787
|
+
* Nằm trong @layer components (cùng lý do với flex.css).
|
|
2788
|
+
*/
|
|
2789
|
+
|
|
2790
|
+
@layer components {
|
|
2791
|
+
.overflow-auto {
|
|
2792
|
+
overflow: auto;
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
.overflow-hidden {
|
|
2796
|
+
overflow: hidden;
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
.overflow-clip {
|
|
2800
|
+
overflow: clip;
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
.overflow-visible {
|
|
2804
|
+
overflow: visible;
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
.overflow-scroll {
|
|
2808
|
+
overflow: scroll;
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
.overflow-x-auto {
|
|
2812
|
+
overflow-x: auto;
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
.overflow-x-hidden {
|
|
2816
|
+
overflow-x: hidden;
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
.overflow-x-clip {
|
|
2820
|
+
overflow-x: clip;
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
.overflow-x-visible {
|
|
2824
|
+
overflow-x: visible;
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
.overflow-x-scroll {
|
|
2828
|
+
overflow-x: scroll;
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
.overflow-y-auto {
|
|
2832
|
+
overflow-y: auto;
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
.overflow-y-hidden {
|
|
2836
|
+
overflow-y: hidden;
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
.overflow-y-clip {
|
|
2840
|
+
overflow-y: clip;
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
.overflow-y-visible {
|
|
2844
|
+
overflow-y: visible;
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
.overflow-y-scroll {
|
|
2848
|
+
overflow-y: scroll;
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
/* --- src/styles/position.css --- */
|
|
2853
|
+
|
|
2854
|
+
/*
|
|
2855
|
+
* Position classes — position, inset cơ bản, z-index scale.
|
|
2856
|
+
*
|
|
2857
|
+
* Nằm trong @layer components (cùng lý do với flex.css).
|
|
2858
|
+
*/
|
|
2859
|
+
|
|
2860
|
+
@layer components {
|
|
2861
|
+
.static {
|
|
2862
|
+
position: static;
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
.relative {
|
|
2866
|
+
position: relative;
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
.absolute {
|
|
2870
|
+
position: absolute;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
.fixed {
|
|
2874
|
+
position: fixed;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
.sticky {
|
|
2878
|
+
position: sticky;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
.inset-0 {
|
|
2882
|
+
inset: 0px;
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
.inset-auto {
|
|
2886
|
+
inset: auto;
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
.inset-x-0 {
|
|
2890
|
+
inset-inline: 0px;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
.inset-y-0 {
|
|
2894
|
+
inset-block: 0px;
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
.top-0 {
|
|
2898
|
+
top: 0px;
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
.top-auto {
|
|
2902
|
+
top: auto;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
.top-full {
|
|
2906
|
+
top: 100%;
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
.top-1\/2 {
|
|
2910
|
+
top: calc(1 / 2 * 100%);
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
.right-0 {
|
|
2914
|
+
right: 0px;
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
.right-auto {
|
|
2918
|
+
right: auto;
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
.right-full {
|
|
2922
|
+
right: 100%;
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
.right-1\/2 {
|
|
2926
|
+
right: calc(1 / 2 * 100%);
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
.bottom-0 {
|
|
2930
|
+
bottom: 0px;
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
.bottom-auto {
|
|
2934
|
+
bottom: auto;
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
.bottom-full {
|
|
2938
|
+
bottom: 100%;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
.bottom-1\/2 {
|
|
2942
|
+
bottom: calc(1 / 2 * 100%);
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
.left-0 {
|
|
2946
|
+
left: 0px;
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
.left-auto {
|
|
2950
|
+
left: auto;
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
.left-full {
|
|
2954
|
+
left: 100%;
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
.left-1\/2 {
|
|
2958
|
+
left: calc(1 / 2 * 100%);
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
.z-0 {
|
|
2962
|
+
z-index: 0;
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
.z-10 {
|
|
2966
|
+
z-index: 10;
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
.z-20 {
|
|
2970
|
+
z-index: 20;
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
.z-30 {
|
|
2974
|
+
z-index: 30;
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2977
|
+
.z-40 {
|
|
2978
|
+
z-index: 40;
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
.z-50 {
|
|
2982
|
+
z-index: 50;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
.z-auto {
|
|
2986
|
+
z-index: auto;
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2990
|
+
/* --- src/styles/sizing.css --- */
|
|
2991
|
+
|
|
2992
|
+
/*
|
|
2993
|
+
* Sizing classes — keyword + phân số.
|
|
2994
|
+
*
|
|
2995
|
+
* Chỉ size tương đối / keyword (`full`, `auto`, `1/2`…). Size cố định (w-80…)
|
|
2996
|
+
* để app viết trong SCSS module.
|
|
2997
|
+
*
|
|
2998
|
+
* Nằm trong @layer components (cùng lý do với flex.css).
|
|
2999
|
+
*/
|
|
3000
|
+
|
|
3001
|
+
@layer components {
|
|
3002
|
+
.w-0 {
|
|
3003
|
+
width: 0px;
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
.w-px {
|
|
3007
|
+
width: 1px;
|
|
3008
|
+
}
|
|
3009
|
+
|
|
3010
|
+
.w-full {
|
|
3011
|
+
width: 100%;
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
.w-auto {
|
|
3015
|
+
width: auto;
|
|
3016
|
+
}
|
|
3017
|
+
|
|
3018
|
+
.w-fit {
|
|
3019
|
+
width: fit-content;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
.w-min {
|
|
3023
|
+
width: min-content;
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3026
|
+
.w-max {
|
|
3027
|
+
width: max-content;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
.w-screen {
|
|
3031
|
+
width: 100vw;
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
.h-0 {
|
|
3035
|
+
height: 0px;
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
.h-px {
|
|
3039
|
+
height: 1px;
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
.h-full {
|
|
3043
|
+
height: 100%;
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
.h-auto {
|
|
3047
|
+
height: auto;
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
.h-fit {
|
|
3051
|
+
height: fit-content;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
.h-min {
|
|
3055
|
+
height: min-content;
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
.h-max {
|
|
3059
|
+
height: max-content;
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
.h-screen {
|
|
3063
|
+
height: 100vh;
|
|
3064
|
+
}
|
|
3065
|
+
|
|
3066
|
+
.h-dvh {
|
|
3067
|
+
height: 100dvh;
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
.w-1\/2 {
|
|
3071
|
+
width: calc(1 / 2 * 100%);
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
.w-1\/3 {
|
|
3075
|
+
width: calc(1 / 3 * 100%);
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
.w-2\/3 {
|
|
3079
|
+
width: calc(2 / 3 * 100%);
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
.w-1\/4 {
|
|
3083
|
+
width: calc(1 / 4 * 100%);
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
.w-2\/4 {
|
|
3087
|
+
width: calc(2 / 4 * 100%);
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
.w-3\/4 {
|
|
3091
|
+
width: calc(3 / 4 * 100%);
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
.w-1\/5 {
|
|
3095
|
+
width: calc(1 / 5 * 100%);
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
.w-2\/5 {
|
|
3099
|
+
width: calc(2 / 5 * 100%);
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
.w-3\/5 {
|
|
3103
|
+
width: calc(3 / 5 * 100%);
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
.w-4\/5 {
|
|
3107
|
+
width: calc(4 / 5 * 100%);
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
.w-1\/6 {
|
|
3111
|
+
width: calc(1 / 6 * 100%);
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
.w-2\/6 {
|
|
3115
|
+
width: calc(2 / 6 * 100%);
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
.w-3\/6 {
|
|
3119
|
+
width: calc(3 / 6 * 100%);
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
.w-4\/6 {
|
|
3123
|
+
width: calc(4 / 6 * 100%);
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
.w-5\/6 {
|
|
3127
|
+
width: calc(5 / 6 * 100%);
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
.w-1\/12 {
|
|
3131
|
+
width: calc(1 / 12 * 100%);
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
.w-2\/12 {
|
|
3135
|
+
width: calc(2 / 12 * 100%);
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
.w-3\/12 {
|
|
3139
|
+
width: calc(3 / 12 * 100%);
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
.w-4\/12 {
|
|
3143
|
+
width: calc(4 / 12 * 100%);
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
.w-5\/12 {
|
|
3147
|
+
width: calc(5 / 12 * 100%);
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
.w-6\/12 {
|
|
3151
|
+
width: calc(6 / 12 * 100%);
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
.w-7\/12 {
|
|
3155
|
+
width: calc(7 / 12 * 100%);
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
.w-8\/12 {
|
|
3159
|
+
width: calc(8 / 12 * 100%);
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
.w-9\/12 {
|
|
3163
|
+
width: calc(9 / 12 * 100%);
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
.w-10\/12 {
|
|
3167
|
+
width: calc(10 / 12 * 100%);
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
.w-11\/12 {
|
|
3171
|
+
width: calc(11 / 12 * 100%);
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
.h-1\/2 {
|
|
3175
|
+
height: calc(1 / 2 * 100%);
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
.h-1\/3 {
|
|
3179
|
+
height: calc(1 / 3 * 100%);
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
.h-2\/3 {
|
|
3183
|
+
height: calc(2 / 3 * 100%);
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
.h-1\/4 {
|
|
3187
|
+
height: calc(1 / 4 * 100%);
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
.h-2\/4 {
|
|
3191
|
+
height: calc(2 / 4 * 100%);
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3194
|
+
.h-3\/4 {
|
|
3195
|
+
height: calc(3 / 4 * 100%);
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
.h-1\/5 {
|
|
3199
|
+
height: calc(1 / 5 * 100%);
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
.h-2\/5 {
|
|
3203
|
+
height: calc(2 / 5 * 100%);
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
.h-3\/5 {
|
|
3207
|
+
height: calc(3 / 5 * 100%);
|
|
3208
|
+
}
|
|
3209
|
+
|
|
3210
|
+
.h-4\/5 {
|
|
3211
|
+
height: calc(4 / 5 * 100%);
|
|
3212
|
+
}
|
|
3213
|
+
|
|
3214
|
+
.h-1\/6 {
|
|
3215
|
+
height: calc(1 / 6 * 100%);
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
.h-2\/6 {
|
|
3219
|
+
height: calc(2 / 6 * 100%);
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
.h-3\/6 {
|
|
3223
|
+
height: calc(3 / 6 * 100%);
|
|
3224
|
+
}
|
|
3225
|
+
|
|
3226
|
+
.h-4\/6 {
|
|
3227
|
+
height: calc(4 / 6 * 100%);
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
.h-5\/6 {
|
|
3231
|
+
height: calc(5 / 6 * 100%);
|
|
3232
|
+
}
|
|
3233
|
+
|
|
3234
|
+
.h-1\/12 {
|
|
3235
|
+
height: calc(1 / 12 * 100%);
|
|
3236
|
+
}
|
|
3237
|
+
|
|
3238
|
+
.h-2\/12 {
|
|
3239
|
+
height: calc(2 / 12 * 100%);
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
.h-3\/12 {
|
|
3243
|
+
height: calc(3 / 12 * 100%);
|
|
3244
|
+
}
|
|
3245
|
+
|
|
3246
|
+
.h-4\/12 {
|
|
3247
|
+
height: calc(4 / 12 * 100%);
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3250
|
+
.h-5\/12 {
|
|
3251
|
+
height: calc(5 / 12 * 100%);
|
|
3252
|
+
}
|
|
3253
|
+
|
|
3254
|
+
.h-6\/12 {
|
|
3255
|
+
height: calc(6 / 12 * 100%);
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3258
|
+
.h-7\/12 {
|
|
3259
|
+
height: calc(7 / 12 * 100%);
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
.h-8\/12 {
|
|
3263
|
+
height: calc(8 / 12 * 100%);
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
.h-9\/12 {
|
|
3267
|
+
height: calc(9 / 12 * 100%);
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
.h-10\/12 {
|
|
3271
|
+
height: calc(10 / 12 * 100%);
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
.h-11\/12 {
|
|
3275
|
+
height: calc(11 / 12 * 100%);
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
.size-full {
|
|
3279
|
+
width: 100%;
|
|
3280
|
+
height: 100%;
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
.size-auto {
|
|
3284
|
+
width: auto;
|
|
3285
|
+
height: auto;
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
.min-w-0 {
|
|
3289
|
+
min-width: 0px;
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
.min-w-full {
|
|
3293
|
+
min-width: 100%;
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
.min-w-fit {
|
|
3297
|
+
min-width: fit-content;
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
.min-w-min {
|
|
3301
|
+
min-width: min-content;
|
|
3302
|
+
}
|
|
3303
|
+
|
|
3304
|
+
.min-w-max {
|
|
3305
|
+
min-width: max-content;
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
.max-w-full {
|
|
3309
|
+
max-width: 100%;
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
.max-w-fit {
|
|
3313
|
+
max-width: fit-content;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
.max-w-min {
|
|
3317
|
+
max-width: min-content;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
.max-w-max {
|
|
3321
|
+
max-width: max-content;
|
|
3322
|
+
}
|
|
3323
|
+
|
|
3324
|
+
.max-w-none {
|
|
3325
|
+
max-width: none;
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
.min-h-0 {
|
|
3329
|
+
min-height: 0px;
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
.min-h-full {
|
|
3333
|
+
min-height: 100%;
|
|
3334
|
+
}
|
|
3335
|
+
|
|
3336
|
+
.min-h-fit {
|
|
3337
|
+
min-height: fit-content;
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
.min-h-screen {
|
|
3341
|
+
min-height: 100vh;
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3344
|
+
.min-h-dvh {
|
|
3345
|
+
min-height: 100dvh;
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
.max-h-full {
|
|
3349
|
+
max-height: 100%;
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
.max-h-fit {
|
|
3353
|
+
max-height: fit-content;
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
.max-h-screen {
|
|
3357
|
+
max-height: 100vh;
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
.max-h-none {
|
|
3361
|
+
max-height: none;
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
/* --- src/styles/spacing.css --- */
|
|
3366
|
+
|
|
3367
|
+
/*
|
|
3368
|
+
* Spacing classes — map 1:1 sang --spacing-* trong @finhay/leaf-tokens (Figma 34:1034).
|
|
3369
|
+
*
|
|
3370
|
+
* Tiền tố = thuộc tính (giống color): p-* / m-* / gap-* (+ biến thể hướng).
|
|
3371
|
+
* Hậu tố = bậc token: 0 · 2xs · xs · s · m · l · xl · 2xl … 7xl.
|
|
3372
|
+
*
|
|
3373
|
+
* Chỉ set đúng 1 thuộc tính spacing — không đụng width/height.
|
|
3374
|
+
* Nằm trong @layer utilities để Leaf thắng khi trùng tên, giống color.css.
|
|
3375
|
+
*/
|
|
3376
|
+
|
|
3377
|
+
@layer utilities {
|
|
3378
|
+
/* Padding */
|
|
3379
|
+
|
|
3380
|
+
.p-0 {
|
|
3381
|
+
padding: var(--spacing-0);
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3384
|
+
.p-2xs {
|
|
3385
|
+
padding: var(--spacing-2xs);
|
|
3386
|
+
}
|
|
3387
|
+
|
|
3388
|
+
.p-xs {
|
|
3389
|
+
padding: var(--spacing-xs);
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3392
|
+
.p-s {
|
|
3393
|
+
padding: var(--spacing-s);
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
.p-m {
|
|
3397
|
+
padding: var(--spacing-m);
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3400
|
+
.p-l {
|
|
3401
|
+
padding: var(--spacing-l);
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
.p-xl {
|
|
3405
|
+
padding: var(--spacing-xl);
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
.p-2xl {
|
|
3409
|
+
padding: var(--spacing-2xl);
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
.p-3xl {
|
|
3413
|
+
padding: var(--spacing-3xl);
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
.p-4xl {
|
|
3417
|
+
padding: var(--spacing-4xl);
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
.p-5xl {
|
|
3421
|
+
padding: var(--spacing-5xl);
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
.p-6xl {
|
|
3425
|
+
padding: var(--spacing-6xl);
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
.p-7xl {
|
|
3429
|
+
padding: var(--spacing-7xl);
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3432
|
+
.px-0 {
|
|
3433
|
+
padding-inline: var(--spacing-0);
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
.px-2xs {
|
|
3437
|
+
padding-inline: var(--spacing-2xs);
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
.px-xs {
|
|
3441
|
+
padding-inline: var(--spacing-xs);
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
.px-s {
|
|
3445
|
+
padding-inline: var(--spacing-s);
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3448
|
+
.px-m {
|
|
3449
|
+
padding-inline: var(--spacing-m);
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
.px-l {
|
|
3453
|
+
padding-inline: var(--spacing-l);
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3456
|
+
.px-xl {
|
|
3457
|
+
padding-inline: var(--spacing-xl);
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3460
|
+
.px-2xl {
|
|
3461
|
+
padding-inline: var(--spacing-2xl);
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
.px-3xl {
|
|
3465
|
+
padding-inline: var(--spacing-3xl);
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
.px-4xl {
|
|
3469
|
+
padding-inline: var(--spacing-4xl);
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3472
|
+
.px-5xl {
|
|
3473
|
+
padding-inline: var(--spacing-5xl);
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
.px-6xl {
|
|
3477
|
+
padding-inline: var(--spacing-6xl);
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3480
|
+
.px-7xl {
|
|
3481
|
+
padding-inline: var(--spacing-7xl);
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
.py-0 {
|
|
3485
|
+
padding-block: var(--spacing-0);
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3488
|
+
.py-2xs {
|
|
3489
|
+
padding-block: var(--spacing-2xs);
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
.py-xs {
|
|
3493
|
+
padding-block: var(--spacing-xs);
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
.py-s {
|
|
3497
|
+
padding-block: var(--spacing-s);
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
.py-m {
|
|
3501
|
+
padding-block: var(--spacing-m);
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
.py-l {
|
|
3505
|
+
padding-block: var(--spacing-l);
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
.py-xl {
|
|
3509
|
+
padding-block: var(--spacing-xl);
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
.py-2xl {
|
|
3513
|
+
padding-block: var(--spacing-2xl);
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
.py-3xl {
|
|
3517
|
+
padding-block: var(--spacing-3xl);
|
|
2156
3518
|
}
|
|
2157
3519
|
|
|
2158
3520
|
.py-4xl {
|
|
@@ -2175,6 +3537,10 @@
|
|
|
2175
3537
|
padding-top: var(--spacing-0);
|
|
2176
3538
|
}
|
|
2177
3539
|
|
|
3540
|
+
.pt-2xs {
|
|
3541
|
+
padding-top: var(--spacing-2xs);
|
|
3542
|
+
}
|
|
3543
|
+
|
|
2178
3544
|
.pt-xs {
|
|
2179
3545
|
padding-top: var(--spacing-xs);
|
|
2180
3546
|
}
|
|
@@ -2223,6 +3589,10 @@
|
|
|
2223
3589
|
padding-right: var(--spacing-0);
|
|
2224
3590
|
}
|
|
2225
3591
|
|
|
3592
|
+
.pr-2xs {
|
|
3593
|
+
padding-right: var(--spacing-2xs);
|
|
3594
|
+
}
|
|
3595
|
+
|
|
2226
3596
|
.pr-xs {
|
|
2227
3597
|
padding-right: var(--spacing-xs);
|
|
2228
3598
|
}
|
|
@@ -2271,6 +3641,10 @@
|
|
|
2271
3641
|
padding-bottom: var(--spacing-0);
|
|
2272
3642
|
}
|
|
2273
3643
|
|
|
3644
|
+
.pb-2xs {
|
|
3645
|
+
padding-bottom: var(--spacing-2xs);
|
|
3646
|
+
}
|
|
3647
|
+
|
|
2274
3648
|
.pb-xs {
|
|
2275
3649
|
padding-bottom: var(--spacing-xs);
|
|
2276
3650
|
}
|
|
@@ -2319,6 +3693,10 @@
|
|
|
2319
3693
|
padding-left: var(--spacing-0);
|
|
2320
3694
|
}
|
|
2321
3695
|
|
|
3696
|
+
.pl-2xs {
|
|
3697
|
+
padding-left: var(--spacing-2xs);
|
|
3698
|
+
}
|
|
3699
|
+
|
|
2322
3700
|
.pl-xs {
|
|
2323
3701
|
padding-left: var(--spacing-xs);
|
|
2324
3702
|
}
|
|
@@ -2369,6 +3747,10 @@
|
|
|
2369
3747
|
margin: var(--spacing-0);
|
|
2370
3748
|
}
|
|
2371
3749
|
|
|
3750
|
+
.m-2xs {
|
|
3751
|
+
margin: var(--spacing-2xs);
|
|
3752
|
+
}
|
|
3753
|
+
|
|
2372
3754
|
.m-xs {
|
|
2373
3755
|
margin: var(--spacing-xs);
|
|
2374
3756
|
}
|
|
@@ -2417,6 +3799,10 @@
|
|
|
2417
3799
|
margin-inline: var(--spacing-0);
|
|
2418
3800
|
}
|
|
2419
3801
|
|
|
3802
|
+
.mx-2xs {
|
|
3803
|
+
margin-inline: var(--spacing-2xs);
|
|
3804
|
+
}
|
|
3805
|
+
|
|
2420
3806
|
.mx-xs {
|
|
2421
3807
|
margin-inline: var(--spacing-xs);
|
|
2422
3808
|
}
|
|
@@ -2465,6 +3851,10 @@
|
|
|
2465
3851
|
margin-block: var(--spacing-0);
|
|
2466
3852
|
}
|
|
2467
3853
|
|
|
3854
|
+
.my-2xs {
|
|
3855
|
+
margin-block: var(--spacing-2xs);
|
|
3856
|
+
}
|
|
3857
|
+
|
|
2468
3858
|
.my-xs {
|
|
2469
3859
|
margin-block: var(--spacing-xs);
|
|
2470
3860
|
}
|
|
@@ -2513,6 +3903,10 @@
|
|
|
2513
3903
|
margin-top: var(--spacing-0);
|
|
2514
3904
|
}
|
|
2515
3905
|
|
|
3906
|
+
.mt-2xs {
|
|
3907
|
+
margin-top: var(--spacing-2xs);
|
|
3908
|
+
}
|
|
3909
|
+
|
|
2516
3910
|
.mt-xs {
|
|
2517
3911
|
margin-top: var(--spacing-xs);
|
|
2518
3912
|
}
|
|
@@ -2561,6 +3955,10 @@
|
|
|
2561
3955
|
margin-right: var(--spacing-0);
|
|
2562
3956
|
}
|
|
2563
3957
|
|
|
3958
|
+
.mr-2xs {
|
|
3959
|
+
margin-right: var(--spacing-2xs);
|
|
3960
|
+
}
|
|
3961
|
+
|
|
2564
3962
|
.mr-xs {
|
|
2565
3963
|
margin-right: var(--spacing-xs);
|
|
2566
3964
|
}
|
|
@@ -2609,6 +4007,10 @@
|
|
|
2609
4007
|
margin-bottom: var(--spacing-0);
|
|
2610
4008
|
}
|
|
2611
4009
|
|
|
4010
|
+
.mb-2xs {
|
|
4011
|
+
margin-bottom: var(--spacing-2xs);
|
|
4012
|
+
}
|
|
4013
|
+
|
|
2612
4014
|
.mb-xs {
|
|
2613
4015
|
margin-bottom: var(--spacing-xs);
|
|
2614
4016
|
}
|
|
@@ -2657,6 +4059,10 @@
|
|
|
2657
4059
|
margin-left: var(--spacing-0);
|
|
2658
4060
|
}
|
|
2659
4061
|
|
|
4062
|
+
.ml-2xs {
|
|
4063
|
+
margin-left: var(--spacing-2xs);
|
|
4064
|
+
}
|
|
4065
|
+
|
|
2660
4066
|
.ml-xs {
|
|
2661
4067
|
margin-left: var(--spacing-xs);
|
|
2662
4068
|
}
|
|
@@ -2707,6 +4113,10 @@
|
|
|
2707
4113
|
gap: var(--spacing-0);
|
|
2708
4114
|
}
|
|
2709
4115
|
|
|
4116
|
+
.gap-2xs {
|
|
4117
|
+
gap: var(--spacing-2xs);
|
|
4118
|
+
}
|
|
4119
|
+
|
|
2710
4120
|
.gap-xs {
|
|
2711
4121
|
gap: var(--spacing-xs);
|
|
2712
4122
|
}
|
|
@@ -2755,6 +4165,10 @@
|
|
|
2755
4165
|
column-gap: var(--spacing-0);
|
|
2756
4166
|
}
|
|
2757
4167
|
|
|
4168
|
+
.gap-x-2xs {
|
|
4169
|
+
column-gap: var(--spacing-2xs);
|
|
4170
|
+
}
|
|
4171
|
+
|
|
2758
4172
|
.gap-x-xs {
|
|
2759
4173
|
column-gap: var(--spacing-xs);
|
|
2760
4174
|
}
|
|
@@ -2803,6 +4217,10 @@
|
|
|
2803
4217
|
row-gap: var(--spacing-0);
|
|
2804
4218
|
}
|
|
2805
4219
|
|
|
4220
|
+
.gap-y-2xs {
|
|
4221
|
+
row-gap: var(--spacing-2xs);
|
|
4222
|
+
}
|
|
4223
|
+
|
|
2806
4224
|
.gap-y-xs {
|
|
2807
4225
|
row-gap: var(--spacing-xs);
|
|
2808
4226
|
}
|
|
@@ -2848,6 +4266,223 @@
|
|
|
2848
4266
|
}
|
|
2849
4267
|
}
|
|
2850
4268
|
|
|
4269
|
+
/* --- src/styles/text-layout.css --- */
|
|
4270
|
+
|
|
4271
|
+
/*
|
|
4272
|
+
* Text layout classes — căn chữ, whitespace, truncate, line-clamp, transform,
|
|
4273
|
+
* decoration, vertical-align.
|
|
4274
|
+
*
|
|
4275
|
+
* Tên file `text-layout.css` để tránh lẫn với class màu `text-*` và typography.css.
|
|
4276
|
+
* Không gồm wrap-break-*, italic, tabular-nums, cursor.
|
|
4277
|
+
*
|
|
4278
|
+
* Nằm trong @layer components (cùng lý do với flex.css).
|
|
4279
|
+
*/
|
|
4280
|
+
|
|
4281
|
+
@layer components {
|
|
4282
|
+
.text-left {
|
|
4283
|
+
text-align: left;
|
|
4284
|
+
}
|
|
4285
|
+
|
|
4286
|
+
.text-center {
|
|
4287
|
+
text-align: center;
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4290
|
+
.text-right {
|
|
4291
|
+
text-align: right;
|
|
4292
|
+
}
|
|
4293
|
+
|
|
4294
|
+
.text-justify {
|
|
4295
|
+
text-align: justify;
|
|
4296
|
+
}
|
|
4297
|
+
|
|
4298
|
+
.text-start {
|
|
4299
|
+
text-align: start;
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
.text-end {
|
|
4303
|
+
text-align: end;
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
.whitespace-normal {
|
|
4307
|
+
white-space: normal;
|
|
4308
|
+
}
|
|
4309
|
+
|
|
4310
|
+
.whitespace-nowrap {
|
|
4311
|
+
white-space: nowrap;
|
|
4312
|
+
}
|
|
4313
|
+
|
|
4314
|
+
.whitespace-pre {
|
|
4315
|
+
white-space: pre;
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4318
|
+
.whitespace-pre-line {
|
|
4319
|
+
white-space: pre-line;
|
|
4320
|
+
}
|
|
4321
|
+
|
|
4322
|
+
.whitespace-pre-wrap {
|
|
4323
|
+
white-space: pre-wrap;
|
|
4324
|
+
}
|
|
4325
|
+
|
|
4326
|
+
.whitespace-break-spaces {
|
|
4327
|
+
white-space: break-spaces;
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
.truncate {
|
|
4331
|
+
overflow: hidden;
|
|
4332
|
+
text-overflow: ellipsis;
|
|
4333
|
+
white-space: nowrap;
|
|
4334
|
+
}
|
|
4335
|
+
|
|
4336
|
+
.text-ellipsis {
|
|
4337
|
+
text-overflow: ellipsis;
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4340
|
+
.text-clip {
|
|
4341
|
+
text-overflow: clip;
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
.text-wrap {
|
|
4345
|
+
text-wrap: wrap;
|
|
4346
|
+
}
|
|
4347
|
+
|
|
4348
|
+
.text-nowrap {
|
|
4349
|
+
text-wrap: nowrap;
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4352
|
+
.text-balance {
|
|
4353
|
+
text-wrap: balance;
|
|
4354
|
+
}
|
|
4355
|
+
|
|
4356
|
+
.text-pretty {
|
|
4357
|
+
text-wrap: pretty;
|
|
4358
|
+
}
|
|
4359
|
+
|
|
4360
|
+
.break-normal {
|
|
4361
|
+
overflow-wrap: normal;
|
|
4362
|
+
word-break: normal;
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
.break-all {
|
|
4366
|
+
word-break: break-all;
|
|
4367
|
+
}
|
|
4368
|
+
|
|
4369
|
+
.break-keep {
|
|
4370
|
+
word-break: keep-all;
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
.line-clamp-1 {
|
|
4374
|
+
overflow: hidden;
|
|
4375
|
+
display: -webkit-box;
|
|
4376
|
+
-webkit-box-orient: vertical;
|
|
4377
|
+
-webkit-line-clamp: 1;
|
|
4378
|
+
}
|
|
4379
|
+
|
|
4380
|
+
.line-clamp-2 {
|
|
4381
|
+
overflow: hidden;
|
|
4382
|
+
display: -webkit-box;
|
|
4383
|
+
-webkit-box-orient: vertical;
|
|
4384
|
+
-webkit-line-clamp: 2;
|
|
4385
|
+
}
|
|
4386
|
+
|
|
4387
|
+
.line-clamp-3 {
|
|
4388
|
+
overflow: hidden;
|
|
4389
|
+
display: -webkit-box;
|
|
4390
|
+
-webkit-box-orient: vertical;
|
|
4391
|
+
-webkit-line-clamp: 3;
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4394
|
+
.line-clamp-4 {
|
|
4395
|
+
overflow: hidden;
|
|
4396
|
+
display: -webkit-box;
|
|
4397
|
+
-webkit-box-orient: vertical;
|
|
4398
|
+
-webkit-line-clamp: 4;
|
|
4399
|
+
}
|
|
4400
|
+
|
|
4401
|
+
.line-clamp-5 {
|
|
4402
|
+
overflow: hidden;
|
|
4403
|
+
display: -webkit-box;
|
|
4404
|
+
-webkit-box-orient: vertical;
|
|
4405
|
+
-webkit-line-clamp: 5;
|
|
4406
|
+
}
|
|
4407
|
+
|
|
4408
|
+
.line-clamp-6 {
|
|
4409
|
+
overflow: hidden;
|
|
4410
|
+
display: -webkit-box;
|
|
4411
|
+
-webkit-box-orient: vertical;
|
|
4412
|
+
-webkit-line-clamp: 6;
|
|
4413
|
+
}
|
|
4414
|
+
|
|
4415
|
+
.line-clamp-none {
|
|
4416
|
+
overflow: visible;
|
|
4417
|
+
display: block;
|
|
4418
|
+
-webkit-box-orient: horizontal;
|
|
4419
|
+
-webkit-line-clamp: unset;
|
|
4420
|
+
}
|
|
4421
|
+
|
|
4422
|
+
/* line-clamp set display — `hidden` vẫn phải ẩn (cùng lý do với flex.css). */
|
|
4423
|
+
.line-clamp-1[hidden],
|
|
4424
|
+
.line-clamp-2[hidden],
|
|
4425
|
+
.line-clamp-3[hidden],
|
|
4426
|
+
.line-clamp-4[hidden],
|
|
4427
|
+
.line-clamp-5[hidden],
|
|
4428
|
+
.line-clamp-6[hidden],
|
|
4429
|
+
.line-clamp-none[hidden] {
|
|
4430
|
+
display: none;
|
|
4431
|
+
}
|
|
4432
|
+
|
|
4433
|
+
.uppercase {
|
|
4434
|
+
text-transform: uppercase;
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4437
|
+
.lowercase {
|
|
4438
|
+
text-transform: lowercase;
|
|
4439
|
+
}
|
|
4440
|
+
|
|
4441
|
+
.capitalize {
|
|
4442
|
+
text-transform: capitalize;
|
|
4443
|
+
}
|
|
4444
|
+
|
|
4445
|
+
.normal-case {
|
|
4446
|
+
text-transform: none;
|
|
4447
|
+
}
|
|
4448
|
+
|
|
4449
|
+
.underline {
|
|
4450
|
+
text-decoration-line: underline;
|
|
4451
|
+
}
|
|
4452
|
+
|
|
4453
|
+
.line-through {
|
|
4454
|
+
text-decoration-line: line-through;
|
|
4455
|
+
}
|
|
4456
|
+
|
|
4457
|
+
.no-underline {
|
|
4458
|
+
text-decoration-line: none;
|
|
4459
|
+
}
|
|
4460
|
+
|
|
4461
|
+
.align-top {
|
|
4462
|
+
vertical-align: top;
|
|
4463
|
+
}
|
|
4464
|
+
|
|
4465
|
+
.align-middle {
|
|
4466
|
+
vertical-align: middle;
|
|
4467
|
+
}
|
|
4468
|
+
|
|
4469
|
+
.align-bottom {
|
|
4470
|
+
vertical-align: bottom;
|
|
4471
|
+
}
|
|
4472
|
+
|
|
4473
|
+
.align-baseline {
|
|
4474
|
+
vertical-align: baseline;
|
|
4475
|
+
}
|
|
4476
|
+
|
|
4477
|
+
.align-text-top {
|
|
4478
|
+
vertical-align: text-top;
|
|
4479
|
+
}
|
|
4480
|
+
|
|
4481
|
+
.align-text-bottom {
|
|
4482
|
+
vertical-align: text-bottom;
|
|
4483
|
+
}
|
|
4484
|
+
}
|
|
4485
|
+
|
|
2851
4486
|
/* --- src/styles/typography.css --- */
|
|
2852
4487
|
|
|
2853
4488
|
/*
|
|
@@ -2860,9 +4495,7 @@
|
|
|
2860
4495
|
* weight (400 / 600 / 700 theo token). Letter spacing, margin, màu chữ không
|
|
2861
4496
|
* thuộc stylesheet này — màu dùng class text-* riêng.
|
|
2862
4497
|
*
|
|
2863
|
-
* Toàn bộ nằm trong `@layer components`
|
|
2864
|
-
* utilities`) luôn thắng: `class="heading-1 font-bold"` hay `class="body-3
|
|
2865
|
-
* text-2xl"` đều override được mà không cần important modifier.
|
|
4498
|
+
* Toàn bộ nằm trong `@layer components` — SCSS module (ngoài layer) override được.
|
|
2866
4499
|
*/
|
|
2867
4500
|
|
|
2868
4501
|
@layer components {
|