|
| 1 | +/* Sensible defaults modified from tailwind, since imports can't be done conditionally based on class or lack there of */ |
| 2 | + |
| 3 | +body:not(.no-theme) { |
| 4 | + box-sizing: border-box; |
| 5 | + margin: 0; |
| 6 | + padding: 0; |
| 7 | + border: solid 0; |
| 8 | + |
| 9 | + *, |
| 10 | + ::after, |
| 11 | + ::before, |
| 12 | + ::backdrop, |
| 13 | + ::file-selector-button { |
| 14 | + box-sizing: border-box; |
| 15 | + margin: 0; |
| 16 | + padding: 0; |
| 17 | + border: solid 0; |
| 18 | + } |
| 19 | +} |
| 20 | + |
| 21 | +hr { |
| 22 | + height: 0; |
| 23 | + color: inherit; |
| 24 | + border-top-width: 1px; |
| 25 | +} |
| 26 | + |
| 27 | +abbr:where([title]) { |
| 28 | + -webkit-text-decoration: underline dotted; |
| 29 | + text-decoration: underline dotted; |
| 30 | +} |
| 31 | + |
| 32 | +h1, |
| 33 | +h2, |
| 34 | +h3, |
| 35 | +h4, |
| 36 | +h5, |
| 37 | +h6 { |
| 38 | + font-size: inherit; |
| 39 | + font-weight: inherit; |
| 40 | +} |
| 41 | + |
| 42 | +a { |
| 43 | + color: inherit; |
| 44 | + -webkit-text-decoration: inherit; |
| 45 | + text-decoration: inherit; |
| 46 | +} |
| 47 | + |
| 48 | +b, |
| 49 | +strong { |
| 50 | + font-weight: bolder; |
| 51 | +} |
| 52 | + |
| 53 | +code, |
| 54 | +kbd, |
| 55 | +samp, |
| 56 | +pre { |
| 57 | + font-size: 1em; |
| 58 | +} |
| 59 | + |
| 60 | +small { |
| 61 | + font-size: 80%; |
| 62 | +} |
| 63 | + |
| 64 | +sub, |
| 65 | +sup { |
| 66 | + font-size: 75%; |
| 67 | + line-height: 0; |
| 68 | + position: relative; |
| 69 | + vertical-align: baseline; |
| 70 | +} |
| 71 | + |
| 72 | +sub { |
| 73 | + bottom: -0.25em; |
| 74 | +} |
| 75 | + |
| 76 | +sup { |
| 77 | + top: -0.5em; |
| 78 | +} |
| 79 | + |
| 80 | +table { |
| 81 | + text-indent: 0; |
| 82 | + border-color: inherit; |
| 83 | + border-collapse: collapse; |
| 84 | +} |
| 85 | + |
| 86 | +:-moz-focusring { |
| 87 | + outline: auto; |
| 88 | +} |
| 89 | + |
| 90 | +progress { |
| 91 | + vertical-align: baseline; |
| 92 | +} |
| 93 | + |
| 94 | +summary { |
| 95 | + display: list-item; |
| 96 | +} |
| 97 | + |
| 98 | +ol, |
| 99 | +ul, |
| 100 | +menu { |
| 101 | + list-style: none; |
| 102 | +} |
| 103 | + |
| 104 | +img, |
| 105 | +svg, |
| 106 | +video, |
| 107 | +canvas, |
| 108 | +audio, |
| 109 | +iframe, |
| 110 | +embed, |
| 111 | +object { |
| 112 | + display: block; |
| 113 | + vertical-align: middle; |
| 114 | +} |
| 115 | + |
| 116 | +img, |
| 117 | +video { |
| 118 | + max-width: 100%; |
| 119 | + height: auto; |
| 120 | +} |
| 121 | + |
| 122 | +button, |
| 123 | +input, |
| 124 | +select, |
| 125 | +optgroup, |
| 126 | +textarea, |
| 127 | +::file-selector-button { |
| 128 | + font: inherit; |
| 129 | + font-feature-settings: inherit; |
| 130 | + font-variation-settings: inherit; |
| 131 | + letter-spacing: inherit; |
| 132 | + color: inherit; |
| 133 | + border-radius: 0; |
| 134 | + background-color: transparent; |
| 135 | + opacity: 1; |
| 136 | +} |
| 137 | + |
| 138 | +:where(select:is([multiple], [size])) optgroup { |
| 139 | + font-weight: bolder; |
| 140 | +} |
| 141 | + |
| 142 | +:where(select:is([multiple], [size])) optgroup option { |
| 143 | + padding-inline-start: 20px; |
| 144 | +} |
| 145 | + |
| 146 | +::file-selector-button { |
| 147 | + margin-inline-end: 4px; |
| 148 | +} |
| 149 | + |
| 150 | +::placeholder { |
| 151 | + opacity: 1; |
| 152 | +} |
| 153 | + |
| 154 | +@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or |
| 155 | + (contain-intrinsic-size: 1px) /* Safari 17+ */ { |
| 156 | + ::placeholder { |
| 157 | + color: color-mix(in oklab, currentcolor 50%, transparent); |
| 158 | + } |
| 159 | +} |
| 160 | + |
| 161 | +textarea { |
| 162 | + resize: vertical; |
| 163 | +} |
| 164 | + |
| 165 | +::-webkit-search-decoration { |
| 166 | + -webkit-appearance: none; |
| 167 | +} |
| 168 | + |
| 169 | +::-webkit-date-and-time-value { |
| 170 | + min-height: 1lh; |
| 171 | + text-align: inherit; |
| 172 | +} |
| 173 | + |
| 174 | +::-webkit-datetime-edit { |
| 175 | + display: inline-flex; |
| 176 | +} |
| 177 | +::-webkit-datetime-edit-fields-wrapper { |
| 178 | + padding: 0; |
| 179 | +} |
| 180 | + |
| 181 | +::-webkit-datetime-edit, |
| 182 | +::-webkit-datetime-edit-year-field, |
| 183 | +::-webkit-datetime-edit-month-field, |
| 184 | +::-webkit-datetime-edit-day-field, |
| 185 | +::-webkit-datetime-edit-hour-field, |
| 186 | +::-webkit-datetime-edit-minute-field, |
| 187 | +::-webkit-datetime-edit-second-field, |
| 188 | +::-webkit-datetime-edit-millisecond-field, |
| 189 | +::-webkit-datetime-edit-meridiem-field { |
| 190 | + padding-block: 0; |
| 191 | +} |
| 192 | + |
| 193 | +::-webkit-calendar-picker-indicator { |
| 194 | + line-height: 1; |
| 195 | +} |
| 196 | + |
| 197 | +:-moz-ui-invalid { |
| 198 | + box-shadow: none; |
| 199 | +} |
| 200 | + |
| 201 | +button, |
| 202 | +input:where([type='button'], [type='reset'], [type='submit']), |
| 203 | +::file-selector-button { |
| 204 | + appearance: button; |
| 205 | +} |
| 206 | + |
| 207 | +::-webkit-inner-spin-button, |
| 208 | +::-webkit-outer-spin-button { |
| 209 | + height: auto; |
| 210 | +} |
| 211 | + |
| 212 | +[hidden]:where(:not([hidden='until-found'])) { |
| 213 | + display: none !important; |
| 214 | +} |
0 commit comments