Debian Codegraph @

www/src/assets/css/reset.css

raw symbols SCIP
1 /* Tailwind v4 preflight. */
2
3 /* 1. Prevent padding and border from affecting element width.
4 2. Remove default margins and padding.
5 3. Reset all borders. */
6 *,
7 ::after,
8 ::before,
9 ::backdrop,
10 ::file-selector-button {
11 box-sizing: border-box;
12 margin: 0;
13 padding: 0;
14 border: 0 solid;
15 }
16
17 /* 1. Consistent line-height.
18 2. Prevent font-size adjust after iOS orientation change.
19 3. More readable tab size.
20 4-6. User-configured sans font family / feature / variation.
21 7. Disable iOS tap highlights. */
22 html,
23 :host {
24 line-height: 1.5;
25 -webkit-text-size-adjust: 100%;
26 tab-size: 4;
27 font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif,
28 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
29 font-feature-settings: normal;
30 font-variation-settings: normal;
31 -webkit-tap-highlight-color: transparent;
32 }
33
34 hr {
35 height: 0;
36 color: inherit;
37 border-top-width: 1px;
38 }
39
40 abbr:where([title]) {
41 -webkit-text-decoration: underline dotted;
42 text-decoration: underline dotted;
43 }
44
45 /* Remove default heading sizes & weights — let components own typography. */
46 h1, h2, h3, h4, h5, h6 {
47 font-size: inherit;
48 font-weight: inherit;
49 }
50
51 /* Opt-in link styling. */
52 a {
53 color: inherit;
54 -webkit-text-decoration: inherit;
55 text-decoration: inherit;
56 }
57
58 b, strong {
59 font-weight: bolder;
60 }
61
62 /* Mono font family. */
63 code, kbd, samp, pre {
64 font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco,
65 Consolas, 'Liberation Mono', 'Courier New', monospace);
66 font-feature-settings: normal;
67 font-variation-settings: normal;
68 font-size: 1em;
69 }
70
71 small { font-size: 80%; }
72
73 sub, sup {
74 font-size: 75%;
75 line-height: 0;
76 position: relative;
77 vertical-align: baseline;
78 }
79 sub { bottom: -0.25em; }
80 sup { top: -0.5em; }
81
82 table {
83 text-indent: 0;
84 border-color: inherit;
85 border-collapse: collapse;
86 }
87
88 :-moz-focusring { outline: auto; }
89 progress { vertical-align: baseline; }
90 summary { display: list-item; }
91
92 ol, ul, menu { list-style: none; }
93
94 img, svg, video, canvas, audio, iframe, embed, object {
95 display: block;
96 vertical-align: middle;
97 }
98
99 img, video {
100 max-width: 100%;
101 height: auto;
102 }
103
104 button, input, select, optgroup, textarea, ::file-selector-button {
105 font: inherit;
106 font-feature-settings: inherit;
107 font-variation-settings: inherit;
108 letter-spacing: inherit;
109 color: inherit;
110 border-radius: 0;
111 background-color: transparent;
112 opacity: 1;
113 }
114
115 :where(select:is([multiple], [size])) optgroup { font-weight: bolder; }
116 :where(select:is([multiple], [size])) optgroup option { padding-inline-start: 20px; }
117 ::file-selector-button { margin-inline-end: 4px; }
118
119 ::placeholder { opacity: 1; }
120
121 @supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */
122 or (contain-intrinsic-size: 1px) /* Safari 17+ */ {
123 ::placeholder { color: color-mix(in oklab, currentcolor 50%, transparent); }
124 }
125
126 textarea { resize: vertical; }
127 ::-webkit-search-decoration { -webkit-appearance: none; }
128
129 ::-webkit-date-and-time-value {
130 min-height: 1lh;
131 text-align: inherit;
132 }
133 ::-webkit-datetime-edit { display: inline-flex; }
134 ::-webkit-datetime-edit-fields-wrapper { padding: 0; }
135 ::-webkit-datetime-edit,
136 ::-webkit-datetime-edit-year-field,
137 ::-webkit-datetime-edit-month-field,
138 ::-webkit-datetime-edit-day-field,
139 ::-webkit-datetime-edit-hour-field,
140 ::-webkit-datetime-edit-minute-field,
141 ::-webkit-datetime-edit-second-field,
142 ::-webkit-datetime-edit-millisecond-field,
143 ::-webkit-datetime-edit-meridiem-field { padding-block: 0; }
144 ::-webkit-calendar-picker-indicator { line-height: 1; }
145
146 :-moz-ui-invalid { box-shadow: none; }
147
148 button,
149 input:where([type='button'], [type='reset'], [type='submit']),
150 ::file-selector-button {
151 appearance: button;
152 }
153
154 ::-webkit-inner-spin-button,
155 ::-webkit-outer-spin-button {
156 height: auto;
157 }
158
159 [hidden]:where(:not([hidden='until-found'])) {
160 display: none !important;
161 }
162
163 /* Respect prefers-reduced-motion (was in input.css base layer). */
164 @media (prefers-reduced-motion: reduce) {
165 *, *::before, *::after {
166 animation-duration: 0.01ms !important;
167 animation-iteration-count: 1 !important;
168 transition-duration: 0.01ms !important;
169 scroll-behavior: auto !important;
170 }
171 }