@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%;
@@ -63,7 +64,7 @@
63
64
  display: grid;
64
65
  }
65
66
 
66
- @media (min-width: 768px) {
67
+ @media (width >= 768px) {
67
68
  .cirth .row {
68
69
  grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
69
70
  }
@@ -853,14 +854,6 @@
853
854
  margin-inline-end: .5em;
854
855
  }
855
856
 
856
- .cirth [type="checkbox"]::-ms-check {
857
- display: none;
858
- }
859
-
860
- .cirth [type="radio"]::-ms-check {
861
- display: none;
862
- }
863
-
864
857
  .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 {
865
858
  --cirth-background-color: var(--cirth-primary-background);
866
859
  --cirth-border-color: var(--cirth-primary-border);
@@ -1091,14 +1084,6 @@
1091
1084
  transition: background-color var(--cirth-transition), box-shadow var(--cirth-transition);
1092
1085
  }
1093
1086
 
1094
- .cirth [type="range"]::-ms-track {
1095
- border-radius: var(--cirth-border-radius);
1096
- background-color: var(--cirth-range-border-color);
1097
- width: 100%;
1098
- height: .375rem;
1099
- transition: background-color var(--cirth-transition), box-shadow var(--cirth-transition);
1100
- }
1101
-
1102
1087
  .cirth [type="range"]::-webkit-slider-thumb {
1103
1088
  -webkit-appearance: none;
1104
1089
  border: var(--cirth-border-width-2) solid var(--cirth-range-thumb-border-color);
@@ -1112,19 +1097,6 @@
1112
1097
  }
1113
1098
 
1114
1099
  .cirth [type="range"]::-moz-range-thumb {
1115
- -webkit-appearance: none;
1116
- border: var(--cirth-border-width-2) solid var(--cirth-range-thumb-border-color);
1117
- background-color: var(--cirth-range-thumb-color);
1118
- cursor: pointer;
1119
- width: 1.25rem;
1120
- height: 1.25rem;
1121
- transition: background-color var(--cirth-transition), transform var(--cirth-transition);
1122
- border-radius: 50%;
1123
- margin-top: -.4375rem;
1124
- }
1125
-
1126
- .cirth [type="range"]::-ms-thumb {
1127
- -webkit-appearance: none;
1128
1100
  border: var(--cirth-border-width-2) solid var(--cirth-range-thumb-border-color);
1129
1101
  background-color: var(--cirth-range-thumb-color);
1130
1102
  cursor: pointer;
@@ -1148,10 +1120,6 @@
1148
1120
  transform: scale(1.25);
1149
1121
  }
1150
1122
 
1151
- .cirth [type="range"]:active::-ms-thumb {
1152
- transform: scale(1.25);
1153
- }
1154
-
1155
1123
  .cirth input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])[type="search"] {
1156
1124
  background-image: var(--cirth-icon-search);
1157
1125
  background-position: center left var(--cirth-form-element-spacing-horizontal);
@@ -1205,10 +1173,6 @@
1205
1173
  display: none;
1206
1174
  }
1207
1175
 
1208
- .cirth details summary::-moz-list-bullet {
1209
- list-style-type: none;
1210
- }
1211
-
1212
1176
  .cirth details summary:after {
1213
1177
  width: var(--cirth-size-4);
1214
1178
  height: var(--cirth-size-4);
@@ -1678,17 +1642,58 @@
1678
1642
  pointer-events: none;
1679
1643
  }
1680
1644
 
1681
- .cirth {
1682
- --cirth-scrollbar-width: 0px;
1645
+ .cirth meter {
1646
+ appearance: none;
1647
+ width: 100%;
1648
+ height: var(--cirth-size-2);
1649
+ margin-bottom: calc(var(--cirth-spacing) * .5);
1650
+ border: var(--cirth-border-width-1) solid var(--cirth-meter-border-color);
1651
+ border-radius: var(--cirth-border-radius);
1652
+ background: var(--cirth-meter-background-color);
1653
+ display: inline-block;
1654
+ overflow: hidden;
1655
+ }
1656
+
1657
+ .cirth meter::-webkit-meter-bar {
1658
+ background: none;
1659
+ }
1660
+
1661
+ .cirth meter::-webkit-meter-inner-element {
1662
+ display: flex;
1663
+ }
1664
+
1665
+ .cirth meter::-webkit-meter-optimum-value {
1666
+ background: var(--cirth-meter-optimum-color);
1667
+ }
1668
+
1669
+ .cirth meter::-webkit-meter-suboptimum-value {
1670
+ background: var(--cirth-meter-suboptimum-color);
1671
+ }
1672
+
1673
+ .cirth meter::-webkit-meter-even-less-good-value {
1674
+ background: var(--cirth-meter-even-less-good-color);
1675
+ }
1676
+
1677
+ .cirth meter::-moz-meter-bar {
1678
+ background: var(--cirth-meter-optimum-color);
1679
+ }
1680
+
1681
+ .cirth meter:-moz-meter-sub-optimum::-moz-meter-bar {
1682
+ background: var(--cirth-meter-suboptimum-color);
1683
+ }
1684
+
1685
+ .cirth meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
1686
+ background: var(--cirth-meter-even-less-good-color);
1683
1687
  }
1684
1688
 
1685
1689
  .cirth dialog {
1690
+ opacity: 0;
1691
+ transition: opacity var(--cirth-transition), display var(--cirth-transition) allow-discrete, overlay var(--cirth-transition) allow-discrete;
1686
1692
  z-index: var(--cirth-z-index-modal);
1687
1693
  width: inherit;
1688
1694
  min-width: 100%;
1689
1695
  height: inherit;
1690
1696
  min-height: 100%;
1691
- -webkit-backdrop-filter: var(--cirth-modal-overlay-backdrop-filter);
1692
1697
  backdrop-filter: var(--cirth-modal-overlay-backdrop-filter);
1693
1698
  background-color: var(--cirth-modal-overlay-background-color);
1694
1699
  color: var(--cirth-color);
@@ -1701,7 +1706,25 @@
1701
1706
  inset: 0;
1702
1707
  }
1703
1708
 
1709
+ .cirth dialog[open] {
1710
+ opacity: 1;
1711
+ }
1712
+
1713
+ @starting-style {
1714
+ .cirth dialog[open] {
1715
+ opacity: 0;
1716
+ }
1717
+ }
1718
+
1719
+ @starting-style {
1720
+ .cirth dialog[open] > article {
1721
+ opacity: 0;
1722
+ transform: translateY(-100%);
1723
+ }
1724
+ }
1725
+
1704
1726
  .cirth dialog > article {
1727
+ transition: opacity var(--cirth-transition), transform var(--cirth-transition);
1705
1728
  width: 100%;
1706
1729
  max-height: calc(100vh - var(--cirth-spacing) * 2);
1707
1730
  max-height: calc(100dvh - var(--cirth-spacing) * 2);
@@ -1709,13 +1732,13 @@
1709
1732
  overflow: auto;
1710
1733
  }
1711
1734
 
1712
- @media (min-width: 576px) {
1735
+ @media (width >= 576px) {
1713
1736
  .cirth dialog > article {
1714
1737
  max-width: 510px;
1715
1738
  }
1716
1739
  }
1717
1740
 
1718
- @media (min-width: 768px) {
1741
+ @media (width >= 768px) {
1719
1742
  .cirth dialog > article {
1720
1743
  max-width: 700px;
1721
1744
  }
@@ -1773,54 +1796,6 @@
1773
1796
  float: left;
1774
1797
  }
1775
1798
 
1776
- .cirth.modal-is-open, .cirth .modal-is-open {
1777
- pointer-events: none;
1778
- touch-action: none;
1779
- padding-inline-end: var(--cirth-scrollbar-width, 0);
1780
- overflow: hidden;
1781
- }
1782
-
1783
- .cirth.modal-is-open dialog, .cirth .modal-is-open dialog {
1784
- pointer-events: auto;
1785
- touch-action: auto;
1786
- }
1787
-
1788
- .cirth:where(.modal-is-opening, .modal-is-closing) dialog, .cirth:where(.modal-is-opening, .modal-is-closing) dialog > article, .cirth :where(.modal-is-opening, .modal-is-closing) dialog, .cirth :where(.modal-is-opening, .modal-is-closing) dialog > article {
1789
- animation-duration: var(--cirth-duration-normal);
1790
- animation-timing-function: var(--cirth-ease-in-out);
1791
- animation-fill-mode: both;
1792
- }
1793
-
1794
- .cirth:where(.modal-is-opening, .modal-is-closing) dialog, .cirth :where(.modal-is-opening, .modal-is-closing) dialog {
1795
- animation-duration: calc(var(--cirth-duration-normal) * 4);
1796
- animation-name: modal-overlay;
1797
- }
1798
-
1799
- .cirth:where(.modal-is-opening, .modal-is-closing) dialog > article, .cirth :where(.modal-is-opening, .modal-is-closing) dialog > article {
1800
- animation-delay: var(--cirth-duration-normal);
1801
- animation-name: modal;
1802
- }
1803
-
1804
- .cirth.modal-is-closing dialog, .cirth.modal-is-closing dialog > article, .cirth .modal-is-closing dialog, .cirth .modal-is-closing dialog > article {
1805
- animation-delay: var(--cirth-duration-instant);
1806
- animation-direction: reverse;
1807
- }
1808
-
1809
- @keyframes modal-overlay {
1810
- from {
1811
- -webkit-backdrop-filter: none;
1812
- backdrop-filter: none;
1813
- background-color: #0000;
1814
- }
1815
- }
1816
-
1817
- @keyframes modal {
1818
- from {
1819
- opacity: 0;
1820
- transform: translateY(-100%);
1821
- }
1822
- }
1823
-
1824
1799
  .cirth :where(nav li):before {
1825
1800
  float: left;
1826
1801
  content: "​";
@@ -1928,6 +1903,33 @@
1928
1903
  margin: inherit;
1929
1904
  }
1930
1905
 
1906
+ .cirth :is([popover=""], [popover="auto"], [popover="hint"]):not(dialog) {
1907
+ --cirth-popover-display: block;
1908
+ display: none;
1909
+ }
1910
+
1911
+ .cirth :is([popover=""], [popover="auto"], [popover="hint"]):not(dialog):popover-open {
1912
+ display: var(--cirth-popover-display);
1913
+ max-width: var(--cirth-popover-max-width);
1914
+ padding: var(--cirth-space-2) var(--cirth-space-3);
1915
+ border: var(--cirth-border-width) solid var(--cirth-popover-border-color);
1916
+ border-radius: var(--cirth-border-radius);
1917
+ background-color: var(--cirth-popover-background-color);
1918
+ box-shadow: var(--cirth-popover-box-shadow);
1919
+ color: var(--cirth-popover-color);
1920
+ transition: opacity var(--cirth-transition), display var(--cirth-transition) allow-discrete, overlay var(--cirth-transition) allow-discrete;
1921
+ }
1922
+
1923
+ @starting-style {
1924
+ .cirth :is([popover=""], [popover="auto"], [popover="hint"]):not(dialog):popover-open {
1925
+ opacity: 0;
1926
+ }
1927
+ }
1928
+
1929
+ .cirth :is([popover=""], [popover="auto"], [popover="hint"]):not(dialog):not(:popover-open) {
1930
+ opacity: 0;
1931
+ }
1932
+
1931
1933
  .cirth progress {
1932
1934
  vertical-align: baseline;
1933
1935
  appearance: none;
@@ -1937,7 +1939,6 @@
1937
1939
  border: var(--cirth-border-width-1) solid var(--cirth-progress-border-color);
1938
1940
  border-radius: var(--cirth-border-radius);
1939
1941
  background-color: var(--cirth-progress-background-color);
1940
- color: var(--cirth-progress-color);
1941
1942
  display: inline-block;
1942
1943
  overflow: hidden;
1943
1944
  }
@@ -1985,160 +1986,6 @@
1985
1986
  }
1986
1987
  }
1987
1988
 
1988
- .cirth [data-tooltip] {
1989
- position: relative;
1990
- }
1991
-
1992
- .cirth [data-tooltip]:not(a, button, input, [role="button"]) {
1993
- border-bottom: var(--cirth-border-width-1) dotted;
1994
- cursor: help;
1995
- text-decoration: none;
1996
- }
1997
-
1998
- .cirth [data-tooltip][data-placement="top"]:before, .cirth [data-tooltip][data-placement="top"]:after, .cirth [data-tooltip]:before, .cirth [data-tooltip]:after {
1999
- z-index: var(--cirth-z-index-tooltip);
2000
- padding: var(--cirth-space-1) var(--cirth-space-2);
2001
- border-radius: var(--cirth-border-radius);
2002
- background: var(--cirth-tooltip-background-color);
2003
- content: attr(data-tooltip);
2004
- color: var(--cirth-tooltip-color);
2005
- font-style: normal;
2006
- font-weight: var(--cirth-font-weight);
2007
- font-size: var(--cirth-font-size-sm);
2008
- text-overflow: ellipsis;
2009
- white-space: nowrap;
2010
- opacity: 0;
2011
- pointer-events: none;
2012
- text-decoration: none;
2013
- display: block;
2014
- position: absolute;
2015
- bottom: 100%;
2016
- left: 50%;
2017
- overflow: hidden;
2018
- transform: translate(-50%, -.25rem);
2019
- }
2020
-
2021
- .cirth [data-tooltip][data-placement="top"]:after, .cirth [data-tooltip]:after {
2022
- content: "";
2023
- color: var(--cirth-tooltip-background-color);
2024
- background-color: #0000;
2025
- border-top: .3rem solid;
2026
- border-left: .3rem solid #0000;
2027
- border-right: .3rem solid #0000;
2028
- border-radius: 0;
2029
- padding: 0;
2030
- transform: translate(-50%);
2031
- }
2032
-
2033
- .cirth [data-tooltip][data-placement="bottom"]:before, .cirth [data-tooltip][data-placement="bottom"]:after {
2034
- top: 100%;
2035
- bottom: auto;
2036
- transform: translate(-50%, .25rem);
2037
- }
2038
-
2039
- .cirth [data-tooltip][data-placement="bottom"]:after {
2040
- border: .3rem solid #0000;
2041
- border-bottom-color: currentColor;
2042
- transform: translate(-50%, -.3rem);
2043
- }
2044
-
2045
- .cirth [data-tooltip][data-placement="left"]:before, .cirth [data-tooltip][data-placement="left"]:after {
2046
- inset: 50% 100% auto auto;
2047
- transform: translate(-.25rem, -50%);
2048
- }
2049
-
2050
- .cirth [data-tooltip][data-placement="left"]:after {
2051
- border: .3rem solid #0000;
2052
- border-left-color: currentColor;
2053
- transform: translate(.3rem, -50%);
2054
- }
2055
-
2056
- .cirth [data-tooltip][data-placement="right"]:before, .cirth [data-tooltip][data-placement="right"]:after {
2057
- inset: 50% auto auto 100%;
2058
- transform: translate(.25rem, -50%);
2059
- }
2060
-
2061
- .cirth [data-tooltip][data-placement="right"]:after {
2062
- border: .3rem solid #0000;
2063
- border-right-color: currentColor;
2064
- transform: translate(-.3rem, -50%);
2065
- }
2066
-
2067
- .cirth [data-tooltip]:focus:before, .cirth [data-tooltip]:focus:after, .cirth [data-tooltip]:hover:before, .cirth [data-tooltip]:hover:after {
2068
- opacity: 1;
2069
- }
2070
-
2071
- @media (hover: hover) and (pointer: fine) {
2072
- .cirth [data-tooltip]:focus:before, .cirth [data-tooltip]:focus:after, .cirth [data-tooltip]:hover:before, .cirth [data-tooltip]:hover:after {
2073
- --cirth-tooltip-slide-to: translate(-50%, -.25rem);
2074
- animation-duration: var(--cirth-duration-normal);
2075
- opacity: 0;
2076
- animation-name: tooltip-slide;
2077
- animation-fill-mode: forwards;
2078
- transform: translate(-50%, .75rem);
2079
- }
2080
-
2081
- .cirth [data-tooltip]:focus:after, .cirth [data-tooltip]:hover:after {
2082
- --cirth-tooltip-caret-slide-to: translate(-50%, 0rem);
2083
- animation-name: tooltip-caret-slide;
2084
- transform: translate(-50%, -.25rem);
2085
- }
2086
-
2087
- .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 {
2088
- --cirth-tooltip-slide-to: translate(-50%, .25rem);
2089
- animation-name: tooltip-slide;
2090
- transform: translate(-50%, -.75rem);
2091
- }
2092
-
2093
- .cirth [data-tooltip][data-placement="bottom"]:focus:after, .cirth [data-tooltip][data-placement="bottom"]:hover:after {
2094
- --cirth-tooltip-caret-slide-to: translate(-50%, -.3rem);
2095
- animation-name: tooltip-caret-slide;
2096
- transform: translate(-50%, -.5rem);
2097
- }
2098
-
2099
- .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 {
2100
- --cirth-tooltip-slide-to: translate(-.25rem, -50%);
2101
- animation-name: tooltip-slide;
2102
- transform: translate(.75rem, -50%);
2103
- }
2104
-
2105
- .cirth [data-tooltip][data-placement="left"]:focus:after, .cirth [data-tooltip][data-placement="left"]:hover:after {
2106
- --cirth-tooltip-caret-slide-to: translate(.3rem, -50%);
2107
- animation-name: tooltip-caret-slide;
2108
- transform: translate(.05rem, -50%);
2109
- }
2110
-
2111
- .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 {
2112
- --cirth-tooltip-slide-to: translate(.25rem, -50%);
2113
- animation-name: tooltip-slide;
2114
- transform: translate(-.75rem, -50%);
2115
- }
2116
-
2117
- .cirth [data-tooltip][data-placement="right"]:focus:after, .cirth [data-tooltip][data-placement="right"]:hover:after {
2118
- --cirth-tooltip-caret-slide-to: translate(-.3rem, -50%);
2119
- animation-name: tooltip-caret-slide;
2120
- transform: translate(-.05rem, -50%);
2121
- }
2122
- }
2123
-
2124
- @keyframes tooltip-slide {
2125
- to {
2126
- transform: var(--cirth-tooltip-slide-to);
2127
- opacity: 1;
2128
- }
2129
- }
2130
-
2131
- @keyframes tooltip-caret-slide {
2132
- 50% {
2133
- opacity: 0;
2134
- }
2135
-
2136
- 100% {
2137
- transform: var(--cirth-tooltip-caret-slide-to);
2138
- opacity: 1;
2139
- }
2140
- }
2141
-
2142
1989
  .cirth [aria-controls] {
2143
1990
  cursor: pointer;
2144
1991
  }
@@ -2293,7 +2140,6 @@
2293
2140
  --cirth-z-index-fixed: 1030;
2294
2141
  --cirth-z-index-modal-backdrop: 1040;
2295
2142
  --cirth-z-index-modal: 1050;
2296
- --cirth-z-index-tooltip: 1070;
2297
2143
  --cirth-font-family: var(--cirth-font-family-sans);
2298
2144
  --cirth-line-height: var(--cirth-line-height-normal);
2299
2145
  --cirth-font-weight: var(--cirth-font-weight-regular);
@@ -2324,20 +2170,27 @@
2324
2170
  var(--cirth-primary-focus);
2325
2171
  --cirth-group-box-shadow-focus-with-input: 0 0 0 var(--cirth-border-width-1)
2326
2172
  var(--cirth-form-element-border-color);
2173
+ --cirth-meter-background-color: var(--cirth-progress-background-color);
2174
+ --cirth-meter-border-color: var(--cirth-progress-border-color);
2175
+ --cirth-popover-background-color: var(--cirth-card-background-color);
2176
+ --cirth-popover-border-color: var(--cirth-muted-border-color);
2177
+ --cirth-popover-color: var(--cirth-color);
2178
+ --cirth-popover-box-shadow: var(--cirth-box-shadow);
2179
+ --cirth-popover-max-width: min(30rem, 100% - var(--cirth-spacing) * 2);
2327
2180
  --cirth-modal-overlay-backdrop-filter: blur(.375rem);
2328
2181
  --cirth-nav-element-spacing-vertical: var(--cirth-space-4);
2329
2182
  --cirth-nav-element-spacing-horizontal: var(--cirth-space-2);
2330
2183
  --cirth-nav-link-spacing-vertical: var(--cirth-space-2);
2331
2184
  --cirth-nav-link-spacing-horizontal: var(--cirth-space-2);
2332
2185
  --cirth-nav-breadcrumb-divider: ">";
2333
- --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");
2334
- --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");
2335
- --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");
2336
- --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");
2337
- --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");
2338
- --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");
2339
- --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");
2340
- --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");
2186
+ --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");
2187
+ --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");
2188
+ --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");
2189
+ --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");
2190
+ --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");
2191
+ --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");
2192
+ --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");
2193
+ --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");
2341
2194
  }
2342
2195
 
2343
2196
  .cirth a, .cirth a.secondary, .cirth a.contrast {
@@ -2490,7 +2343,7 @@
2490
2343
  filter: brightness(0) invert();
2491
2344
  }
2492
2345
 
2493
- .cirth[data-theme="light"], .cirth [data-theme="light"], .cirth:not([data-theme="dark"]) {
2346
+ .cirth:where([data-theme="light"]), .cirth :where([data-theme="light"]), .cirth:where(:not([data-theme="dark"])) {
2494
2347
  --lightningcss-light: initial;
2495
2348
  --lightningcss-dark: ;
2496
2349
  color-scheme: light;
@@ -2590,21 +2443,22 @@
2590
2443
  --cirth-dropdown-hover-background-color: oklch(96% 0 264);
2591
2444
  --cirth-loading-spinner-opacity: var(--cirth-opacity-disabled);
2592
2445
  --cirth-modal-overlay-background-color: oklch(93.85% .003 264deg / var(--cirth-opacity-overlay));
2446
+ --cirth-meter-optimum-color: oklch(52.7% .1 160.59);
2447
+ --cirth-meter-suboptimum-color: oklch(48.3% .086 78);
2448
+ --cirth-meter-even-less-good-color: oklch(44% .151 29.73);
2593
2449
  --cirth-progress-background-color: oklch(91.7% .006 264);
2594
2450
  --cirth-progress-border-color: oklch(61.3% .032 264);
2595
2451
  --cirth-progress-color: var(--cirth-primary-background);
2596
- --cirth-tooltip-background-color: var(--cirth-contrast-background);
2597
- --cirth-tooltip-color: var(--cirth-contrast-inverse);
2598
- --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");
2599
- --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");
2452
+ --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");
2453
+ --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");
2600
2454
  }
2601
2455
 
2602
- .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"]) {
2456
+ .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"]) {
2603
2457
  --cirth-form-element-focus-color: var(--cirth-primary-focus);
2604
2458
  }
2605
2459
 
2606
2460
  @media only screen and (prefers-color-scheme: dark) {
2607
- .cirth:not([data-theme]) {
2461
+ .cirth:where(:not([data-theme])) {
2608
2462
  --lightningcss-light: ;
2609
2463
  --lightningcss-dark: initial;
2610
2464
  color-scheme: dark;
@@ -2704,25 +2558,26 @@
2704
2558
  --cirth-dropdown-hover-background-color: oklch(26.7% .011 264);
2705
2559
  --cirth-loading-spinner-opacity: var(--cirth-opacity-disabled);
2706
2560
  --cirth-modal-overlay-background-color: oklch(9% 0 312deg / var(--cirth-opacity-overlay));
2561
+ --cirth-meter-optimum-color: oklch(65.7% .125 160.59);
2562
+ --cirth-meter-suboptimum-color: oklch(70% .124 78);
2563
+ --cirth-meter-even-less-good-color: oklch(74.3% .133 29.73);
2707
2564
  --cirth-progress-background-color: oklch(26.7% .011 264);
2708
2565
  --cirth-progress-border-color: oklch(52.7% .032 264);
2709
2566
  --cirth-progress-color: oklch(61.3% .113 69.35);
2710
- --cirth-tooltip-background-color: var(--cirth-contrast-background);
2711
- --cirth-tooltip-color: var(--cirth-contrast-inverse);
2712
- --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");
2713
- --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");
2567
+ --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");
2568
+ --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");
2714
2569
  }
2715
2570
 
2716
- .cirth:not([data-theme]) input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]) {
2571
+ .cirth:where(:not([data-theme])) input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]) {
2717
2572
  --cirth-form-element-focus-color: var(--cirth-primary-focus);
2718
2573
  }
2719
2574
 
2720
- .cirth:not([data-theme]) details summary[role="button"].contrast:not(.outline):after, .cirth:not([data-theme]) [aria-busy="true"]:not(input, select, textarea).contrast:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):not(.outline):before {
2575
+ .cirth:where(:not([data-theme])) details summary[role="button"].contrast:not(.outline):after, .cirth:where(:not([data-theme])) [aria-busy="true"]:not(input, select, textarea).contrast:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):not(.outline):before {
2721
2576
  filter: brightness(0);
2722
2577
  }
2723
2578
  }
2724
2579
 
2725
- .cirth[data-theme="dark"], .cirth [data-theme="dark"] {
2580
+ .cirth:where([data-theme="dark"]), .cirth :where([data-theme="dark"]) {
2726
2581
  --lightningcss-light: ;
2727
2582
  --lightningcss-dark: initial;
2728
2583
  color-scheme: dark;
@@ -2822,23 +2677,258 @@
2822
2677
  --cirth-dropdown-hover-background-color: oklch(26.7% .011 264);
2823
2678
  --cirth-loading-spinner-opacity: var(--cirth-opacity-disabled);
2824
2679
  --cirth-modal-overlay-background-color: oklch(9% 0 312deg / var(--cirth-opacity-overlay));
2680
+ --cirth-meter-optimum-color: oklch(65.7% .125 160.59);
2681
+ --cirth-meter-suboptimum-color: oklch(70% .124 78);
2682
+ --cirth-meter-even-less-good-color: oklch(74.3% .133 29.73);
2825
2683
  --cirth-progress-background-color: oklch(26.7% .011 264);
2826
2684
  --cirth-progress-border-color: oklch(52.7% .032 264);
2827
2685
  --cirth-progress-color: oklch(61.3% .113 69.35);
2828
- --cirth-tooltip-background-color: var(--cirth-contrast-background);
2829
- --cirth-tooltip-color: var(--cirth-contrast-inverse);
2830
- --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");
2831
- --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");
2686
+ --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");
2687
+ --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");
2832
2688
  }
2833
2689
 
2834
- .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"]) {
2690
+ .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"]) {
2835
2691
  --cirth-form-element-focus-color: var(--cirth-primary-focus);
2836
2692
  }
2837
2693
 
2838
- .cirth[data-theme="dark"] details summary[role="button"].contrast:not(.outline):after, .cirth [data-theme="dark"] details summary[role="button"].contrast:not(.outline):after, .cirth[data-theme="dark"] [aria-busy="true"]:not(input, select, textarea).contrast:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):not(.outline):before, .cirth [data-theme="dark"] [aria-busy="true"]:not(input, select, textarea).contrast:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):not(.outline):before {
2694
+ .cirth:where([data-theme="dark"]) details summary[role="button"].contrast:not(.outline):after, .cirth :where([data-theme="dark"]) details summary[role="button"].contrast:not(.outline):after, .cirth:where([data-theme="dark"]) [aria-busy="true"]:not(input, select, textarea).contrast:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):not(.outline):before, .cirth :where([data-theme="dark"]) [aria-busy="true"]:not(input, select, textarea).contrast:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):not(.outline):before {
2839
2695
  filter: brightness(0);
2840
2696
  }
2841
2697
 
2842
2698
  .cirth progress, .cirth [type="checkbox"], .cirth [type="radio"], .cirth [type="range"] {
2843
2699
  accent-color: var(--cirth-primary);
2844
2700
  }
2701
+
2702
+ @media (prefers-contrast: more) {
2703
+ .cirth:where([data-theme="light"]), .cirth :where([data-theme="light"]), .cirth:where(:not([data-theme="dark"])) {
2704
+ --cirth-color: oklch(22.3% .006 264);
2705
+ --cirth-h1-color: var(--cirth-color);
2706
+ --cirth-h2-color: var(--cirth-color);
2707
+ --cirth-h3-color: var(--cirth-color);
2708
+ --cirth-h4-color: var(--cirth-color);
2709
+ --cirth-h5-color: var(--cirth-color);
2710
+ --cirth-h6-color: var(--cirth-color);
2711
+ --cirth-muted-color: oklch(39.7% .025 264);
2712
+ --cirth-secondary: oklch(39.7% .025 264);
2713
+ --cirth-code-color: oklch(35.3% .021 264);
2714
+ --cirth-link-visited-color: oklch(35.3% .021 264);
2715
+ --cirth-muted-border-color: oklch(57% .032 264);
2716
+ --cirth-form-element-border-color: oklch(39.7% .025 264);
2717
+ --cirth-form-element-invalid-border-color: oklch(48.3% .166 29.73);
2718
+ --cirth-form-element-valid-border-color: oklch(48.3% .092 160.59);
2719
+ --cirth-primary: oklch(39.7% .073 69.35);
2720
+ --cirth-primary-hover: oklch(31% .057 69.35);
2721
+ --cirth-primary-underline: var(--cirth-primary);
2722
+ --cirth-secondary-underline: var(--cirth-secondary);
2723
+ --cirth-contrast-underline: var(--cirth-contrast);
2724
+ --cirth-primary-focus: oklch(48.3% .089 69.35);
2725
+ --cirth-secondary-focus: oklch(48.3% .03 264);
2726
+ --cirth-contrast-focus: oklch(48.3% .03 264);
2727
+ --cirth-switch-background-color: oklch(48.3% .03 264);
2728
+ --cirth-progress-border-color: oklch(48.3% .03 264);
2729
+ --cirth-meter-optimum-color: oklch(44% .084 160.59);
2730
+ --cirth-meter-suboptimum-color: oklch(39.7% .07 78);
2731
+ --cirth-meter-even-less-good-color: oklch(35.3% .122 29.73);
2732
+ --cirth-dropdown-border-color: var(--cirth-muted-border-color);
2733
+ }
2734
+ }
2735
+
2736
+ @media only screen and (prefers-contrast: more) and (prefers-color-scheme: dark) {
2737
+ .cirth:where(:not([data-theme])) {
2738
+ --cirth-color: oklch(96% 0 264);
2739
+ --cirth-h1-color: var(--cirth-color);
2740
+ --cirth-h2-color: var(--cirth-color);
2741
+ --cirth-h3-color: var(--cirth-color);
2742
+ --cirth-h4-color: var(--cirth-color);
2743
+ --cirth-h5-color: var(--cirth-color);
2744
+ --cirth-h6-color: var(--cirth-color);
2745
+ --cirth-muted-color: oklch(78.7% .021 264);
2746
+ --cirth-secondary: oklch(78.7% .021 264);
2747
+ --cirth-code-color: oklch(83% .016 264);
2748
+ --cirth-link-visited-color: oklch(78.7% .021 264);
2749
+ --cirth-muted-border-color: oklch(57% .032 264);
2750
+ --cirth-card-border-color: var(--cirth-muted-border-color);
2751
+ --cirth-form-element-border-color: oklch(70% .028 264);
2752
+ --cirth-form-element-invalid-border-color: oklch(78.7% .106 29.73);
2753
+ --cirth-form-element-valid-border-color: oklch(78.7% .15 160.59);
2754
+ --cirth-primary: oklch(78.7% .146 69.35);
2755
+ --cirth-primary-hover: oklch(87.3% .082 69.35);
2756
+ --cirth-primary-underline: var(--cirth-primary);
2757
+ --cirth-secondary-underline: var(--cirth-secondary);
2758
+ --cirth-contrast-underline: var(--cirth-contrast);
2759
+ --cirth-primary-focus: oklch(70% .129 69.35);
2760
+ --cirth-secondary-focus: oklch(70% .028 264);
2761
+ --cirth-contrast-focus: oklch(87.3% .011 264);
2762
+ --cirth-switch-background-color: oklch(65.7% .03 264);
2763
+ --cirth-progress-border-color: oklch(70% .028 264);
2764
+ --cirth-meter-optimum-color: oklch(74.3% .142 160.59);
2765
+ --cirth-meter-suboptimum-color: oklch(78.7% .139 78);
2766
+ --cirth-meter-even-less-good-color: oklch(83% .081 29.73);
2767
+ --cirth-dropdown-border-color: var(--cirth-muted-border-color);
2768
+ }
2769
+ }
2770
+
2771
+ @media (prefers-contrast: more) {
2772
+ .cirth:where([data-theme="dark"]), .cirth :where([data-theme="dark"]) {
2773
+ --cirth-color: oklch(96% 0 264);
2774
+ --cirth-h1-color: var(--cirth-color);
2775
+ --cirth-h2-color: var(--cirth-color);
2776
+ --cirth-h3-color: var(--cirth-color);
2777
+ --cirth-h4-color: var(--cirth-color);
2778
+ --cirth-h5-color: var(--cirth-color);
2779
+ --cirth-h6-color: var(--cirth-color);
2780
+ --cirth-muted-color: oklch(78.7% .021 264);
2781
+ --cirth-secondary: oklch(78.7% .021 264);
2782
+ --cirth-code-color: oklch(83% .016 264);
2783
+ --cirth-link-visited-color: oklch(78.7% .021 264);
2784
+ --cirth-muted-border-color: oklch(57% .032 264);
2785
+ --cirth-card-border-color: var(--cirth-muted-border-color);
2786
+ --cirth-form-element-border-color: oklch(70% .028 264);
2787
+ --cirth-form-element-invalid-border-color: oklch(78.7% .106 29.73);
2788
+ --cirth-form-element-valid-border-color: oklch(78.7% .15 160.59);
2789
+ --cirth-primary: oklch(78.7% .146 69.35);
2790
+ --cirth-primary-hover: oklch(87.3% .082 69.35);
2791
+ --cirth-primary-underline: var(--cirth-primary);
2792
+ --cirth-secondary-underline: var(--cirth-secondary);
2793
+ --cirth-contrast-underline: var(--cirth-contrast);
2794
+ --cirth-primary-focus: oklch(70% .129 69.35);
2795
+ --cirth-secondary-focus: oklch(70% .028 264);
2796
+ --cirth-contrast-focus: oklch(87.3% .011 264);
2797
+ --cirth-switch-background-color: oklch(65.7% .03 264);
2798
+ --cirth-progress-border-color: oklch(70% .028 264);
2799
+ --cirth-meter-optimum-color: oklch(74.3% .142 160.59);
2800
+ --cirth-meter-suboptimum-color: oklch(78.7% .139 78);
2801
+ --cirth-meter-even-less-good-color: oklch(83% .081 29.73);
2802
+ --cirth-dropdown-border-color: var(--cirth-muted-border-color);
2803
+ }
2804
+ }
2805
+
2806
+ @media print {
2807
+ .cirth {
2808
+ --cirth-print-color: oklch(0% 0 0);
2809
+ --cirth-print-muted-color: oklch(48.3% .03 264);
2810
+ --cirth-print-border-color: oklch(61.3% .032 264);
2811
+ color: var(--cirth-print-color);
2812
+ --lightningcss-light: initial;
2813
+ --lightningcss-dark: ;
2814
+ --lightningcss-light: initial;
2815
+ --lightningcss-dark: ;
2816
+ color-scheme: light;
2817
+ --cirth-color: var(--cirth-print-color);
2818
+ --cirth-h1-color: var(--cirth-print-color);
2819
+ --cirth-h2-color: var(--cirth-print-color);
2820
+ --cirth-h3-color: var(--cirth-print-color);
2821
+ --cirth-h4-color: var(--cirth-print-color);
2822
+ --cirth-h5-color: var(--cirth-print-color);
2823
+ --cirth-h6-color: var(--cirth-print-color);
2824
+ --cirth-code-color: var(--cirth-print-color);
2825
+ --cirth-code-kbd-color: var(--cirth-print-color);
2826
+ --cirth-form-element-color: var(--cirth-print-color);
2827
+ --cirth-muted-color: var(--cirth-print-muted-color);
2828
+ --cirth-form-element-placeholder-color: var(--cirth-print-muted-color);
2829
+ --cirth-primary: var(--cirth-print-color);
2830
+ --cirth-primary-hover: var(--cirth-print-color);
2831
+ --cirth-primary-underline: var(--cirth-print-color);
2832
+ --cirth-secondary: var(--cirth-print-color);
2833
+ --cirth-secondary-underline: var(--cirth-print-color);
2834
+ --cirth-contrast: var(--cirth-print-color);
2835
+ --cirth-contrast-underline: var(--cirth-print-color);
2836
+ --cirth-link-visited-color: var(--cirth-print-color);
2837
+ --cirth-muted-border-color: var(--cirth-print-border-color);
2838
+ --cirth-form-element-border-color: var(--cirth-print-border-color);
2839
+ --cirth-box-shadow: none;
2840
+ --cirth-card-box-shadow: none;
2841
+ --cirth-card-background-color: transparent;
2842
+ --cirth-card-sectioning-background-color: transparent;
2843
+ --cirth-code-background-color: transparent;
2844
+ --cirth-code-kbd-background-color: transparent;
2845
+ --cirth-form-element-background-color: transparent;
2846
+ --cirth-form-element-active-background-color: transparent;
2847
+ --cirth-table-row-stripped-background-color: transparent;
2848
+ --cirth-modal-overlay-background-color: transparent;
2849
+ --cirth-dropdown-background-color: transparent;
2850
+ --cirth-dropdown-box-shadow: none;
2851
+ --cirth-ins-color: oklch(35.3% .067 160.59);
2852
+ --cirth-del-color: oklch(35.3% .122 29.73);
2853
+ --cirth-meter-optimum-color: oklch(52.7% .1 160.59);
2854
+ --cirth-meter-suboptimum-color: oklch(48.3% .086 78);
2855
+ --cirth-meter-even-less-good-color: oklch(44% .151 29.73);
2856
+ background: none;
2857
+ }
2858
+
2859
+ .cirth kbd {
2860
+ border: var(--cirth-border-width) solid var(--cirth-print-border-color);
2861
+ }
2862
+
2863
+ .cirth :is(button, [type="submit"], [type="reset"], [type="button"], [role="button"]) {
2864
+ border-color: var(--cirth-print-border-color);
2865
+ box-shadow: none;
2866
+ color: var(--cirth-print-color);
2867
+ background: none;
2868
+ }
2869
+
2870
+ .cirth [type="file"]::file-selector-button {
2871
+ border-color: var(--cirth-print-border-color);
2872
+ box-shadow: none;
2873
+ color: var(--cirth-print-color);
2874
+ background: none;
2875
+ }
2876
+
2877
+ .cirth :is(mark, meter, progress, [type="checkbox"], [type="radio"]) {
2878
+ -webkit-print-color-adjust: exact;
2879
+ print-color-adjust: exact;
2880
+ }
2881
+
2882
+ .cirth a[href^="http"]:not([role="button"], nav a):after {
2883
+ content: " (" attr(href) ")";
2884
+ color: var(--cirth-print-muted-color);
2885
+ font-size: var(--cirth-font-size-sm);
2886
+ word-break: break-all;
2887
+ }
2888
+
2889
+ .cirth thead {
2890
+ display: table-header-group;
2891
+ }
2892
+
2893
+ .cirth tfoot {
2894
+ display: table-footer-group;
2895
+ }
2896
+
2897
+ .cirth tr {
2898
+ break-inside: avoid;
2899
+ }
2900
+
2901
+ .cirth pre {
2902
+ white-space: pre-wrap;
2903
+ overflow: visible;
2904
+ }
2905
+
2906
+ .cirth .overflow-auto {
2907
+ overflow: visible;
2908
+ }
2909
+
2910
+ .cirth dialog {
2911
+ backdrop-filter: none;
2912
+ min-width: 0;
2913
+ min-height: 0;
2914
+ position: static;
2915
+ }
2916
+
2917
+ .cirth dialog > article {
2918
+ max-height: none;
2919
+ overflow: visible;
2920
+ }
2921
+
2922
+ .cirth :is(h1, h2, h3, h4, h5, h6) {
2923
+ break-after: avoid;
2924
+ }
2925
+
2926
+ .cirth :is(figure, img) {
2927
+ break-inside: avoid;
2928
+ }
2929
+
2930
+ .cirth :is(blockquote, li, p) {
2931
+ orphans: 3;
2932
+ widows: 3;
2933
+ }
2934
+ }