@cirthcss/cirth 0.5.0 → 0.6.0

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.
@@ -35,15 +35,13 @@
35
35
  .cirth > header, .cirth > main, .cirth > footer {
36
36
  width: 100%;
37
37
  padding: var(--cirth-block-spacing-vertical) var(--cirth-block-spacing-horizontal);
38
- margin-left: auto;
39
- margin-right: auto;
38
+ margin-inline: auto;
40
39
  }
41
40
 
42
41
  @media (min-width: 576px) {
43
42
  .cirth > header, .cirth > main, .cirth > footer {
44
43
  max-width: 510px;
45
- padding-left: 0;
46
- padding-right: 0;
44
+ padding-inline: 0;
47
45
  }
48
46
  }
49
47
 
@@ -184,8 +182,6 @@
184
182
  .cirth blockquote {
185
183
  margin: var(--cirth-typography-spacing-vertical) 0;
186
184
  padding: var(--cirth-spacing);
187
- border-right: none;
188
- border-left: var(--cirth-border-width-4) solid var(--cirth-blockquote-border-color);
189
185
  border-inline-start: var(--cirth-border-width-4) solid var(--cirth-blockquote-border-color);
190
186
  border-inline-end: none;
191
187
  display: block;
@@ -225,7 +221,6 @@
225
221
  text-decoration: var(--cirth-text-decoration);
226
222
  -webkit-text-decoration-color: var(--cirth-underline);
227
223
  text-decoration-color: var(--cirth-underline);
228
- text-underline-offset: .125em;
229
224
  transition: background-color var(--cirth-transition), color var(--cirth-transition), text-decoration var(--cirth-transition), box-shadow var(--cirth-transition);
230
225
  outline: none;
231
226
  }
@@ -404,11 +399,9 @@
404
399
  .cirth th, .cirth td {
405
400
  padding: calc(var(--cirth-spacing) / 2) var(--cirth-spacing);
406
401
  border-bottom: var(--cirth-border-width) solid var(--cirth-table-border-color);
407
- background-color: var(--cirth-background-color);
408
402
  color: var(--cirth-color);
409
403
  font-weight: var(--cirth-font-weight);
410
404
  font-variant-numeric: tabular-nums;
411
- text-align: left;
412
405
  text-align: start;
413
406
  }
414
407
 
@@ -437,6 +430,9 @@
437
430
  .cirth img {
438
431
  border-style: none;
439
432
  max-width: 100%;
433
+ }
434
+
435
+ .cirth img:where(:not([height]), [width][height]) {
440
436
  height: auto;
441
437
  }
442
438
 
@@ -495,6 +491,13 @@
495
491
  vertical-align: baseline;
496
492
  }
497
493
 
494
+ .cirth var {
495
+ color: var(--cirth-code-color);
496
+ font-size: .875em;
497
+ font-style: italic;
498
+ font-family: var(--cirth-font-family);
499
+ }
500
+
498
501
  .cirth figure {
499
502
  margin: 0;
500
503
  padding: 0;
@@ -668,8 +671,6 @@
668
671
  }
669
672
 
670
673
  .cirth :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"])[aria-invalid] {
671
- padding-right: calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
672
- padding-left: var(--cirth-form-element-spacing-horizontal);
673
674
  background-position: center right var(--cirth-space-3);
674
675
  background-size: var(--cirth-size-4) auto;
675
676
  background-repeat: no-repeat;
@@ -715,6 +716,10 @@
715
716
  background-position: center left var(--cirth-space-3);
716
717
  }
717
718
 
719
+ [dir="rtl"] .cirth textarea[aria-invalid] {
720
+ background-position: top left var(--cirth-space-3);
721
+ }
722
+
718
723
  .cirth input::placeholder, .cirth textarea::placeholder, .cirth select:invalid {
719
724
  color: var(--cirth-form-element-placeholder-color);
720
725
  opacity: 1;
@@ -740,8 +745,6 @@
740
745
  }
741
746
 
742
747
  .cirth select:not([multiple], [size]) {
743
- padding-right: calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
744
- padding-left: var(--cirth-form-element-spacing-horizontal);
745
748
  background-image: var(--cirth-icon-chevron);
746
749
  background-position: center right var(--cirth-space-3);
747
750
  background-size: var(--cirth-size-4) auto;
@@ -936,11 +939,11 @@
936
939
  .cirth input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]):is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
937
940
  --cirth-icon-position: var(--cirth-space-3);
938
941
  --cirth-icon-width: var(--cirth-size-4);
939
- padding-right: calc(var(--cirth-icon-width) + var(--cirth-icon-position));
940
942
  background-image: var(--cirth-icon-date);
941
943
  background-position: center right var(--cirth-icon-position);
942
944
  background-size: var(--cirth-icon-width) auto;
943
945
  background-repeat: no-repeat;
946
+ padding-inline-end: calc(var(--cirth-icon-width) + var(--cirth-icon-position));
944
947
  }
945
948
 
946
949
  .cirth input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])[type="time"] {
@@ -949,63 +952,64 @@
949
952
 
950
953
  .cirth [type="date"]::-webkit-calendar-picker-indicator {
951
954
  width: var(--cirth-icon-width);
952
- margin-right: calc(var(--cirth-icon-width) * -1);
953
- margin-left: var(--cirth-icon-position);
954
955
  opacity: 0;
956
+ margin-inline-start: var(--cirth-icon-position);
957
+ margin-inline-end: calc(var(--cirth-icon-width) * -1);
955
958
  }
956
959
 
957
960
  .cirth [type="datetime-local"]::-webkit-calendar-picker-indicator {
958
961
  width: var(--cirth-icon-width);
959
- margin-right: calc(var(--cirth-icon-width) * -1);
960
- margin-left: var(--cirth-icon-position);
961
962
  opacity: 0;
963
+ margin-inline-start: var(--cirth-icon-position);
964
+ margin-inline-end: calc(var(--cirth-icon-width) * -1);
962
965
  }
963
966
 
964
967
  .cirth [type="month"]::-webkit-calendar-picker-indicator {
965
968
  width: var(--cirth-icon-width);
966
- margin-right: calc(var(--cirth-icon-width) * -1);
967
- margin-left: var(--cirth-icon-position);
968
969
  opacity: 0;
970
+ margin-inline-start: var(--cirth-icon-position);
971
+ margin-inline-end: calc(var(--cirth-icon-width) * -1);
969
972
  }
970
973
 
971
974
  .cirth [type="time"]::-webkit-calendar-picker-indicator {
972
975
  width: var(--cirth-icon-width);
973
- margin-right: calc(var(--cirth-icon-width) * -1);
974
- margin-left: var(--cirth-icon-position);
975
976
  opacity: 0;
977
+ margin-inline-start: var(--cirth-icon-position);
978
+ margin-inline-end: calc(var(--cirth-icon-width) * -1);
976
979
  }
977
980
 
978
981
  .cirth [type="week"]::-webkit-calendar-picker-indicator {
979
982
  width: var(--cirth-icon-width);
980
- margin-right: calc(var(--cirth-icon-width) * -1);
981
- margin-left: var(--cirth-icon-position);
982
983
  opacity: 0;
984
+ margin-inline-start: var(--cirth-icon-position);
985
+ margin-inline-end: calc(var(--cirth-icon-width) * -1);
983
986
  }
984
987
 
985
988
  @-moz-document url-prefix() {
986
989
  .cirth [type="date"], .cirth [type="datetime-local"], .cirth [type="month"], .cirth [type="time"], .cirth [type="week"] {
987
- padding-right: var(--cirth-form-element-spacing-horizontal);
988
990
  background-image: none;
991
+ padding-inline-end: var(--cirth-form-element-spacing-horizontal);
989
992
  }
990
993
  }
991
994
 
992
995
  [dir="rtl"] .cirth :is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
996
+ background-position: center left var(--cirth-icon-position);
993
997
  text-align: right;
994
998
  }
995
999
 
996
1000
  .cirth [type="file"] {
997
1001
  --cirth-color: var(--cirth-muted-color);
998
- margin-left: calc(var(--cirth-outline-width) * -1);
999
1002
  padding: calc(var(--cirth-form-element-spacing-vertical) * .5) 0;
1000
- padding-left: var(--cirth-outline-width);
1001
1003
  background: none;
1002
1004
  border: 0;
1003
1005
  border-radius: 0;
1006
+ margin-inline-start: calc(var(--cirth-outline-width) * -1);
1007
+ padding-inline-start: var(--cirth-outline-width);
1004
1008
  }
1005
1009
 
1006
1010
  .cirth [type="file"]::file-selector-button {
1007
- margin-right: calc(var(--cirth-spacing) / 2);
1008
1011
  padding: calc(var(--cirth-form-element-spacing-vertical) * .5) var(--cirth-form-element-spacing-horizontal);
1012
+ margin-inline-end: calc(var(--cirth-spacing) / 2);
1009
1013
  }
1010
1014
 
1011
1015
  .cirth [type="file"]:is(:hover, :active, :focus)::file-selector-button {
@@ -1189,7 +1193,7 @@
1189
1193
  }
1190
1194
 
1191
1195
  .cirth details summary[role="button"] {
1192
- text-align: left;
1196
+ text-align: start;
1193
1197
  width: 100%;
1194
1198
  }
1195
1199
 
@@ -1209,10 +1213,6 @@
1209
1213
  transform: rotate(0);
1210
1214
  }
1211
1215
 
1212
- [dir="rtl"] .cirth details summary {
1213
- text-align: right;
1214
- }
1215
-
1216
1216
  [dir="rtl"] .cirth details summary:after {
1217
1217
  float: left;
1218
1218
  background-position: 0;
@@ -1227,12 +1227,15 @@
1227
1227
  }
1228
1228
 
1229
1229
  .cirth article > header, .cirth article > footer {
1230
- margin-right: calc(var(--cirth-block-spacing-horizontal) * -1);
1231
- margin-left: calc(var(--cirth-block-spacing-horizontal) * -1);
1230
+ margin-inline: calc(var(--cirth-block-spacing-horizontal) * -1);
1232
1231
  padding: calc(var(--cirth-block-spacing-vertical) - var(--cirth-space-2)) var(--cirth-block-spacing-horizontal);
1233
1232
  background-color: var(--cirth-card-sectioning-background-color);
1234
1233
  }
1235
1234
 
1235
+ .cirth article > header > :last-child, .cirth article > footer > :last-child {
1236
+ margin-bottom: 0;
1237
+ }
1238
+
1236
1239
  .cirth article > header {
1237
1240
  margin-top: calc(var(--cirth-block-spacing-vertical) * -1);
1238
1241
  margin-bottom: var(--cirth-block-spacing-vertical);
@@ -1256,33 +1259,50 @@
1256
1259
  box-shadow: var(--cirth-group-box-shadow, 0 0 0 #0000);
1257
1260
  vertical-align: middle;
1258
1261
  transition: box-shadow var(--cirth-transition);
1262
+ flex-wrap: wrap;
1259
1263
  display: inline-flex;
1260
1264
  position: relative;
1261
1265
  }
1262
1266
 
1267
+ .cirth [role="search"] > small, .cirth [role="group"] > small {
1268
+ margin-top: calc(var(--cirth-spacing) * .25);
1269
+ flex: 0 0 100%;
1270
+ order: 1;
1271
+ margin-bottom: 0;
1272
+ }
1273
+
1263
1274
  .cirth [role="search"] > *, .cirth [role="search"] input:not([type="checkbox"], [type="radio"]), .cirth [role="search"] select, .cirth [role="group"] > *, .cirth [role="group"] input:not([type="checkbox"], [type="radio"]), .cirth [role="group"] select {
1264
1275
  flex: auto;
1265
1276
  margin-bottom: 0;
1266
1277
  position: relative;
1267
1278
  }
1268
1279
 
1280
+ .cirth [role="search"] > :is(input, select, textarea), .cirth [role="search"] input:not([type="checkbox"], [type="radio"]):is(input, select, textarea), .cirth [role="search"] select:is(input, select, textarea), .cirth [role="group"] > :is(input, select, textarea), .cirth [role="group"] input:not([type="checkbox"], [type="radio"]):is(input, select, textarea), .cirth [role="group"] select:is(input, select, textarea) {
1281
+ flex: 99;
1282
+ }
1283
+
1269
1284
  .cirth [role="search"] > :not(:first-child), .cirth [role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child), .cirth [role="search"] select:not(:first-child), .cirth [role="group"] > :not(:first-child), .cirth [role="group"] input:not([type="checkbox"], [type="radio"]):not(:first-child), .cirth [role="group"] select:not(:first-child) {
1270
- border-top-left-radius: 0;
1271
- border-bottom-left-radius: 0;
1272
- margin-left: 0;
1285
+ border-start-start-radius: 0;
1286
+ border-end-start-radius: 0;
1287
+ margin-inline-start: 0;
1273
1288
  }
1274
1289
 
1275
1290
  .cirth [role="search"] > :not(:last-child), .cirth [role="search"] input:not([type="checkbox"], [type="radio"]):not(:last-child), .cirth [role="search"] select:not(:last-child), .cirth [role="group"] > :not(:last-child), .cirth [role="group"] input:not([type="checkbox"], [type="radio"]):not(:last-child), .cirth [role="group"] select:not(:last-child) {
1276
- border-top-right-radius: 0;
1277
- border-bottom-right-radius: 0;
1291
+ border-start-end-radius: 0;
1292
+ border-end-end-radius: 0;
1278
1293
  }
1279
1294
 
1280
1295
  .cirth [role="search"] > :focus, .cirth [role="search"] input:not([type="checkbox"], [type="radio"]):focus, .cirth [role="search"] select:focus, .cirth [role="group"] > :focus, .cirth [role="group"] input:not([type="checkbox"], [type="radio"]):focus, .cirth [role="group"] select:focus {
1281
1296
  z-index: 2;
1282
1297
  }
1283
1298
 
1299
+ :is(.cirth [role="search"] > :has( + small:last-child), .cirth [role="group"] > :has( + small:last-child)) {
1300
+ border-start-end-radius: var(--cirth-border-radius);
1301
+ border-end-end-radius: var(--cirth-border-radius);
1302
+ }
1303
+
1284
1304
  .cirth [role="search"] button:not(:first-child), .cirth [role="search"] [type="submit"]:not(:first-child), .cirth [role="search"] [type="reset"]:not(:first-child), .cirth [role="search"] [type="button"]:not(:first-child), .cirth [role="search"] [role="button"]:not(:first-child), .cirth [role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child), .cirth [role="search"] select:not(:first-child), .cirth [role="group"] button:not(:first-child), .cirth [role="group"] [type="submit"]:not(:first-child), .cirth [role="group"] [type="reset"]:not(:first-child), .cirth [role="group"] [type="button"]:not(:first-child), .cirth [role="group"] [role="button"]:not(:first-child), .cirth [role="group"] input:not([type="checkbox"], [type="radio"]):not(:first-child), .cirth [role="group"] select:not(:first-child) {
1285
- margin-left: calc(var(--cirth-border-width) * -1);
1305
+ margin-inline-start: calc(var(--cirth-border-width) * -1);
1286
1306
  }
1287
1307
 
1288
1308
  .cirth [role="search"] button, .cirth [role="search"] [type="submit"], .cirth [role="search"] [type="reset"], .cirth [role="search"] [type="button"], .cirth [role="search"] [role="button"], .cirth [role="group"] button, .cirth [role="group"] [type="submit"], .cirth [role="group"] [type="reset"], .cirth [role="group"] [type="button"], .cirth [role="group"] [role="button"] {
@@ -1294,19 +1314,7 @@
1294
1314
  --cirth-group-box-shadow: var(--cirth-group-box-shadow-focus-with-button);
1295
1315
  }
1296
1316
 
1297
- .cirth [role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) input:not([type="checkbox"], [type="radio"]) {
1298
- border-color: #0000;
1299
- }
1300
-
1301
- .cirth [role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) select {
1302
- border-color: #0000;
1303
- }
1304
-
1305
- .cirth [role="group"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) input:not([type="checkbox"], [type="radio"]) {
1306
- border-color: #0000;
1307
- }
1308
-
1309
- .cirth [role="group"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) select {
1317
+ :is(.cirth [role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) input:not([type="checkbox"], [type="radio"], [aria-invalid]), .cirth [role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) select:not([aria-invalid]), .cirth [role="group"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) input:not([type="checkbox"], [type="radio"], [aria-invalid]), .cirth [role="group"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) select:not([aria-invalid])) {
1310
1318
  border-color: #0000;
1311
1319
  }
1312
1320
 
@@ -1376,13 +1384,18 @@
1376
1384
  }
1377
1385
 
1378
1386
  .cirth [role="search"] > :first-child {
1379
- border-top-left-radius: var(--cirth-radius-pill);
1380
- border-bottom-left-radius: var(--cirth-radius-pill);
1387
+ border-start-start-radius: var(--cirth-radius-pill);
1388
+ border-end-start-radius: var(--cirth-radius-pill);
1381
1389
  }
1382
1390
 
1383
1391
  .cirth [role="search"] > :last-child {
1384
- border-top-right-radius: var(--cirth-radius-pill);
1385
- border-bottom-right-radius: var(--cirth-radius-pill);
1392
+ border-start-end-radius: var(--cirth-radius-pill);
1393
+ border-end-end-radius: var(--cirth-radius-pill);
1394
+ }
1395
+
1396
+ .cirth [role="search"] > :has( + small:last-child) {
1397
+ border-start-end-radius: var(--cirth-radius-pill);
1398
+ border-end-end-radius: var(--cirth-radius-pill);
1386
1399
  }
1387
1400
 
1388
1401
  .cirth [aria-busy="true"]:not(input, select, textarea, html, form) {
@@ -1390,14 +1403,24 @@
1390
1403
  }
1391
1404
 
1392
1405
  .cirth [aria-busy="true"]:not(input, select, textarea, html, form):before {
1393
- background-image: var(--cirth-icon-loading);
1394
1406
  content: "";
1395
1407
  vertical-align: -.125em;
1396
- background-repeat: no-repeat;
1397
- background-size: 1em;
1398
1408
  width: 1em;
1399
1409
  height: 1em;
1410
+ -webkit-mask-image: var(--cirth-icon-loading);
1411
+ mask-image: var(--cirth-icon-loading);
1412
+ background-color: currentColor;
1400
1413
  display: inline-block;
1414
+ -webkit-mask-size: 1em;
1415
+ mask-size: 1em;
1416
+ -webkit-mask-repeat: no-repeat;
1417
+ mask-repeat: no-repeat;
1418
+ }
1419
+
1420
+ @media (forced-colors: active) {
1421
+ .cirth [aria-busy="true"]:not(input, select, textarea, html, form):before {
1422
+ background-color: canvastext;
1423
+ }
1401
1424
  }
1402
1425
 
1403
1426
  .cirth [aria-busy="true"]:not(input, select, textarea, html, form):not(:empty):before {
@@ -1408,6 +1431,18 @@
1408
1431
  text-align: center;
1409
1432
  }
1410
1433
 
1434
+ .cirth input:is([type="submit"], [type="button"], [type="reset"])[aria-busy="true"] {
1435
+ background-image: var(--cirth-icon-loading);
1436
+ background-position: center left var(--cirth-form-element-spacing-horizontal);
1437
+ background-repeat: no-repeat;
1438
+ background-size: 1em;
1439
+ padding-inline-start: calc(var(--cirth-form-element-spacing-horizontal) + 1em + var(--cirth-spacing) * .5);
1440
+ }
1441
+
1442
+ [dir="rtl"] .cirth input:is([type="submit"], [type="button"], [type="reset"])[aria-busy="true"] {
1443
+ background-position: center right var(--cirth-form-element-spacing-horizontal);
1444
+ }
1445
+
1411
1446
  .cirth button[aria-busy="true"], .cirth [type="submit"][aria-busy="true"], .cirth [type="button"][aria-busy="true"], .cirth [type="reset"][aria-busy="true"], .cirth [role="button"][aria-busy="true"], .cirth a[aria-busy="true"] {
1412
1447
  pointer-events: none;
1413
1448
  }
@@ -1438,6 +1473,7 @@
1438
1473
  .cirth dialog > article {
1439
1474
  width: 100%;
1440
1475
  max-height: calc(100vh - var(--cirth-spacing) * 2);
1476
+ max-height: calc(100dvh - var(--cirth-spacing) * 2);
1441
1477
  margin: var(--cirth-spacing);
1442
1478
  overflow: auto;
1443
1479
  }
@@ -1460,13 +1496,13 @@
1460
1496
 
1461
1497
  .cirth dialog > article > header :is(a, button)[rel="prev"] {
1462
1498
  margin: 0;
1463
- margin-left: var(--cirth-spacing);
1464
1499
  float: right;
1500
+ margin-inline-start: var(--cirth-spacing);
1465
1501
  padding: 0;
1466
1502
  }
1467
1503
 
1468
1504
  .cirth dialog > article > footer {
1469
- text-align: right;
1505
+ text-align: end;
1470
1506
  }
1471
1507
 
1472
1508
  .cirth dialog > article > footer button, .cirth dialog > article > footer [role="button"] {
@@ -1474,7 +1510,7 @@
1474
1510
  }
1475
1511
 
1476
1512
  .cirth dialog > article > footer button:not(:first-of-type), .cirth dialog > article > footer [role="button"]:not(:first-of-type) {
1477
- margin-left: calc(var(--cirth-spacing) * .5);
1513
+ margin-inline-start: calc(var(--cirth-spacing) * .5);
1478
1514
  }
1479
1515
 
1480
1516
  .cirth dialog > article :is(a, button)[rel="prev"] {
@@ -1490,7 +1526,7 @@
1490
1526
  background-color: #0000;
1491
1527
  background-repeat: no-repeat;
1492
1528
  border: none;
1493
- margin-left: auto;
1529
+ margin-inline-start: auto;
1494
1530
  display: block;
1495
1531
  }
1496
1532
 
@@ -1502,6 +1538,10 @@
1502
1538
  display: none;
1503
1539
  }
1504
1540
 
1541
+ [dir="rtl"] .cirth dialog > article > header :is(a, button)[rel="prev"] {
1542
+ float: left;
1543
+ }
1544
+
1505
1545
  .cirth :where(nav li):before {
1506
1546
  float: left;
1507
1547
  content: "​";
@@ -1524,11 +1564,11 @@
1524
1564
  }
1525
1565
 
1526
1566
  .cirth nav ol:first-of-type, .cirth nav ul:first-of-type {
1527
- margin-left: calc(var(--cirth-nav-element-spacing-horizontal) * -1);
1567
+ margin-inline-start: calc(var(--cirth-nav-element-spacing-horizontal) * -1);
1528
1568
  }
1529
1569
 
1530
1570
  .cirth nav ol:last-of-type, .cirth nav ul:last-of-type {
1531
- margin-right: calc(var(--cirth-nav-element-spacing-horizontal) * -1);
1571
+ margin-inline-end: calc(var(--cirth-nav-element-spacing-horizontal) * -1);
1532
1572
  }
1533
1573
 
1534
1574
  .cirth nav li {
@@ -1537,23 +1577,27 @@
1537
1577
  display: inline-block;
1538
1578
  }
1539
1579
 
1540
- .cirth nav li :where(a, [role="link"]) {
1580
+ .cirth nav li :where(a:not([role="button"]), [role="link"]) {
1541
1581
  margin: calc(var(--cirth-nav-link-spacing-vertical) * -1) calc(var(--cirth-nav-link-spacing-horizontal) * -1);
1542
1582
  padding: var(--cirth-nav-link-spacing-vertical) var(--cirth-nav-link-spacing-horizontal);
1543
1583
  border-radius: var(--cirth-border-radius);
1544
1584
  display: inline-block;
1545
1585
  }
1546
1586
 
1547
- .cirth nav li :where(a, [role="link"]):not(:hover) {
1587
+ .cirth nav li :where(a:not([role="button"]), [role="link"]):not(:hover) {
1548
1588
  text-decoration: none;
1549
1589
  }
1550
1590
 
1591
+ .cirth nav li [role="group"], .cirth nav li [role="search"] {
1592
+ width: auto;
1593
+ margin-bottom: 0;
1594
+ }
1595
+
1551
1596
  .cirth nav li button, .cirth nav li [role="button"], .cirth nav li [type="button"], .cirth nav li input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), .cirth nav li select {
1552
1597
  height: auto;
1553
- margin-right: inherit;
1554
- margin-bottom: 0;
1555
- margin-left: inherit;
1598
+ margin-inline: inherit;
1556
1599
  padding: calc(var(--cirth-nav-link-spacing-vertical) - var(--cirth-border-width) * 2) var(--cirth-nav-link-spacing-horizontal);
1600
+ margin-bottom: 0;
1557
1601
  }
1558
1602
 
1559
1603
  .cirth nav[aria-label="breadcrumb"] {
@@ -1605,10 +1649,6 @@
1605
1649
  margin: inherit;
1606
1650
  }
1607
1651
 
1608
- [dir="rtl"] .cirth nav[aria-label="breadcrumb"] ul li:not(:last-child) :after {
1609
- content: "\\";
1610
- }
1611
-
1612
1652
  .cirth progress {
1613
1653
  vertical-align: baseline;
1614
1654
  appearance: none;
@@ -2059,7 +2099,7 @@
2059
2099
  --cirth-border-width: .1875rem;
2060
2100
  }
2061
2101
 
2062
- .cirth pre, .cirth code, .cirth kbd, .cirth samp {
2102
+ .cirth pre, .cirth code, .cirth kbd, .cirth samp, .cirth var {
2063
2103
  --cirth-font-family: var(--cirth-font-family-mono);
2064
2104
  }
2065
2105
 
@@ -2110,7 +2150,7 @@
2110
2150
  --cirth-form-element-spacing-horizontal: var(--cirth-space-8);
2111
2151
  }
2112
2152
 
2113
- .cirth details summary[role="button"]:after, .cirth [aria-busy="true"]:not(input, select, textarea):is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):before {
2153
+ .cirth details summary[role="button"]:after {
2114
2154
  filter: brightness(0) invert();
2115
2155
  }
2116
2156