1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
use super::*;
class! {
pub(crate) c_euv_tabs {
display: "flex";
flex-direction: "column";
width: "100%";
}
pub(crate) c_euv_tabs_bar {
display: "flex";
border-bottom: format!("1px dashed {}", var!(border));
margin-bottom: var!(gap-component);
gap: var!(gap-element);
@media ((max-width: 767px)) {
flex-wrap: "wrap";
}
}
pub(crate) c_euv_tab_item {
padding: format!("{} {}", var!(space-md), var!(space-xl));
cursor: "pointer";
font-size: var!(font-base);
font-weight: "500";
border-bottom: "2px solid transparent";
color: "inherit";
background: "transparent";
touch-action: "manipulation";
user-select: "none";
-webkit-user-select: "none";
white-space: "nowrap";
:hover {
background: var!(accent-muted);
color: var!(accent);
}
}
pub(crate) c_euv_tab_item_active {
padding: format!("{} {}", var!(space-md), var!(space-xl));
cursor: "pointer";
font-size: var!(font-base);
font-weight: "500";
border-bottom: format!("2px solid {}", var!(accent));
color: var!(text-on-accent);
background: var!(accent);
touch-action: "manipulation";
user-select: "none";
-webkit-user-select: "none";
white-space: "nowrap";
}
pub(crate) c_euv_tabs_panel {
padding: format!("{} 0px", var!(gap-element));
}
pub(crate) c_euv_collapse_item {
border-bottom: format!("1px dashed {}", var!(border));
}
pub(crate) c_euv_collapse_header {
display: "flex";
align-items: "center";
gap: var!(space-sm);
width: "100%";
min-height: var!(min-height-base);
padding: format!("{} 0px", var!(space-sm));
cursor: "pointer";
text-align: "left";
font-size: var!(font-base);
font-weight: "500";
color: var!(foreground);
background: "transparent";
border: "none";
outline: "none";
touch-action: "manipulation";
user-select: "none";
-webkit-user-select: "none";
:hover {
background: var!(accent-muted);
color: var!(accent);
}
}
pub(crate) c_euv_collapse_header_active {
display: "flex";
align-items: "center";
gap: var!(space-sm);
width: "100%";
min-height: var!(min-height-base);
padding: format!("{} 0px", var!(space-sm));
cursor: "pointer";
text-align: "left";
font-size: var!(font-base);
font-weight: "600";
color: var!(accent);
background: var!(accent-muted);
border: "none";
outline: "none";
touch-action: "manipulation";
user-select: "none";
-webkit-user-select: "none";
}
pub(crate) c_euv_collapse_body {
overflow: "hidden";
font-size: var!(font-base);
color: var!(foreground);
transition: format!("max-height {} {}, opacity {} {}", var!(duration-normal), var!(ease-out), var!(duration-normal), var!(ease-out));
}
pub(crate) c_euv_collapse_body_open {
overflow: "hidden";
max-height: "none";
opacity: "1";
padding-bottom: var!(space-md);
font-size: var!(font-base);
color: var!(foreground);
transition: format!("max-height {} {}, opacity {} {}", var!(duration-normal), var!(ease-out), var!(duration-normal), var!(ease-out));
}
pub(crate) c_euv_collapse_body_closed {
overflow: "hidden";
max-height: "0px";
opacity: "0";
font-size: var!(font-base);
color: var!(foreground);
transition: format!("max-height {} {}, opacity {} {}", var!(duration-normal), var!(ease-out), var!(duration-normal), var!(ease-out));
}
pub(crate) c_euv_breadcrumb {
display: "flex";
align-items: "center";
flex-wrap: "wrap";
gap: var!(space-xs);
font-size: var!(font-sm);
}
pub(crate) c_euv_breadcrumb_item {
font-size: var!(font-sm);
color: var!(muted-foreground);
cursor: "pointer";
text-decoration: "none";
touch-action: "manipulation";
user-select: "none";
-webkit-user-select: "none";
:hover {
background: var!(accent-muted);
color: var!(accent);
}
}
pub(crate) c_euv_breadcrumb_sep {
font-size: var!(font-sm);
color: var!(muted-foreground);
user-select: "none";
-webkit-user-select: "none";
}
pub(crate) c_euv_breadcrumb_current {
font-size: var!(font-sm);
font-weight: "600";
color: var!(foreground);
cursor: "default";
}
pub(crate) c_euv_divider {
display: "block";
width: "100%";
}
pub(crate) c_euv_divider_horizontal {
display: "block";
width: "100%";
height: "0px";
border: "none";
border-top: format!("1px solid {}", var!(border));
margin: format!("{} 0px", var!(space-lg));
}
pub(crate) c_euv_divider_vertical {
display: "block";
width: "0px";
height: "auto";
align-self: "center";
border: "none";
border-left: format!("1px solid {}", var!(border));
margin: format!("0px {}", var!(space-sm));
}
pub(crate) c_euv_divider_labeled {
display: "flex";
align-items: "center";
gap: var!(space-sm);
width: "100%";
margin: format!("{} 0px", var!(space-lg));
}
pub(crate) c_euv_divider_label_text {
font-size: var!(font-xs);
font-weight: "500";
color: var!(muted-foreground);
white-space: "nowrap";
user-select: "none";
-webkit-user-select: "none";
}
// ═══════════════════════════════════════════════════════════════════════════
// Card Component
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_card {
color: var!(foreground);
box-sizing: "border-box";
// The card title carries a `gap-component` margin, and that margin
// collapses out of the card — the card has no padding and no border
// to stop it. The gap between two cards was therefore whatever the
// title's margin happened to be, not a value anybody chose. The
// block gap is the value the page template asks for, so it is named
// here instead of being left to a side effect.
margin-top: var!(page-block-gap);
@media ((max-width: 767px)) {
margin-top: var!(page-block-gap-mobile);
}
}
pub c_card_title {
margin: format!("{} 0px", var!(gap-component));
color: var!(foreground);
font-size: var!(font-lg);
font-weight: "600";
padding-bottom: var!(gap-component);
border-bottom: format!("1px dashed {}", var!(border));
letter-spacing: "-0.01em";
@media ((max-width: 767px)) {
font-size: var!(font-md);
}
}
// ═══════════════════════════════════════════════════════════════════════════
// Buttons
// ═══════════════════════════════════════════════════════════════════════════
pub c_primary_button {
display: "flex";
justify-content: "center";
align-items: "center";
gap: var!(space-sm);
width: "100%";
height: "42px";
background: var!(accent);
color: var!(text-on-accent);
border: "1px solid transparent";
padding: format!("0px {}", var!(space-2xl));
cursor: "pointer";
font-size: var!(font-base);
font-weight: "500";
letter-spacing: "0.02em";
text-align: "center";
outline: "none";
box-sizing: "border-box";
white-space: "nowrap";
overflow: "hidden";
text-overflow: "ellipsis";
user-select: "none";
-webkit-user-select: "none";
:focus-visible {
outline: "none";
}
:disabled {
background: var!(muted-foreground);
cursor: "not-allowed";
opacity: "1";
}
:hover {
background: var!(accent);
}
:active {
background: var!(accent);
color: var!(text-on-accent);
border-color: "transparent";
}
@media ((max-width: 767px)) {
max-width: "100%";
padding: format!("{} {}", var!(space-lg), var!(space-xl));
font-size: var!(font-md);
}
}
pub(crate) c_modal_close_button {
display: "flex";
justify-content: "center";
align-items: "center";
color: "inherit";
border: "none";
padding: format!("{} {}", var!(space-sm), var!(space-md));
cursor: "pointer";
font-size: "20px";
font-weight: "400";
vertical-align: "middle";
outline: "none";
opacity: "1";
flex-shrink: "0";
transition: format!("opacity {} {}", var!(duration-fast), var!(ease-out));
:hover {
opacity: "1";
}
:active {
opacity: "1";
}
:focus {
outline: "none";
}
}
// ═══════════════════════════════════════════════════════════════════════════
// Button Controls Container
// ═══════════════════════════════════════════════════════════════════════════
pub c_button_controls {
display: "flex";
flex-wrap: "wrap";
gap: var!(gap-element);
margin-top: var!(gap-component);
margin-bottom: var!(gap-component);
}
// ═══════════════════════════════════════════════════════════════════════════
// Euv Button Variants
// ═══════════════════════════════════════════════════════════════════════════
pub c_euv_button_primary_md {
display: "flex";
justify-content: "center";
align-items: "center";
gap: var!(space-sm);
flex: "1 1 120px";
height: "42px";
padding: format!("0px {}", var!(space-xl));
background: var!(accent);
color: var!(text-on-accent);
cursor: "pointer";
font-size: var!(font-base);
font-weight: "500";
outline: "none";
white-space: "nowrap";
user-select: "none";
-webkit-user-select: "none";
box-sizing: "border-box";
:disabled {
background: var!(muted-foreground);
cursor: "not-allowed";
opacity: "1";
}
}
pub(crate) c_euv_button_outline_md {
display: "flex";
justify-content: "center";
align-items: "center";
gap: var!(space-sm);
flex: "1 1 120px";
height: "42px";
padding: format!("0px {}", var!(space-xl));
color: var!(foreground);
border: format!("1px solid {}", var!(border));
cursor: "pointer";
font-size: var!(font-base);
font-weight: "500";
outline: "none";
white-space: "nowrap";
user-select: "none";
-webkit-user-select: "none";
box-sizing: "border-box";
:focus-visible {
outline: "none";
}
:disabled {
background: var!(muted-foreground);
cursor: "not-allowed";
opacity: "1";
}
}
// ═══════════════════════════════════════════════════════════════════════════
// Badges
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_badge {
// The wrapping-atom recipe (§7): an inline flex box is atomic, so a
// wrapped label left-aligns while the border stays at the parent
// width — the right border reads as missing. The four `c_euv_tag_*`
// variants already use this recipe; a badge is the same kind of
// element and must not mix the two.
display: "inline-block";
vertical-align: "middle";
text-align: "center";
line-height: "1";
box-sizing: "border-box";
color: var!(text-on-accent);
padding: format!("{} {}", var!(space-2xs), var!(space-sm));
border: format!("1px solid {}", var!(accent));
font-size: var!(font-xs);
font-weight: "600";
cursor: "pointer";
background: var!(accent);
:focus-visible {
outline: "none";
}
@media ((max-width: 767px)) {
padding: format!("{} {}", var!(space-2xs), var!(space-xs));
font-size: var!(font-xs);
}
}
pub(crate) c_badge_outline {
display: "inline-block";
vertical-align: "middle";
text-align: "center";
line-height: "1";
box-sizing: "border-box";
color: var!(foreground);
padding: format!("{} {}", var!(space-2xs), var!(space-sm));
font-size: var!(font-xs);
font-weight: "600";
cursor: "pointer";
border: format!("1.5px solid {}", var!(border));
@media ((max-width: 767px)) {
padding: format!("{} {}", var!(space-2xs), var!(space-xs));
font-size: var!(font-xs);
}
}
pub(crate) c_euv_tag_solid_black {
display: "inline-block";
vertical-align: "middle";
text-align: "center";
line-height: "1";
color: var!(text-on-accent);
padding: format!("{} {}", var!(space-xs), var!(space-md));
font-size: var!(font-sm);
font-weight: "600";
cursor: "pointer";
background: var!(accent);
border: format!("1px solid {}", var!(accent));
box-sizing: "border-box";
}
pub(crate) c_euv_tag_solid_white {
display: "inline-block";
vertical-align: "middle";
text-align: "center";
line-height: "1";
color: var!(foreground);
padding: format!("{} {}", var!(space-2xs), var!(space-sm));
font-size: var!(font-xs);
font-weight: "600";
cursor: "pointer";
border: format!("1.5px solid {}", var!(accent));
box-sizing: "border-box";
}
// ═══════════════════════════════════════════════════════════════════════════
// Euv Tag Variants (semantic colour tags)
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_tag_outline_black {
display: "inline-block";
vertical-align: "middle";
text-align: "center";
line-height: "1";
color: var!(accent);
padding: format!("{} {}", var!(space-2xs), var!(space-sm));
font-size: var!(font-xs);
font-weight: "600";
cursor: "pointer";
border: format!("1.5px solid {}", var!(accent));
box-sizing: "border-box";
}
pub(crate) c_euv_tag_outline_white {
display: "inline-block";
vertical-align: "middle";
text-align: "center";
line-height: "1";
color: var!(foreground);
padding: format!("{} {}", var!(space-xs), var!(space-md));
font-size: var!(font-sm);
font-weight: "600";
cursor: "pointer";
border: format!("1.5px solid {}", var!(border));
box-sizing: "border-box";
}
// ═══════════════════════════════════════════════════════════════════════════
// Status Boxes
// ═══════════════════════════════════════════════════════════════════════════
pub c_error_box {
margin: format!("{} 0px", var!(gap-component));
background: var!(accent-muted);
color: var!(foreground);
font-size: var!(font-base);
box-sizing: "border-box";
}
pub c_success_box {
margin: format!("{} 0px", var!(gap-component));
background: var!(accent-muted);
color: var!(foreground);
font-size: var!(font-base);
box-sizing: "border-box";
}
// ═══════════════════════════════════════════════════════════════════════════
// Counter / Signals Demo
// ═══════════════════════════════════════════════════════════════════════════
pub c_counter_row {
display: "grid";
grid-template-columns: "1fr 1fr";
align-items: "center";
gap: var!(gap-component);
@media ((max-width: 767px)) {
grid-template-columns: "1fr";
}
}
pub c_counter_text {
font-size: var!(font-base);
color: "inherit";
margin-bottom: var!(gap-component);
}
pub c_counter_value {
font-weight: "700";
color: var!(accent);
font-size: var!(font-base);
}
pub c_counter_value_row {
margin-top: var!(space-sm);
word-break: "break-all";
overflow-wrap: "anywhere";
font-size: var!(font-base);
color: "inherit";
font-weight: "400";
}
pub c_badge_row {
display: "flex";
gap: var!(gap-inline);
flex-wrap: "wrap";
align-items: "center";
}
pub c_badge_hint {
margin-bottom: var!(gap-component);
color: "inherit";
opacity: "1";
font-size: var!(font-base);
}
// ═══════════════════════════════════════════════════════════════════════════
// Tabs
// ═══════════════════════════════════════════════════════════════════════════
pub c_tab_bar {
display: "flex";
border-bottom: format!("1px dashed {}", var!(border));
margin-bottom: var!(gap-component);
gap: var!(gap-element);
@media ((max-width: 767px)) {
flex-wrap: "wrap";
}
}
pub c_tab_item_active {
padding: format!("{} {}", var!(space-md), var!(space-xl));
cursor: "pointer";
border-bottom: format!("2px solid {}", var!(accent));
color: var!(text-on-accent);
background: var!(accent);
font-size: var!(font-base);
font-weight: "500";
// iOS WebKit: tap on a non-button element inside a scrollable
// container can be silently dropped because iOS interprets the
// touch as the start of a scroll gesture and never dispatches the
// synthetic `click`. `touch-action: manipulation` tells iOS this
// element only responds to taps and panning — no double-tap-zoom
// wait, no scroll-gesture disambiguation. `user-select: none`
// additionally suppresses the iOS text-selection bubble that
// would otherwise intercept the tap. See ui/src/style/css/fn.rs
// for the global reset and PR that documents the iOS repro.
touch-action: "manipulation";
user-select: "none";
-webkit-user-select: "none";
}
pub c_tab_item_inactive {
padding: format!("{} {}", var!(space-md), var!(space-xl));
cursor: "pointer";
border-bottom: "2px solid transparent";
color: "inherit";
font-size: var!(font-base);
font-weight: "500";
// iOS WebKit fix — see c_tab_item_active above for the rationale.
touch-action: "manipulation";
user-select: "none";
-webkit-user-select: "none";
:hover {
background: var!(accent-muted);
color: var!(accent);
}
}
pub c_tab_content {
padding: format!("{} 0px", var!(gap-element));
}
pub c_tab_text {
color: "inherit";
font-size: var!(font-base);
margin-bottom: var!(gap-element);
}
pub c_tab_text_muted {
color: "inherit";
opacity: "1";
font-size: var!(font-base);
}
pub c_tab_text_input {
color: "inherit";
font-size: var!(font-base);
margin-bottom: var!(gap-component);
}
// ═══════════════════════════════════════════════════════════════════════════
// List
// ═══════════════════════════════════════════════════════════════════════════
pub c_list_input {
width: "100%";
flex: "1";
height: "42px";
padding: format!("0px {}", var!(space-lg));
border: format!("1px solid {}", var!(border));
font-size: var!(font-base);
line-height: "normal";
box-sizing: "border-box";
outline: "none";
color: var!(foreground);
appearance: "none";
-webkit-appearance: "none";
-moz-appearance: "none";
vertical-align: "middle";
:hover {
border-color: var!(accent);
background: var!(accent-muted);
}
:focus {
outline: "none";
border-color: var!(accent);
background: var!(accent-muted);
}
}
pub c_list_input_error {
width: "100%";
flex: "1";
height: "42px";
padding: format!("0px {}", var!(space-lg));
border: format!("1px solid {}", var!(foreground));
font-size: var!(font-base);
line-height: "normal";
box-sizing: "border-box";
outline: "none";
color: var!(foreground);
appearance: "none";
-webkit-appearance: "none";
-moz-appearance: "none";
vertical-align: "middle";
:focus {
outline: "none";
border-color: var!(foreground);
}
}
pub c_list_error_text {
color: var!(foreground);
font-size: var!(font-base);
margin: format!("{} 0px", var!(gap-element));
}
pub c_inline_input_button_wrap {
flex-shrink: "0";
}
pub c_list_ul {
list-style: "none";
padding: "0px";
margin: "0px";
margin-top: var!(gap-component);
}
pub c_list_item {
display: "flex";
justify-content: "space-between";
align-items: "center";
gap: var!(gap-component);
min-height: var!(min-height-base);
margin: format!("{} 0px", var!(gap-element));
}
pub c_list_item_text {
flex: "1";
overflow: "hidden";
text-overflow: "ellipsis";
white-space: "nowrap";
font-size: var!(font-base);
color: "inherit";
min-width: "0";
}
pub c_list_item_button {
max-width: "120px";
flex-shrink: "0";
}
// ═══════════════════════════════════════════════════════════════════════════
// Animation Demo
// ═══════════════════════════════════════════════════════════════════════════
pub c_anim_fade_in {
margin-top: var!(gap-component);
animation: format!("euv-fade-in 0.5s {}", var!(ease-out));
font-size: var!(font-base);
color: "inherit";
}
pub c_anim_spin_container {
display: "flex";
justify-content: "center";
align-items: "center";
margin: format!("{} 0px", var!(space-lg));
min-height: "80px";
}
pub c_anim_spin {
font-size: var!(font-5xl);
animation: "euv-spin 1.5s linear infinite";
display: "inline-block";
@media ((max-width: 767px)) {
font-size: var!(font-4xl);
}
}
pub c_anim_spin_stopped {
font-size: var!(font-5xl);
display: "inline-block";
opacity: "1";
@media ((max-width: 767px)) {
font-size: var!(font-4xl);
}
}
pub c_anim_pulse_container {
display: "flex";
justify-content: "center";
align-items: "center";
margin: format!("{} 0px", var!(space-lg));
min-height: "80px";
}
pub c_anim_pulse {
font-size: var!(font-5xl);
animation: "euv-pulse 1.5s ease-in-out infinite";
display: "inline-block";
color: var!(foreground);
@media ((max-width: 767px)) {
font-size: var!(font-4xl);
}
}
pub c_anim_pulse_stopped {
font-size: var!(font-5xl);
display: "inline-block";
opacity: "1";
color: var!(foreground);
@media ((max-width: 767px)) {
font-size: var!(font-4xl);
}
}
pub c_progress_container {
width: "100%";
height: "12px";
margin: format!("{} 0px", var!(space-lg));
overflow: "hidden";
}
pub c_progress_bar_running {
height: "100%";
background: var!(accent);
animation: format!("euv-progress 1.6s {} forwards", var!(ease-in-out));
}
pub c_progress_bar_stopped {
height: "100%";
background: var!(accent);
width: "0%";
}
pub c_anim_scale_box {
margin: format!("{} 0px", var!(gap-component));
padding: var!(space-xl);
background: var!(accent);
cursor: "pointer";
transition: format!("transform {} {}", var!(duration-normal), var!(ease-out));
}
// ═══════════════════════════════════════════════════════════════════════════
// Unified Layout Primitives
// ═══════════════════════════════════════════════════════════════════════════
pub c_element_stack {
display: "flex";
flex-direction: "column";
gap: var!(gap-element);
}
pub c_switcher {
display: "flex";
gap: var!(gap-component);
flex-wrap: "wrap";
@media ((max-width: 767px)) {
flex-direction: "column";
gap: var!(gap-component-mobile);
}
}
pub c_switcher_col {
flex: "1";
min-width: "200px";
@media ((max-width: 767px)) {
min-width: "100%";
}
}
// ═══════════════════════════════════════════════════════════════════════════
// Unified Description / Hint Text
// ═══════════════════════════════════════════════════════════════════════════
pub c_hint {
color: "inherit";
opacity: "1";
font-size: var!(font-base);
margin-bottom: var!(gap-component);
}
// ═══════════════════════════════════════════════════════════════════════════
// euv_pagination
// ═══════════════════════════════════════════════════════════════════════════
pub c_euv_pagination {
// CSS grid with two equal columns gives us perfect 50/50 widths
// regardless of the link content length, which flex with `1 1
// auto` cannot (each link starts at its own content size). The
// mobile breakpoint stacks the grid to a single column so each
// link sizes to its content.
display: "grid";
grid-template-columns: "1fr 1fr";
gap: var!(gap-component);
// ~`space-2xl` (1.5rem) above the pagination — comfortable
// breathing room without a huge gap before prev/next. The original
// `space-4xl` (2.5rem) margin was doubled by a `padding-top` in the
// docs app override, leaving ~100px of empty space above the
// pagination boxes which made the page feel bottom-heavy.
margin-top: var!(space-2xl);
// `min-width: 0` lets prev/next text actually use ellipsis when the
// container is narrow — without it the grid track blows out the row.
min-width: "0px";
@media ((max-width: 767px)) {
grid-template-columns: "minmax(0, 1fr)";
}
}
pub c_euv_pagination_link {
// `min-width: 0` lets long labels ellipsize on the desktop row
// layout. `overflow: hidden` is required to actually apply ellipsis
// when content is wider than the link.
min-width: "0px";
border: format!("1px solid {}", var!(border));
padding: var!(space-lg);
cursor: "pointer";
display: "flex";
flex-direction: "column";
gap: var!(space-2xs);
overflow: "hidden";
:hover {
border-color: var!(accent);
}
}
pub(crate) c_euv_pagination_label {
font-size: var!(font-xs);
color: var!(muted-foreground);
text-transform: "uppercase";
letter-spacing: "0.08em";
}
pub(crate) c_euv_pagination_text {
font-size: var!(font-base);
font-weight: "600";
color: var!(accent);
// Ellipsize when the link is too narrow for the page title. The
// outer `.c_euv_pagination_link` already sets `overflow: hidden`
// and `min-width: 0`, so a single `text-overflow: ellipsis` here
// is enough — without `white-space: nowrap` the text wraps to
// multiple lines and the ellipsis never kicks in.
white-space: "nowrap";
overflow: "hidden";
text-overflow: "ellipsis";
min-width: "0px";
}
pub(crate) c_euv_pagination_next {
text-align: "right";
}
pub(crate) c_euv_pagination_spacer {
flex: "1";
}
// ═══════════════════════════════════════════════════════════════════════════
// euv_markdown / euv_footer
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_markdown {
width: "100%";
min-width: "0px";
}
// Scroll container for a markdown table.
//
// The table keeps `display: table` (so it fills the column and its
// columns are sized by real table layout), which means the *wrapper*
// is what can scroll: `overflow-x` on the table box itself is ignored.
// `min-width: 0` is what lets the wrapper shrink inside the flex/grid
// prose column instead of being floored by its table's intrinsic width,
// so a wide table scrolls rather than pushing the whole article wide.
pub(crate) c_euv_markdown_table_scroll {
overflow-x: "auto";
max-width: "100%";
min-width: "0px";
}
pub c_euv_footer {
// Footer sits at the natural end of the article column. The user
// reaches it by scrolling to the bottom of the article — no sticky
// or fixed positioning. This matches the desktop behavior and
// Avoid any layout interference on mobile (where a sticky footer
// would overlap the last lines of content while scrolling).
// No top margin: the preceding tail block already carries the gap
// between the article and its pagination, so a margin here would
// stack with it and leave the rule stranded below an empty band.
// The dashed rule is this element's own `border-top`, so the
// padding below is the gap from the rule to the text and the
// padding above is the gap from the preceding content to the rule.
// Only one of them belongs to the band inside the rule, and it is
// the top one — that is the space between the divider and the text.
// `space-md` keeps the text close to the rule; the block is
// `display: flex` with `align-items: center` so the line is
// centred in the row the padding defines rather than riding its
// top edge.
padding: format!("{} 0px", var!(space-md));
border-top: format!("1px dashed {}", var!(border));
display: "flex";
align-items: "center";
justify-content: "center";
text-align: "center";
font-size: var!(font-sm);
color: var!(muted-foreground);
}
// ═══════════════════════════════════════════════════════════════════════════
// euv_result / euv_doc_layout
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_result {
display: "flex";
flex-direction: "column";
align-items: "center";
justify-content: "center";
text-align: "center";
gap: var!(space-md);
padding: format!("{} {}", var!(space-4xl), var!(space-md));
// Half the available height, not half the viewport: the result block
// lives inside a scroll container, so a viewport unit would be taller
// than the visible area on short pages and leave the buttons below
// the fold.
min-height: "50%";
}
pub(crate) c_euv_result_code {
font-size: var!(font-6xl);
font-weight: "700";
line-height: "1";
letter-spacing: "-0.02em";
}
pub(crate) c_euv_result_title {
font-size: var!(font-2xl);
font-weight: "600";
margin: "0px";
}
pub(crate) c_euv_result_description {
color: var!(muted-foreground);
margin: "0px";
}
pub(crate) c_euv_result_actions {
display: "flex";
gap: var!(space-md);
margin-top: var!(space-lg);
}
pub c_euv_doc_layout {
display: "flex";
gap: var!(space-4xl);
width: "100%";
min-width: "0px";
max-width: "1080px";
margin: "0px auto";
// Fill the visible area of the scroll container (`c_app_main`,
// `overflow: auto` with a definite `height: 100%`) so the content
// column has room to push its tail to the bottom. A viewport unit
// would be wrong here: `100vh` measures the whole window including
// the app header, overshooting the visible area by the header
// height and pushing pagination/footer one header past the fold.
// Being a direct child of the scroll container, a percentage does
// resolve against its content box — put it one level deeper and
// the intermediate auto-height flex row makes `100%` degenerate to
// `auto`.
min-height: "100%";
// As a flex item of the scroll container's column, the default
// `flex-shrink: 1` lets this row be compressed to the `min-height`
// floor — 824px here — even though its content is 12780px tall. A
// sticky descendant can only travel inside its containing block, so
// the clamped row made `c_euv_doc_toc` unpin after roughly one
// viewport of scroll. Never shrink: the row must carry the article's
// full height so the sticky range spans the whole page.
flex-shrink: "0";
}
pub c_euv_doc_content {
// Two parallel children — the article body and the
// `c_euv_doc_tail` wrapper (pagination + footer). The flex column
// distributes them at the two ends:
// - when the article is shorter than the column's intrinsic
// height, `justify-content: space-between` pushes the tail to
// the bottom edge;
// - when the article is longer, the tail sits right after the
// article in normal flow (because content height exceeds
// min-height, there's no remaining space to distribute).
// The scroll container is `c_app_main` (`overflow: auto`), not the
// window, so a viewport unit measures the whole window including the
// app header. `100vh` therefore overshoots by the header height and
// pushes the tail one header past the fold on a short page. Height
// comes from `c_euv_doc_layout` (a direct child of the scroll
// container, where a percentage resolves); here `align-items:
// stretch` — the flex default — makes this column take that height
// so `space-between` has the full column to distribute across.
// - article shorter than the column: `space-between` drops the
// tail to the bottom edge of the visible area;
// - article longer: the column grows with it and the tail follows
// the body in normal flow, scrolling with the page.
flex: "1";
min-width: "0px";
max-width: var!(content-max-width);
display: "flex";
flex-direction: "column";
justify-content: "space-between";
}
pub c_euv_doc_body {
// Groups the page title and the rendered markdown into a single
// flex item. Without this the column would hold the `<h1>` and
// the `<article>` as two separate items, and
// `justify-content: space-between` would push them apart — a wide
// blank band between the title and the first paragraph on any
// page whose body is shorter than the column.
display: "flex";
flex-direction: "column";
// The body takes its natural height; only the tail is pushed to
// the far end. `flex-shrink: 0` keeps a long body from being
// compressed when the column is height-constrained.
flex: "0 0 auto";
min-width: "0px";
}
pub c_euv_doc_tail {
// Plain block wrapper that groups pagination + footer into one
// flex child. With `display: contents` the wrapper would be
// skipped and the two siblings would behave as direct children
// of `c_euv_doc_content` — breaking the two-parallel-containers
// contract that `justify-content: space-between` relies on.
display: "block";
}
pub c_euv_doc_toc {
width: "200px";
flex-shrink: "0";
// Pin the TOC column to the viewport while the main content scrolls.
// The sticky scroll container is `c_app_main` (the overflow:auto
// wrapper), so this offset is measured from that container's top edge.
// It tracks `padding-main-top` rather than a bare `0` so the pinned
// column keeps the same breathing room below the container edge as the
// article has below the same edge — the two columns stay on one
// vertical rhythm instead of the TOC riding flush against the top.
position: "sticky";
top: var!(padding-main-top);
@media ((max-width: 1100px)) {
display: "none";
}
}
// Makes the element's own box disappear while its children stay in the
// parent's layout flow, so a wrapper can carry a key or a conditional
// without contributing a box.
//
// The docs shell and page wrappers spelled this as an inline
// `style: "display: contents"`; the rule is the same either way, but a
// named class keeps the markup declarative and lets the browser cache it.
pub c_euv_display_contents {
display: "contents";
}
// ═══════════════════════════════════════════════════════════════════════
// Home Page Layout
// ═══════════════════════════════════════════════════════════════════════
pub c_home_layout {
// Mirrors `c_euv_doc_layout`: fill the visible area of the scroll
// container (`c_app_main`, `overflow: auto` with a definite
// `height: 100%`) so the column below has room to push its footer to
// the bottom. A viewport unit would overshoot by the app header.
//
// As a flex item of the scroll container's column it must never be
// shrunk below its content, or a tall home page collapses and the
// sticky-free column loses its height floor.
display: "flex";
flex-direction: "column";
width: "100%";
min-width: "0px";
min-height: "100%";
flex-shrink: "0";
margin: "0px auto";
max-width: var!(content-max-width);
}
pub c_home_content {
// Two parallel children — the content region (hero, stats, feature
// grid, blocks) and `c_home_tail` (the footer). `space-between`
// puts the footer at the far end of the column: on a short home page
// it drops to the bottom of the visible area, and on a tall one it
// follows the content in normal flow.
flex: "1";
min-width: "0px";
display: "flex";
flex-direction: "column";
justify-content: "space-between";
}
pub c_home_body {
// Groups hero + stats + grid + blocks into one flex item. Without
// this wrapper `space-between` would distribute the free space
// between the hero and the grid, tearing the title away from the
// content it introduces.
display: "flex";
flex-direction: "column";
flex-shrink: "0";
}
pub c_home_tail {
// Plain block wrapper around the footer so the column keeps exactly
// two children. A `display: contents` wrapper would be skipped and
// the footer would become a direct flex item, which is the case this
// structure exists to avoid.
display: "block";
flex-shrink: "0";
}
// ═══════════════════════════════════════════════════════════════════════════
// Empty
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_empty {
display: "flex";
flex-direction: "column";
align-items: "center";
justify-content: "center";
gap: var!(space-sm);
width: "100%";
padding: var!(space-3xl);
box-sizing: "border-box";
text-align: "center";
}
pub(crate) c_euv_empty_icon {
font-size: var!(font-3xl);
line-height: "1";
color: var!(muted-foreground);
}
pub(crate) c_euv_empty_text {
font-size: var!(font-lg);
font-weight: "600";
color: var!(foreground);
}
pub(crate) c_euv_empty_desc {
font-size: var!(font-sm);
color: var!(muted-foreground);
max-width: var!(text-measure);
}
pub(crate) c_euv_empty_action {
margin-top: var!(space-sm);
}
// ═══════════════════════════════════════════════════════════════════════════
// Typography
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_text {
margin: "0px";
color: var!(foreground);
font-size: var!(font-base);
line-height: "1.6";
}
pub(crate) c_euv_text_title {
margin: "0px";
color: var!(foreground);
font-size: var!(font-xl);
font-weight: "600";
line-height: "1.4";
}
pub(crate) c_euv_text_title_lg {
margin: "0px";
color: var!(foreground);
font-size: var!(font-2xl);
font-weight: "600";
line-height: "1.35";
}
pub(crate) c_euv_text_title_sm {
margin: "0px";
color: var!(foreground);
font-size: var!(font-lg);
font-weight: "600";
line-height: "1.4";
}
pub(crate) c_euv_text_paragraph {
margin: "0px";
color: var!(foreground);
font-size: var!(font-base);
line-height: "1.6";
}
pub(crate) c_euv_text_secondary {
margin: "0px";
color: var!(muted-foreground);
font-size: var!(font-sm);
line-height: "1.6";
}
pub(crate) c_euv_text_mono {
margin: "0px";
color: var!(foreground);
font-size: var!(font-sm);
font-family: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
line-height: "1.5";
}
pub(crate) c_euv_text_deletion {
margin: "0px";
color: var!(muted-foreground);
font-size: var!(font-base);
text-decoration: "line-through";
line-height: "1.6";
}
pub(crate) c_euv_text_underline {
margin: "0px";
color: var!(foreground);
font-size: var!(font-base);
text-decoration: "underline";
line-height: "1.6";
}
// ═══════════════════════════════════════════════════════════════════════════
// Link
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_link {
display: "inline";
color: var!(foreground);
font-size: var!(font-base);
text-decoration: "underline";
text-underline-offset: "2px";
cursor: "pointer";
touch-action: "manipulation";
:hover {
color: var!(muted-foreground);
}
}
pub(crate) c_euv_link_disabled {
display: "inline";
color: var!(muted-foreground);
font-size: var!(font-base);
text-decoration: "none";
cursor: "not-allowed";
opacity: "0.5";
}
// ═══════════════════════════════════════════════════════════════════════════
// Image
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_image {
display: "block";
max-width: "100%";
height: "auto";
border: "none";
background: "transparent";
}
pub(crate) c_euv_image_placeholder {
display: "flex";
align-items: "center";
justify-content: "center";
width: "100%";
min-height: var!(min-height-base);
padding: var!(space-md);
border: format!("1px dashed {}", var!(border));
background: var!(background);
color: var!(muted-foreground);
font-size: var!(font-sm);
text-align: "center";
box-sizing: "border-box";
}
pub(crate) c_euv_image_failed {
display: "flex";
align-items: "center";
justify-content: "center";
width: "100%";
min-height: var!(min-height-base);
padding: var!(space-md);
border: format!("1px dashed {}", var!(border));
background: var!(background);
color: var!(muted-foreground);
font-size: var!(font-sm);
text-align: "center";
box-sizing: "border-box";
}
// ═══════════════════════════════════════════════════════════════════════════
// Carousel
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_carousel {
position: "relative";
display: "flex";
flex-direction: "column";
width: "100%";
overflow: "hidden";
}
pub(crate) c_euv_carousel_track {
display: "flex";
flex-direction: "row";
width: "100%";
transition: format!("transform {} {}", var!(duration-normal), var!(ease-out));
}
pub(crate) c_euv_carousel_slide {
flex: "0 0 100%";
width: "100%";
min-width: "100%";
box-sizing: "border-box";
}
pub(crate) c_euv_carousel_dots {
display: "flex";
align-items: "center";
justify-content: "center";
gap: var!(space-sm);
padding-top: var!(space-sm);
}
pub(crate) c_euv_carousel_dot {
width: var!(space-sm);
height: var!(space-sm);
padding: "0px";
border: format!("1px solid {}", var!(border));
border-radius: "0px";
background: var!(background);
cursor: "pointer";
touch-action: "manipulation";
:hover {
background: var!(accent-muted);
}
}
pub(crate) c_euv_carousel_dot_active {
width: var!(space-sm);
height: var!(space-sm);
padding: "0px";
border: format!("1px solid {}", var!(border));
border-radius: "0px";
background: var!(accent);
cursor: "pointer";
touch-action: "manipulation";
:hover {
background: var!(accent);
}
}
// ═══════════════════════════════════════════════════════════════════════════
// Anchor
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_anchor {
display: "flex";
flex-direction: "column";
gap: var!(space-xs);
width: "100%";
}
pub(crate) c_euv_anchor_title {
font-size: var!(font-sm);
font-weight: "600";
color: var!(foreground);
margin-bottom: var!(space-xs);
}
pub(crate) c_euv_anchor_link {
display: "block";
padding: format!("{} 0px", var!(space-2xs));
color: var!(muted-foreground);
font-size: var!(font-sm);
text-decoration: "none";
cursor: "pointer";
touch-action: "manipulation";
:hover {
color: var!(foreground);
}
}
pub(crate) c_euv_anchor_link_active {
display: "block";
padding: format!("{} 0px", var!(space-2xs));
color: var!(foreground);
font-size: var!(font-sm);
font-weight: "600";
text-decoration: "none";
cursor: "pointer";
touch-action: "manipulation";
:hover {
color: var!(foreground);
}
}
// ═══════════════════════════════════════════════════════════════════════════
// Watermark
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_watermark {
position: "relative";
display: "block";
width: "100%";
}
pub(crate) c_euv_watermark_layer {
position: "absolute";
top: "0px";
left: "0px";
right: "0px";
bottom: "0px";
z-index: "1";
display: "flex";
align-items: "center";
justify-content: "center";
overflow: "hidden";
pointer-events: "none";
}
pub(crate) c_euv_watermark_text {
color: var!(muted-foreground);
font-size: var!(font-2xl);
font-weight: "700";
letter-spacing: "0.1em";
opacity: "0.12";
transform: "rotate(-22deg)";
user-select: "none";
-webkit-user-select: "none";
white-space: "nowrap";
}
// ═══════════════════════════════════════════════════════════════════════════
// Back To Top
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_back_top_visible {
position: "fixed";
right: var!(space-xl);
bottom: var!(space-xl);
z-index: "900";
display: "flex";
align-items: "center";
justify-content: "center";
width: "40px";
height: "40px";
padding: "0px";
border: format!("1px solid {}", var!(border));
background: var!(background);
color: var!(foreground);
font-size: var!(font-sm);
line-height: "1";
cursor: "pointer";
box-shadow: var!(shadow-sm);
touch-action: "manipulation";
:hover {
background: var!(accent-muted);
color: var!(accent);
}
@media ((max-width: 767px)) {
right: var!(space-lg);
bottom: var!(space-lg);
}
}
pub(crate) c_euv_back_top_hidden {
position: "fixed";
right: var!(space-xl);
bottom: var!(space-xl);
z-index: "900";
display: "none";
align-items: "center";
justify-content: "center";
width: "40px";
height: "40px";
padding: "0px";
border: format!("1px solid {}", var!(border));
background: var!(background);
color: var!(foreground);
font-size: var!(font-sm);
line-height: "1";
cursor: "pointer";
box-shadow: var!(shadow-sm);
touch-action: "manipulation";
:hover {
background: var!(accent-muted);
color: var!(accent);
}
@media ((max-width: 767px)) {
right: var!(space-lg);
bottom: var!(space-lg);
}
}
// ═══════════════════════════════════════════════════════════════════════════
// Splitter
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_splitter {
display: "flex";
align-items: "stretch";
width: "100%";
height: "100%";
min-height: "0px";
}
pub(crate) c_euv_splitter_pane {
flex: "1";
min-width: "0px";
min-height: "0px";
overflow: "auto";
}
pub(crate) c_euv_splitter_bar {
flex: "0 0 6px";
align-self: "stretch";
background: var!(border);
cursor: "col-resize";
touch-action: "none";
user-select: "none";
-webkit-user-select: "none";
:hover {
background: var!(accent);
}
}
// ═══════════════════════════════════════════════════════════════════════════
// Grid
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_grid {
display: "flex";
flex-wrap: "wrap";
width: "100%";
box-sizing: "border-box";
}
// A grid row that spaces its columns.
//
// The spacing is padding on the columns, not a `gap` on the row: a
// column's width is a percentage of the row, so a gap would be
// added on top of a row that already sums to a hundred percent and
// push the last column onto a second line. The row pulls itself
// out by half the gutter and the columns pad themselves back in, so
// the columns still add up to the row's full width.
pub(crate) c_euv_grid_gutter {
display: "flex";
flex-wrap: "wrap";
width: "100%";
box-sizing: "border-box";
margin-left: {
format!("calc({} / -2)", var!(gap-component))
};
margin-right: {
format!("calc({} / -2)", var!(gap-component))
};
}
// A grid column. The width is a share of the row, and the caller
// sets it inline, so a row's columns add up exactly whatever their
// span.
pub(crate) c_euv_grid_col {
display: "block";
flex: "0 0 auto";
box-sizing: "border-box";
min-width: "0px";
}
// A grid column inside a spaced row. The column keeps its share of
// the row and takes half the gutter as padding on each side, which
// is what opens the space between two columns.
pub(crate) c_euv_grid_gutter_col {
display: "block";
flex: "0 0 auto";
box-sizing: "border-box";
min-width: "0px";
padding-left: {
format!("calc({} / 2)", var!(gap-component))
};
padding-right: {
format!("calc({} / 2)", var!(gap-component))
};
}
// A grid column that is pushed to the right by an offset. The
// offset's size is set inline, like the column's own width.
pub(crate) c_euv_grid_col_offset {
display: "block";
flex: "0 0 auto";
box-sizing: "border-box";
min-width: "0px";
}
// A grid column inside a spaced row that is also pushed to the
// right by an offset. It is the spaced column and the offset
// column at once: the padding that opens the gutter and the offset
// that pushes the column along the row.
pub(crate) c_euv_grid_gutter_col_offset {
display: "block";
flex: "0 0 auto";
box-sizing: "border-box";
min-width: "0px";
padding-left: {
format!("calc({} / 2)", var!(gap-component))
};
padding-right: {
format!("calc({} / 2)", var!(gap-component))
};
}
// ═══════════════════════════════════════════════════════════════════════════
// Affix
// ═══════════════════════════════════════════════════════════════════════════
pub(crate) c_euv_affix {
position: "sticky";
z-index: "10";
width: "100%";
box-sizing: "border-box";
}
}