@cirthcss/cirth 0.9.0 → 0.11.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.
@@ -10,6 +10,7 @@
10
10
  }
11
11
 
12
12
  .cirth {
13
+ scrollbar-gutter: stable;
13
14
  -webkit-tap-highlight-color: transparent;
14
15
  -webkit-text-size-adjust: 100%;
15
16
  -moz-text-size-adjust: 100%;
@@ -726,14 +727,6 @@
726
727
  margin-inline-end: .5em;
727
728
  }
728
729
 
729
- .cirth [type="checkbox"]::-ms-check {
730
- display: none;
731
- }
732
-
733
- .cirth [type="radio"]::-ms-check {
734
- display: none;
735
- }
736
-
737
730
  .cirth [type="checkbox"]:checked, .cirth [type="checkbox"]:checked:active, .cirth [type="checkbox"]:checked:focus, .cirth [type="radio"]:checked, .cirth [type="radio"]:checked:active, .cirth [type="radio"]:checked:focus {
738
731
  --cirth-background-color: var(--cirth-primary-background);
739
732
  --cirth-border-color: var(--cirth-primary-border);
@@ -964,14 +957,6 @@
964
957
  transition: background-color var(--cirth-transition), box-shadow var(--cirth-transition);
965
958
  }
966
959
 
967
- .cirth [type="range"]::-ms-track {
968
- border-radius: var(--cirth-border-radius);
969
- background-color: var(--cirth-range-border-color);
970
- width: 100%;
971
- height: .375rem;
972
- transition: background-color var(--cirth-transition), box-shadow var(--cirth-transition);
973
- }
974
-
975
960
  .cirth [type="range"]::-webkit-slider-thumb {
976
961
  -webkit-appearance: none;
977
962
  border: var(--cirth-border-width-2) solid var(--cirth-range-thumb-border-color);
@@ -985,19 +970,6 @@
985
970
  }
986
971
 
987
972
  .cirth [type="range"]::-moz-range-thumb {
988
- -webkit-appearance: none;
989
- border: var(--cirth-border-width-2) solid var(--cirth-range-thumb-border-color);
990
- background-color: var(--cirth-range-thumb-color);
991
- cursor: pointer;
992
- width: 1.25rem;
993
- height: 1.25rem;
994
- transition: background-color var(--cirth-transition), transform var(--cirth-transition);
995
- border-radius: 50%;
996
- margin-top: -.4375rem;
997
- }
998
-
999
- .cirth [type="range"]::-ms-thumb {
1000
- -webkit-appearance: none;
1001
973
  border: var(--cirth-border-width-2) solid var(--cirth-range-thumb-border-color);
1002
974
  background-color: var(--cirth-range-thumb-color);
1003
975
  cursor: pointer;
@@ -1021,10 +993,6 @@
1021
993
  transform: scale(1.25);
1022
994
  }
1023
995
 
1024
- .cirth [type="range"]:active::-ms-thumb {
1025
- transform: scale(1.25);
1026
- }
1027
-
1028
996
  .cirth input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])[type="search"] {
1029
997
  background-image: var(--cirth-icon-search);
1030
998
  background-position: center left var(--cirth-form-element-spacing-horizontal);
@@ -1078,10 +1046,6 @@
1078
1046
  display: none;
1079
1047
  }
1080
1048
 
1081
- .cirth details summary::-moz-list-bullet {
1082
- list-style-type: none;
1083
- }
1084
-
1085
1049
  .cirth details summary:after {
1086
1050
  width: var(--cirth-size-4);
1087
1051
  height: var(--cirth-size-4);
@@ -1395,17 +1359,58 @@
1395
1359
  pointer-events: none;
1396
1360
  }
1397
1361
 
1398
- .cirth {
1399
- --cirth-scrollbar-width: 0px;
1362
+ .cirth meter {
1363
+ appearance: none;
1364
+ width: 100%;
1365
+ height: var(--cirth-size-2);
1366
+ margin-bottom: calc(var(--cirth-spacing) * .5);
1367
+ border: var(--cirth-border-width-1) solid var(--cirth-meter-border-color);
1368
+ border-radius: var(--cirth-border-radius);
1369
+ background: var(--cirth-meter-background-color);
1370
+ display: inline-block;
1371
+ overflow: hidden;
1372
+ }
1373
+
1374
+ .cirth meter::-webkit-meter-bar {
1375
+ background: none;
1376
+ }
1377
+
1378
+ .cirth meter::-webkit-meter-inner-element {
1379
+ display: flex;
1380
+ }
1381
+
1382
+ .cirth meter::-webkit-meter-optimum-value {
1383
+ background: var(--cirth-meter-optimum-color);
1384
+ }
1385
+
1386
+ .cirth meter::-webkit-meter-suboptimum-value {
1387
+ background: var(--cirth-meter-suboptimum-color);
1388
+ }
1389
+
1390
+ .cirth meter::-webkit-meter-even-less-good-value {
1391
+ background: var(--cirth-meter-even-less-good-color);
1392
+ }
1393
+
1394
+ .cirth meter::-moz-meter-bar {
1395
+ background: var(--cirth-meter-optimum-color);
1396
+ }
1397
+
1398
+ .cirth meter:-moz-meter-sub-optimum::-moz-meter-bar {
1399
+ background: var(--cirth-meter-suboptimum-color);
1400
+ }
1401
+
1402
+ .cirth meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
1403
+ background: var(--cirth-meter-even-less-good-color);
1400
1404
  }
1401
1405
 
1402
1406
  .cirth dialog {
1407
+ opacity: 0;
1408
+ transition: opacity var(--cirth-transition), display var(--cirth-transition) allow-discrete, overlay var(--cirth-transition) allow-discrete;
1403
1409
  z-index: var(--cirth-z-index-modal);
1404
1410
  width: inherit;
1405
1411
  min-width: 100%;
1406
1412
  height: inherit;
1407
1413
  min-height: 100%;
1408
- -webkit-backdrop-filter: var(--cirth-modal-overlay-backdrop-filter);
1409
1414
  backdrop-filter: var(--cirth-modal-overlay-backdrop-filter);
1410
1415
  background-color: var(--cirth-modal-overlay-background-color);
1411
1416
  color: var(--cirth-color);
@@ -1418,7 +1423,25 @@
1418
1423
  inset: 0;
1419
1424
  }
1420
1425
 
1426
+ .cirth dialog[open] {
1427
+ opacity: 1;
1428
+ }
1429
+
1430
+ @starting-style {
1431
+ .cirth dialog[open] {
1432
+ opacity: 0;
1433
+ }
1434
+ }
1435
+
1436
+ @starting-style {
1437
+ .cirth dialog[open] > article {
1438
+ opacity: 0;
1439
+ transform: translateY(-100%);
1440
+ }
1441
+ }
1442
+
1421
1443
  .cirth dialog > article {
1444
+ transition: opacity var(--cirth-transition), transform var(--cirth-transition);
1422
1445
  width: 100%;
1423
1446
  max-height: calc(100vh - var(--cirth-spacing) * 2);
1424
1447
  max-height: calc(100dvh - var(--cirth-spacing) * 2);
@@ -1426,13 +1449,13 @@
1426
1449
  overflow: auto;
1427
1450
  }
1428
1451
 
1429
- @media (min-width: 576px) {
1452
+ @media (width >= 576px) {
1430
1453
  .cirth dialog > article {
1431
1454
  max-width: 510px;
1432
1455
  }
1433
1456
  }
1434
1457
 
1435
- @media (min-width: 768px) {
1458
+ @media (width >= 768px) {
1436
1459
  .cirth dialog > article {
1437
1460
  max-width: 700px;
1438
1461
  }
@@ -1597,6 +1620,33 @@
1597
1620
  margin: inherit;
1598
1621
  }
1599
1622
 
1623
+ .cirth :is([popover=""], [popover="auto"], [popover="hint"]):not(dialog) {
1624
+ --cirth-popover-display: block;
1625
+ display: none;
1626
+ }
1627
+
1628
+ .cirth :is([popover=""], [popover="auto"], [popover="hint"]):not(dialog):popover-open {
1629
+ display: var(--cirth-popover-display);
1630
+ max-width: var(--cirth-popover-max-width);
1631
+ padding: var(--cirth-space-2) var(--cirth-space-3);
1632
+ border: var(--cirth-border-width) solid var(--cirth-popover-border-color);
1633
+ border-radius: var(--cirth-border-radius);
1634
+ background-color: var(--cirth-popover-background-color);
1635
+ box-shadow: var(--cirth-popover-box-shadow);
1636
+ color: var(--cirth-popover-color);
1637
+ transition: opacity var(--cirth-transition), display var(--cirth-transition) allow-discrete, overlay var(--cirth-transition) allow-discrete;
1638
+ }
1639
+
1640
+ @starting-style {
1641
+ .cirth :is([popover=""], [popover="auto"], [popover="hint"]):not(dialog):popover-open {
1642
+ opacity: 0;
1643
+ }
1644
+ }
1645
+
1646
+ .cirth :is([popover=""], [popover="auto"], [popover="hint"]):not(dialog):not(:popover-open) {
1647
+ opacity: 0;
1648
+ }
1649
+
1600
1650
  .cirth progress {
1601
1651
  vertical-align: baseline;
1602
1652
  appearance: none;
@@ -1606,7 +1656,6 @@
1606
1656
  border: var(--cirth-border-width-1) solid var(--cirth-progress-border-color);
1607
1657
  border-radius: var(--cirth-border-radius);
1608
1658
  background-color: var(--cirth-progress-background-color);
1609
- color: var(--cirth-progress-color);
1610
1659
  display: inline-block;
1611
1660
  overflow: hidden;
1612
1661
  }
@@ -1654,160 +1703,6 @@
1654
1703
  }
1655
1704
  }
1656
1705
 
1657
- .cirth [data-tooltip] {
1658
- position: relative;
1659
- }
1660
-
1661
- .cirth [data-tooltip]:not(a, button, input, [role="button"]) {
1662
- border-bottom: var(--cirth-border-width-1) dotted;
1663
- cursor: help;
1664
- text-decoration: none;
1665
- }
1666
-
1667
- .cirth [data-tooltip][data-placement="top"]:before, .cirth [data-tooltip][data-placement="top"]:after, .cirth [data-tooltip]:before, .cirth [data-tooltip]:after {
1668
- z-index: var(--cirth-z-index-tooltip);
1669
- padding: var(--cirth-space-1) var(--cirth-space-2);
1670
- border-radius: var(--cirth-border-radius);
1671
- background: var(--cirth-tooltip-background-color);
1672
- content: attr(data-tooltip);
1673
- color: var(--cirth-tooltip-color);
1674
- font-style: normal;
1675
- font-weight: var(--cirth-font-weight);
1676
- font-size: var(--cirth-font-size-sm);
1677
- text-overflow: ellipsis;
1678
- white-space: nowrap;
1679
- opacity: 0;
1680
- pointer-events: none;
1681
- text-decoration: none;
1682
- display: block;
1683
- position: absolute;
1684
- bottom: 100%;
1685
- left: 50%;
1686
- overflow: hidden;
1687
- transform: translate(-50%, -.25rem);
1688
- }
1689
-
1690
- .cirth [data-tooltip][data-placement="top"]:after, .cirth [data-tooltip]:after {
1691
- content: "";
1692
- color: var(--cirth-tooltip-background-color);
1693
- background-color: #0000;
1694
- border-top: .3rem solid;
1695
- border-left: .3rem solid #0000;
1696
- border-right: .3rem solid #0000;
1697
- border-radius: 0;
1698
- padding: 0;
1699
- transform: translate(-50%);
1700
- }
1701
-
1702
- .cirth [data-tooltip][data-placement="bottom"]:before, .cirth [data-tooltip][data-placement="bottom"]:after {
1703
- top: 100%;
1704
- bottom: auto;
1705
- transform: translate(-50%, .25rem);
1706
- }
1707
-
1708
- .cirth [data-tooltip][data-placement="bottom"]:after {
1709
- border: .3rem solid #0000;
1710
- border-bottom-color: currentColor;
1711
- transform: translate(-50%, -.3rem);
1712
- }
1713
-
1714
- .cirth [data-tooltip][data-placement="left"]:before, .cirth [data-tooltip][data-placement="left"]:after {
1715
- inset: 50% 100% auto auto;
1716
- transform: translate(-.25rem, -50%);
1717
- }
1718
-
1719
- .cirth [data-tooltip][data-placement="left"]:after {
1720
- border: .3rem solid #0000;
1721
- border-left-color: currentColor;
1722
- transform: translate(.3rem, -50%);
1723
- }
1724
-
1725
- .cirth [data-tooltip][data-placement="right"]:before, .cirth [data-tooltip][data-placement="right"]:after {
1726
- inset: 50% auto auto 100%;
1727
- transform: translate(.25rem, -50%);
1728
- }
1729
-
1730
- .cirth [data-tooltip][data-placement="right"]:after {
1731
- border: .3rem solid #0000;
1732
- border-right-color: currentColor;
1733
- transform: translate(-.3rem, -50%);
1734
- }
1735
-
1736
- .cirth [data-tooltip]:focus:before, .cirth [data-tooltip]:focus:after, .cirth [data-tooltip]:hover:before, .cirth [data-tooltip]:hover:after {
1737
- opacity: 1;
1738
- }
1739
-
1740
- @media (hover: hover) and (pointer: fine) {
1741
- .cirth [data-tooltip]:focus:before, .cirth [data-tooltip]:focus:after, .cirth [data-tooltip]:hover:before, .cirth [data-tooltip]:hover:after {
1742
- --cirth-tooltip-slide-to: translate(-50%, -.25rem);
1743
- animation-duration: var(--cirth-duration-normal);
1744
- opacity: 0;
1745
- animation-name: tooltip-slide;
1746
- animation-fill-mode: forwards;
1747
- transform: translate(-50%, .75rem);
1748
- }
1749
-
1750
- .cirth [data-tooltip]:focus:after, .cirth [data-tooltip]:hover:after {
1751
- --cirth-tooltip-caret-slide-to: translate(-50%, 0rem);
1752
- animation-name: tooltip-caret-slide;
1753
- transform: translate(-50%, -.25rem);
1754
- }
1755
-
1756
- .cirth [data-tooltip][data-placement="bottom"]:focus:before, .cirth [data-tooltip][data-placement="bottom"]:focus:after, .cirth [data-tooltip][data-placement="bottom"]:hover:before, .cirth [data-tooltip][data-placement="bottom"]:hover:after {
1757
- --cirth-tooltip-slide-to: translate(-50%, .25rem);
1758
- animation-name: tooltip-slide;
1759
- transform: translate(-50%, -.75rem);
1760
- }
1761
-
1762
- .cirth [data-tooltip][data-placement="bottom"]:focus:after, .cirth [data-tooltip][data-placement="bottom"]:hover:after {
1763
- --cirth-tooltip-caret-slide-to: translate(-50%, -.3rem);
1764
- animation-name: tooltip-caret-slide;
1765
- transform: translate(-50%, -.5rem);
1766
- }
1767
-
1768
- .cirth [data-tooltip][data-placement="left"]:focus:before, .cirth [data-tooltip][data-placement="left"]:focus:after, .cirth [data-tooltip][data-placement="left"]:hover:before, .cirth [data-tooltip][data-placement="left"]:hover:after {
1769
- --cirth-tooltip-slide-to: translate(-.25rem, -50%);
1770
- animation-name: tooltip-slide;
1771
- transform: translate(.75rem, -50%);
1772
- }
1773
-
1774
- .cirth [data-tooltip][data-placement="left"]:focus:after, .cirth [data-tooltip][data-placement="left"]:hover:after {
1775
- --cirth-tooltip-caret-slide-to: translate(.3rem, -50%);
1776
- animation-name: tooltip-caret-slide;
1777
- transform: translate(.05rem, -50%);
1778
- }
1779
-
1780
- .cirth [data-tooltip][data-placement="right"]:focus:before, .cirth [data-tooltip][data-placement="right"]:focus:after, .cirth [data-tooltip][data-placement="right"]:hover:before, .cirth [data-tooltip][data-placement="right"]:hover:after {
1781
- --cirth-tooltip-slide-to: translate(.25rem, -50%);
1782
- animation-name: tooltip-slide;
1783
- transform: translate(-.75rem, -50%);
1784
- }
1785
-
1786
- .cirth [data-tooltip][data-placement="right"]:focus:after, .cirth [data-tooltip][data-placement="right"]:hover:after {
1787
- --cirth-tooltip-caret-slide-to: translate(-.3rem, -50%);
1788
- animation-name: tooltip-caret-slide;
1789
- transform: translate(-.05rem, -50%);
1790
- }
1791
- }
1792
-
1793
- @keyframes tooltip-slide {
1794
- to {
1795
- transform: var(--cirth-tooltip-slide-to);
1796
- opacity: 1;
1797
- }
1798
- }
1799
-
1800
- @keyframes tooltip-caret-slide {
1801
- 50% {
1802
- opacity: 0;
1803
- }
1804
-
1805
- 100% {
1806
- transform: var(--cirth-tooltip-caret-slide-to);
1807
- opacity: 1;
1808
- }
1809
- }
1810
-
1811
1706
  .cirth [aria-controls] {
1812
1707
  cursor: pointer;
1813
1708
  }
@@ -1934,7 +1829,6 @@
1934
1829
  --cirth-z-index-fixed: 1030;
1935
1830
  --cirth-z-index-modal-backdrop: 1040;
1936
1831
  --cirth-z-index-modal: 1050;
1937
- --cirth-z-index-tooltip: 1070;
1938
1832
  --cirth-font-family: var(--cirth-font-family-sans);
1939
1833
  --cirth-line-height: var(--cirth-line-height-normal);
1940
1834
  --cirth-font-weight: var(--cirth-font-weight-regular);
@@ -1962,20 +1856,27 @@
1962
1856
  var(--cirth-primary-focus);
1963
1857
  --cirth-group-box-shadow-focus-with-input: 0 0 0 var(--cirth-border-width-1)
1964
1858
  var(--cirth-form-element-border-color);
1859
+ --cirth-meter-background-color: var(--cirth-progress-background-color);
1860
+ --cirth-meter-border-color: var(--cirth-progress-border-color);
1861
+ --cirth-popover-background-color: var(--cirth-card-background-color);
1862
+ --cirth-popover-border-color: var(--cirth-muted-border-color);
1863
+ --cirth-popover-color: var(--cirth-color);
1864
+ --cirth-popover-box-shadow: var(--cirth-box-shadow);
1865
+ --cirth-popover-max-width: min(30rem, 100% - var(--cirth-spacing) * 2);
1965
1866
  --cirth-modal-overlay-backdrop-filter: blur(.375rem);
1966
1867
  --cirth-nav-element-spacing-vertical: var(--cirth-space-4);
1967
1868
  --cirth-nav-element-spacing-horizontal: var(--cirth-space-2);
1968
1869
  --cirth-nav-link-spacing-vertical: var(--cirth-space-2);
1969
1870
  --cirth-nav-link-spacing-horizontal: var(--cirth-space-2);
1970
1871
  --cirth-nav-breadcrumb-divider: ">";
1971
- --cirth-icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
1972
- --cirth-icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
1973
- --cirth-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 146, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
1974
- --cirth-icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 146, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
1975
- --cirth-icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 146, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
1976
- --cirth-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 146, 164)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
1977
- --cirth-icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 146, 164)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
1978
- --cirth-icon-loading: url("data:image/svg+xml,%3Csvg fill='none' height='24' width='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E g %7B animation: rotate 2s linear infinite; transform-origin: center center; %7D circle %7B stroke-dasharray: 75,100; stroke-dashoffset: -5; animation: dash 1.5s ease-in-out infinite; stroke-linecap: round; %7D @keyframes rotate %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D @keyframes dash %7B 0%25 %7B stroke-dasharray: 1,100; stroke-dashoffset: 0; %7D 50%25 %7B stroke-dasharray: 44.5,100; stroke-dashoffset: -17.5; %7D 100%25 %7B stroke-dasharray: 44.5,100; stroke-dashoffset: -62; %7D %7D %3C/style%3E%3Cg%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='rgb(136, 146, 164)' stroke-width='4' /%3E%3C/g%3E%3C/svg%3E");
1872
+ --cirth-icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
1873
+ --cirth-icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
1874
+ --cirth-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 146, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
1875
+ --cirth-icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 146, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
1876
+ --cirth-icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 146, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
1877
+ --cirth-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 146, 164)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
1878
+ --cirth-icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 146, 164)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
1879
+ --cirth-icon-loading: url("data:image/svg+xml,%3Csvg fill='none' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E g %7B animation: rotate 2s linear infinite; transform-origin: center center; %7D circle %7B stroke-dasharray: 75,100; stroke-dashoffset: -5; animation: dash 1.5s ease-in-out infinite; stroke-linecap: round; %7D @keyframes rotate %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D @keyframes dash %7B 0%25 %7B stroke-dasharray: 1,100; stroke-dashoffset: 0; %7D 50%25 %7B stroke-dasharray: 44.5,100; stroke-dashoffset: -17.5; %7D 100%25 %7B stroke-dasharray: 44.5,100; stroke-dashoffset: -62; %7D %7D %3C/style%3E%3Cg%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='rgb(136, 146, 164)' stroke-width='4' /%3E%3C/g%3E%3C/svg%3E");
1979
1880
  }
1980
1881
 
1981
1882
  .cirth a {
@@ -2104,7 +2005,7 @@
2104
2005
  filter: brightness(0) invert();
2105
2006
  }
2106
2007
 
2107
- .cirth[data-theme="light"], .cirth [data-theme="light"], .cirth:not([data-theme="dark"]) {
2008
+ .cirth:where([data-theme="light"]), .cirth :where([data-theme="light"]), .cirth:where(:not([data-theme="dark"])) {
2108
2009
  --lightningcss-light: initial;
2109
2010
  --lightningcss-dark: ;
2110
2011
  color-scheme: light;
@@ -2199,21 +2100,22 @@
2199
2100
  --cirth-card-sectioning-background-color: oklch(99% 0 336);
2200
2101
  --cirth-loading-spinner-opacity: var(--cirth-opacity-disabled);
2201
2102
  --cirth-modal-overlay-background-color: oklch(93.85% .003 264deg / var(--cirth-opacity-overlay));
2103
+ --cirth-meter-optimum-color: oklch(52.7% .1 160.59);
2104
+ --cirth-meter-suboptimum-color: oklch(48.3% .086 78);
2105
+ --cirth-meter-even-less-good-color: oklch(44% .151 29.73);
2202
2106
  --cirth-progress-background-color: oklch(91.7% .006 264);
2203
2107
  --cirth-progress-border-color: oklch(61.3% .032 264);
2204
2108
  --cirth-progress-color: var(--cirth-primary-background);
2205
- --cirth-tooltip-background-color: var(--cirth-contrast-background);
2206
- --cirth-tooltip-color: var(--cirth-contrast-inverse);
2207
- --cirth-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(40, 124, 87)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
2208
- --cirth-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(189, 47, 33)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
2109
+ --cirth-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(40, 124, 87)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
2110
+ --cirth-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(189, 47, 33)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
2209
2111
  }
2210
2112
 
2211
- .cirth[data-theme="light"] input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]), .cirth [data-theme="light"] input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]), .cirth:not([data-theme="dark"]) input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]) {
2113
+ .cirth:where([data-theme="light"]) input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]), .cirth :where([data-theme="light"]) input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]), .cirth:where(:not([data-theme="dark"])) input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]) {
2212
2114
  --cirth-form-element-focus-color: var(--cirth-primary-focus);
2213
2115
  }
2214
2116
 
2215
2117
  @media only screen and (prefers-color-scheme: dark) {
2216
- .cirth:not([data-theme]) {
2118
+ .cirth:where(:not([data-theme])) {
2217
2119
  --lightningcss-light: ;
2218
2120
  --lightningcss-dark: initial;
2219
2121
  color-scheme: dark;
@@ -2308,21 +2210,22 @@
2308
2210
  --cirth-card-sectioning-background-color: oklch(23.4% .00725 264);
2309
2211
  --cirth-loading-spinner-opacity: var(--cirth-opacity-disabled);
2310
2212
  --cirth-modal-overlay-background-color: oklch(9% 0 312deg / var(--cirth-opacity-overlay));
2213
+ --cirth-meter-optimum-color: oklch(65.7% .125 160.59);
2214
+ --cirth-meter-suboptimum-color: oklch(70% .124 78);
2215
+ --cirth-meter-even-less-good-color: oklch(74.3% .133 29.73);
2311
2216
  --cirth-progress-background-color: oklch(26.7% .011 264);
2312
2217
  --cirth-progress-border-color: oklch(52.7% .032 264);
2313
2218
  --cirth-progress-color: oklch(61.3% .113 69.35);
2314
- --cirth-tooltip-background-color: var(--cirth-contrast-background);
2315
- --cirth-tooltip-color: var(--cirth-contrast-inverse);
2316
- --cirth-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(75, 215, 153)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
2317
- --cirth-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(246, 160, 145)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
2219
+ --cirth-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(75, 215, 153)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
2220
+ --cirth-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(246, 160, 145)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
2318
2221
  }
2319
2222
 
2320
- .cirth:not([data-theme]) input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]) {
2223
+ .cirth:where(:not([data-theme])) input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]) {
2321
2224
  --cirth-form-element-focus-color: var(--cirth-primary-focus);
2322
2225
  }
2323
2226
  }
2324
2227
 
2325
- .cirth[data-theme="dark"], .cirth [data-theme="dark"] {
2228
+ .cirth:where([data-theme="dark"]), .cirth :where([data-theme="dark"]) {
2326
2229
  --lightningcss-light: ;
2327
2230
  --lightningcss-dark: initial;
2328
2231
  color-scheme: dark;
@@ -2417,19 +2320,245 @@
2417
2320
  --cirth-card-sectioning-background-color: oklch(23.4% .00725 264);
2418
2321
  --cirth-loading-spinner-opacity: var(--cirth-opacity-disabled);
2419
2322
  --cirth-modal-overlay-background-color: oklch(9% 0 312deg / var(--cirth-opacity-overlay));
2323
+ --cirth-meter-optimum-color: oklch(65.7% .125 160.59);
2324
+ --cirth-meter-suboptimum-color: oklch(70% .124 78);
2325
+ --cirth-meter-even-less-good-color: oklch(74.3% .133 29.73);
2420
2326
  --cirth-progress-background-color: oklch(26.7% .011 264);
2421
2327
  --cirth-progress-border-color: oklch(52.7% .032 264);
2422
2328
  --cirth-progress-color: oklch(61.3% .113 69.35);
2423
- --cirth-tooltip-background-color: var(--cirth-contrast-background);
2424
- --cirth-tooltip-color: var(--cirth-contrast-inverse);
2425
- --cirth-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(75, 215, 153)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
2426
- --cirth-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(246, 160, 145)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
2329
+ --cirth-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(75, 215, 153)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
2330
+ --cirth-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(246, 160, 145)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
2427
2331
  }
2428
2332
 
2429
- .cirth[data-theme="dark"] input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]), .cirth [data-theme="dark"] input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]) {
2333
+ .cirth:where([data-theme="dark"]) input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]), .cirth :where([data-theme="dark"]) input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]) {
2430
2334
  --cirth-form-element-focus-color: var(--cirth-primary-focus);
2431
2335
  }
2432
2336
 
2433
2337
  .cirth progress, .cirth [type="checkbox"], .cirth [type="radio"], .cirth [type="range"] {
2434
2338
  accent-color: var(--cirth-primary);
2435
2339
  }
2340
+
2341
+ @media (prefers-contrast: more) {
2342
+ .cirth:where([data-theme="light"]), .cirth :where([data-theme="light"]), .cirth:where(:not([data-theme="dark"])) {
2343
+ --cirth-color: oklch(22.3% .006 264);
2344
+ --cirth-h1-color: var(--cirth-color);
2345
+ --cirth-h2-color: var(--cirth-color);
2346
+ --cirth-h3-color: var(--cirth-color);
2347
+ --cirth-h4-color: var(--cirth-color);
2348
+ --cirth-h5-color: var(--cirth-color);
2349
+ --cirth-h6-color: var(--cirth-color);
2350
+ --cirth-muted-color: oklch(39.7% .025 264);
2351
+ --cirth-secondary: oklch(39.7% .025 264);
2352
+ --cirth-code-color: oklch(35.3% .021 264);
2353
+ --cirth-link-visited-color: oklch(35.3% .021 264);
2354
+ --cirth-muted-border-color: oklch(57% .032 264);
2355
+ --cirth-form-element-border-color: oklch(39.7% .025 264);
2356
+ --cirth-form-element-invalid-border-color: oklch(48.3% .166 29.73);
2357
+ --cirth-form-element-valid-border-color: oklch(48.3% .092 160.59);
2358
+ --cirth-primary: oklch(39.7% .073 69.35);
2359
+ --cirth-primary-hover: oklch(31% .057 69.35);
2360
+ --cirth-primary-underline: var(--cirth-primary);
2361
+ --cirth-secondary-underline: var(--cirth-secondary);
2362
+ --cirth-contrast-underline: var(--cirth-contrast);
2363
+ --cirth-primary-focus: oklch(48.3% .089 69.35);
2364
+ --cirth-secondary-focus: oklch(48.3% .03 264);
2365
+ --cirth-contrast-focus: oklch(48.3% .03 264);
2366
+ --cirth-switch-background-color: oklch(48.3% .03 264);
2367
+ --cirth-progress-border-color: oklch(48.3% .03 264);
2368
+ --cirth-meter-optimum-color: oklch(44% .084 160.59);
2369
+ --cirth-meter-suboptimum-color: oklch(39.7% .07 78);
2370
+ --cirth-meter-even-less-good-color: oklch(35.3% .122 29.73);
2371
+ }
2372
+ }
2373
+
2374
+ @media only screen and (prefers-contrast: more) and (prefers-color-scheme: dark) {
2375
+ .cirth:where(:not([data-theme])) {
2376
+ --cirth-color: oklch(96% 0 264);
2377
+ --cirth-h1-color: var(--cirth-color);
2378
+ --cirth-h2-color: var(--cirth-color);
2379
+ --cirth-h3-color: var(--cirth-color);
2380
+ --cirth-h4-color: var(--cirth-color);
2381
+ --cirth-h5-color: var(--cirth-color);
2382
+ --cirth-h6-color: var(--cirth-color);
2383
+ --cirth-muted-color: oklch(78.7% .021 264);
2384
+ --cirth-secondary: oklch(78.7% .021 264);
2385
+ --cirth-code-color: oklch(83% .016 264);
2386
+ --cirth-link-visited-color: oklch(78.7% .021 264);
2387
+ --cirth-muted-border-color: oklch(57% .032 264);
2388
+ --cirth-card-border-color: var(--cirth-muted-border-color);
2389
+ --cirth-form-element-border-color: oklch(70% .028 264);
2390
+ --cirth-form-element-invalid-border-color: oklch(78.7% .106 29.73);
2391
+ --cirth-form-element-valid-border-color: oklch(78.7% .15 160.59);
2392
+ --cirth-primary: oklch(78.7% .146 69.35);
2393
+ --cirth-primary-hover: oklch(87.3% .082 69.35);
2394
+ --cirth-primary-underline: var(--cirth-primary);
2395
+ --cirth-secondary-underline: var(--cirth-secondary);
2396
+ --cirth-contrast-underline: var(--cirth-contrast);
2397
+ --cirth-primary-focus: oklch(70% .129 69.35);
2398
+ --cirth-secondary-focus: oklch(70% .028 264);
2399
+ --cirth-contrast-focus: oklch(87.3% .011 264);
2400
+ --cirth-switch-background-color: oklch(65.7% .03 264);
2401
+ --cirth-progress-border-color: oklch(70% .028 264);
2402
+ --cirth-meter-optimum-color: oklch(74.3% .142 160.59);
2403
+ --cirth-meter-suboptimum-color: oklch(78.7% .139 78);
2404
+ --cirth-meter-even-less-good-color: oklch(83% .081 29.73);
2405
+ }
2406
+ }
2407
+
2408
+ @media (prefers-contrast: more) {
2409
+ .cirth:where([data-theme="dark"]), .cirth :where([data-theme="dark"]) {
2410
+ --cirth-color: oklch(96% 0 264);
2411
+ --cirth-h1-color: var(--cirth-color);
2412
+ --cirth-h2-color: var(--cirth-color);
2413
+ --cirth-h3-color: var(--cirth-color);
2414
+ --cirth-h4-color: var(--cirth-color);
2415
+ --cirth-h5-color: var(--cirth-color);
2416
+ --cirth-h6-color: var(--cirth-color);
2417
+ --cirth-muted-color: oklch(78.7% .021 264);
2418
+ --cirth-secondary: oklch(78.7% .021 264);
2419
+ --cirth-code-color: oklch(83% .016 264);
2420
+ --cirth-link-visited-color: oklch(78.7% .021 264);
2421
+ --cirth-muted-border-color: oklch(57% .032 264);
2422
+ --cirth-card-border-color: var(--cirth-muted-border-color);
2423
+ --cirth-form-element-border-color: oklch(70% .028 264);
2424
+ --cirth-form-element-invalid-border-color: oklch(78.7% .106 29.73);
2425
+ --cirth-form-element-valid-border-color: oklch(78.7% .15 160.59);
2426
+ --cirth-primary: oklch(78.7% .146 69.35);
2427
+ --cirth-primary-hover: oklch(87.3% .082 69.35);
2428
+ --cirth-primary-underline: var(--cirth-primary);
2429
+ --cirth-secondary-underline: var(--cirth-secondary);
2430
+ --cirth-contrast-underline: var(--cirth-contrast);
2431
+ --cirth-primary-focus: oklch(70% .129 69.35);
2432
+ --cirth-secondary-focus: oklch(70% .028 264);
2433
+ --cirth-contrast-focus: oklch(87.3% .011 264);
2434
+ --cirth-switch-background-color: oklch(65.7% .03 264);
2435
+ --cirth-progress-border-color: oklch(70% .028 264);
2436
+ --cirth-meter-optimum-color: oklch(74.3% .142 160.59);
2437
+ --cirth-meter-suboptimum-color: oklch(78.7% .139 78);
2438
+ --cirth-meter-even-less-good-color: oklch(83% .081 29.73);
2439
+ }
2440
+ }
2441
+
2442
+ @media print {
2443
+ .cirth {
2444
+ --cirth-print-color: oklch(0% 0 0);
2445
+ --cirth-print-muted-color: oklch(48.3% .03 264);
2446
+ --cirth-print-border-color: oklch(61.3% .032 264);
2447
+ color: var(--cirth-print-color);
2448
+ --lightningcss-light: initial;
2449
+ --lightningcss-dark: ;
2450
+ --lightningcss-light: initial;
2451
+ --lightningcss-dark: ;
2452
+ color-scheme: light;
2453
+ --cirth-color: var(--cirth-print-color);
2454
+ --cirth-h1-color: var(--cirth-print-color);
2455
+ --cirth-h2-color: var(--cirth-print-color);
2456
+ --cirth-h3-color: var(--cirth-print-color);
2457
+ --cirth-h4-color: var(--cirth-print-color);
2458
+ --cirth-h5-color: var(--cirth-print-color);
2459
+ --cirth-h6-color: var(--cirth-print-color);
2460
+ --cirth-code-color: var(--cirth-print-color);
2461
+ --cirth-code-kbd-color: var(--cirth-print-color);
2462
+ --cirth-form-element-color: var(--cirth-print-color);
2463
+ --cirth-muted-color: var(--cirth-print-muted-color);
2464
+ --cirth-form-element-placeholder-color: var(--cirth-print-muted-color);
2465
+ --cirth-primary: var(--cirth-print-color);
2466
+ --cirth-primary-hover: var(--cirth-print-color);
2467
+ --cirth-primary-underline: var(--cirth-print-color);
2468
+ --cirth-secondary: var(--cirth-print-color);
2469
+ --cirth-secondary-underline: var(--cirth-print-color);
2470
+ --cirth-contrast: var(--cirth-print-color);
2471
+ --cirth-contrast-underline: var(--cirth-print-color);
2472
+ --cirth-link-visited-color: var(--cirth-print-color);
2473
+ --cirth-muted-border-color: var(--cirth-print-border-color);
2474
+ --cirth-form-element-border-color: var(--cirth-print-border-color);
2475
+ --cirth-box-shadow: none;
2476
+ --cirth-card-box-shadow: none;
2477
+ --cirth-card-background-color: transparent;
2478
+ --cirth-card-sectioning-background-color: transparent;
2479
+ --cirth-code-background-color: transparent;
2480
+ --cirth-code-kbd-background-color: transparent;
2481
+ --cirth-form-element-background-color: transparent;
2482
+ --cirth-form-element-active-background-color: transparent;
2483
+ --cirth-table-row-stripped-background-color: transparent;
2484
+ --cirth-modal-overlay-background-color: transparent;
2485
+ --cirth-ins-color: oklch(35.3% .067 160.59);
2486
+ --cirth-del-color: oklch(35.3% .122 29.73);
2487
+ --cirth-meter-optimum-color: oklch(52.7% .1 160.59);
2488
+ --cirth-meter-suboptimum-color: oklch(48.3% .086 78);
2489
+ --cirth-meter-even-less-good-color: oklch(44% .151 29.73);
2490
+ background: none;
2491
+ }
2492
+
2493
+ .cirth kbd {
2494
+ border: var(--cirth-border-width) solid var(--cirth-print-border-color);
2495
+ }
2496
+
2497
+ .cirth :is(button, [type="submit"], [type="reset"], [type="button"], [role="button"]) {
2498
+ border-color: var(--cirth-print-border-color);
2499
+ box-shadow: none;
2500
+ color: var(--cirth-print-color);
2501
+ background: none;
2502
+ }
2503
+
2504
+ .cirth [type="file"]::file-selector-button {
2505
+ border-color: var(--cirth-print-border-color);
2506
+ box-shadow: none;
2507
+ color: var(--cirth-print-color);
2508
+ background: none;
2509
+ }
2510
+
2511
+ .cirth :is(mark, meter, progress, [type="checkbox"], [type="radio"]) {
2512
+ -webkit-print-color-adjust: exact;
2513
+ print-color-adjust: exact;
2514
+ }
2515
+
2516
+ .cirth a[href^="http"]:not([role="button"], nav a):after {
2517
+ content: " (" attr(href) ")";
2518
+ color: var(--cirth-print-muted-color);
2519
+ font-size: var(--cirth-font-size-sm);
2520
+ word-break: break-all;
2521
+ }
2522
+
2523
+ .cirth thead {
2524
+ display: table-header-group;
2525
+ }
2526
+
2527
+ .cirth tfoot {
2528
+ display: table-footer-group;
2529
+ }
2530
+
2531
+ .cirth tr {
2532
+ break-inside: avoid;
2533
+ }
2534
+
2535
+ .cirth pre {
2536
+ white-space: pre-wrap;
2537
+ overflow: visible;
2538
+ }
2539
+
2540
+ .cirth dialog {
2541
+ backdrop-filter: none;
2542
+ min-width: 0;
2543
+ min-height: 0;
2544
+ position: static;
2545
+ }
2546
+
2547
+ .cirth dialog > article {
2548
+ max-height: none;
2549
+ overflow: visible;
2550
+ }
2551
+
2552
+ .cirth :is(h1, h2, h3, h4, h5, h6) {
2553
+ break-after: avoid;
2554
+ }
2555
+
2556
+ .cirth :is(figure, img) {
2557
+ break-inside: avoid;
2558
+ }
2559
+
2560
+ .cirth :is(blockquote, li, p) {
2561
+ orphans: 3;
2562
+ widows: 3;
2563
+ }
2564
+ }