@byline/ui 1.7.0 → 1.7.2

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.
Files changed (103) hide show
  1. package/dist/components/accordion/accordion_module.css +3 -1
  2. package/dist/components/avatar/avatar_module.css +3 -1
  3. package/dist/components/badge/badge_module.css +3 -1
  4. package/dist/components/button/button-group_module.css +3 -1
  5. package/dist/components/button/button_module.css +3 -1
  6. package/dist/components/button/combo-button_module.css +3 -1
  7. package/dist/components/button/control-buttons_module.css +3 -1
  8. package/dist/components/button/copy-button_module.css +3 -1
  9. package/dist/components/card/card_module.css +3 -1
  10. package/dist/components/chips/chip_module.css +3 -1
  11. package/dist/components/container/container_module.css +3 -1
  12. package/dist/components/dropdown/dropdown_module.css +3 -1
  13. package/dist/components/hamburger/hamburger_module.css +3 -1
  14. package/dist/components/inputs/autocomplete_module.css +3 -1
  15. package/dist/components/inputs/calendar_module.css +3 -1
  16. package/dist/components/inputs/checkbox-group_module.css +3 -1
  17. package/dist/components/inputs/checkbox_module.css +3 -1
  18. package/dist/components/inputs/error-text_module.css +3 -1
  19. package/dist/components/inputs/help-text_module.css +3 -1
  20. package/dist/components/inputs/input-adornment_module.css +3 -1
  21. package/dist/components/inputs/input_module.css +3 -1
  22. package/dist/components/inputs/label_module.css +3 -1
  23. package/dist/components/inputs/radio-group_module.css +3 -1
  24. package/dist/components/inputs/select_module.css +3 -1
  25. package/dist/components/inputs/text-area_module.css +3 -1
  26. package/dist/components/notifications/alert_module.css +3 -1
  27. package/dist/components/notifications/toast_module.css +3 -1
  28. package/dist/components/pager/pagination_module.css +3 -1
  29. package/dist/components/scroll-area/scroll-area_module.css +3 -1
  30. package/dist/components/scroll-to-top/scroll-to-top_module.css +3 -1
  31. package/dist/components/section/section_module.css +3 -1
  32. package/dist/components/shimmer/shimmer_module.css +3 -1
  33. package/dist/components/table/table_module.css +3 -1
  34. package/dist/components/tabs/tabs_module.css +3 -1
  35. package/dist/components/tooltip/tooltip_module.css +3 -1
  36. package/dist/icons/icons_module.css +3 -1
  37. package/dist/loaders/ellipses_module.css +3 -1
  38. package/dist/loaders/ring_module.css +3 -1
  39. package/dist/loaders/spinner_module.css +3 -1
  40. package/dist/styles/reset.css +172 -166
  41. package/dist/styles/styles.css +181 -1506
  42. package/dist/styles/typography.css +243 -237
  43. package/dist/widgets/datepicker/datepicker_module.css +3 -1
  44. package/dist/widgets/drawer/drawer_module.css +3 -1
  45. package/dist/widgets/image-lightbox/image-lightbox_module.css +3 -1
  46. package/dist/widgets/modal/modal_module.css +3 -1
  47. package/dist/widgets/timeline/timeline_module.css +3 -1
  48. package/package.json +4 -4
  49. package/src/components/accordion/accordion.module.css +3 -2
  50. package/src/components/avatar/avatar.module.css +3 -6
  51. package/src/components/badge/badge.module.css +3 -6
  52. package/src/components/button/button-group.module.css +3 -2
  53. package/src/components/button/button.module.css +3 -6
  54. package/src/components/button/combo-button.module.css +3 -2
  55. package/src/components/button/control-buttons.module.css +3 -2
  56. package/src/components/button/copy-button.module.css +3 -6
  57. package/src/components/card/card.module.css +3 -6
  58. package/src/components/chips/chip.module.css +3 -6
  59. package/src/components/container/container.module.css +3 -6
  60. package/src/components/dropdown/dropdown.module.css +3 -6
  61. package/src/components/hamburger/hamburger.module.css +3 -6
  62. package/src/components/inputs/autocomplete.module.css +3 -6
  63. package/src/components/inputs/calendar.module.css +3 -6
  64. package/src/components/inputs/checkbox-group.module.css +3 -6
  65. package/src/components/inputs/checkbox.module.css +3 -6
  66. package/src/components/inputs/error-text.module.css +3 -6
  67. package/src/components/inputs/help-text.module.css +3 -6
  68. package/src/components/inputs/input-adornment.module.css +3 -6
  69. package/src/components/inputs/input.module.css +3 -6
  70. package/src/components/inputs/label.module.css +3 -6
  71. package/src/components/inputs/radio-group.module.css +3 -6
  72. package/src/components/inputs/select.module.css +3 -6
  73. package/src/components/inputs/text-area.module.css +3 -6
  74. package/src/components/notifications/alert.module.css +3 -6
  75. package/src/components/notifications/toast.module.css +3 -6
  76. package/src/components/pager/pagination.module.css +3 -6
  77. package/src/components/scroll-area/scroll-area.module.css +3 -6
  78. package/src/components/scroll-to-top/scroll-to-top.module.css +3 -2
  79. package/src/components/section/section.module.css +3 -6
  80. package/src/components/shimmer/shimmer.module.css +3 -6
  81. package/src/components/table/table.module.css +3 -6
  82. package/src/components/tabs/tabs.module.css +3 -6
  83. package/src/components/tooltip/tooltip.module.css +3 -6
  84. package/src/icons/icons.module.css +3 -2
  85. package/src/loaders/ellipses.module.css +3 -6
  86. package/src/loaders/ring.module.css +3 -6
  87. package/src/loaders/spinner.module.css +3 -6
  88. package/src/styles/components/hamburger.css +3 -6
  89. package/src/styles/reset.css +337 -312
  90. package/src/styles/styles.css +3 -7
  91. package/src/styles/theme/autofill.css +53 -62
  92. package/src/styles/theme/defaults.css +67 -55
  93. package/src/styles/theme/scrollers.css +48 -39
  94. package/src/styles/typography/prose.css +270 -265
  95. package/src/styles/typography.css +20 -14
  96. package/src/widgets/datepicker/datepicker.module.css +3 -2
  97. package/src/widgets/drawer/drawer.module.css +3 -2
  98. package/src/widgets/image-lightbox/image-lightbox.module.css +3 -2
  99. package/src/widgets/modal/modal.module.css +3 -2
  100. package/src/widgets/timeline/timeline.module.css +3 -6
  101. package/src/styles/utils/scroll-layout-shift.css +0 -9
  102. package/src/styles/utils/utility-classes.css +0 -1395
  103. package/src/styles/utils/utils.css +0 -2
@@ -1,33 +1,54 @@
1
- /*
1
+ /*
2
2
  * Based on Tailwind reset / preflight
3
- * If used in a tailwind project, turn preflight off.
4
3
  * Copyright (c) Tailwind Labs, Inc.
4
+ *
5
+ * Scoped to .byline-ui so the reset only applies inside that boundary.
6
+ * Place .byline-ui on the admin layout wrapper to apply it to the admin
7
+ * area only, or on <html> to apply it everywhere (in which case the host
8
+ * should NOT also import tailwindcss/preflight.css).
9
+ *
10
+ * The preamble below pins the cascade-layer order, interleaving byline
11
+ * layers with their Tailwind equivalents by type so each byline layer sits
12
+ * just above its matching Tailwind layer:
13
+ * base < byline-base < components < byline-components < byline-functional
14
+ * < utilities < byline-utilities < theme < byline-theme < byline-typography
15
+ *
16
+ * This ensures byline-base beats Tailwind preflight, byline-components beats
17
+ * Tailwind components, byline-utilities beats Tailwind utilities — each in
18
+ * their own "tier" — rather than every byline layer winning over every
19
+ * Tailwind layer (which would let byline-base win over Tailwind utilities).
20
+ *
21
+ * Hosts using Tailwind don't need to declare layer order themselves.
5
22
  */
23
+ @layer base, byline-base, components, byline-components,
24
+ byline-functional, utilities, byline-utilities,
25
+ theme, byline-theme, byline-typography;
26
+
6
27
  @layer byline-base {
7
- /*
8
- 1. Prevent padding and border from affecting element width. (https: //github.com/mozdevs/cssremedy/issues/4)
9
- 2. Allow adding a border to an element by just adding a border-width. (https: //github.com/tailwindcss/tailwindcss/pull/116)
10
-
11
- */
12
- *,
13
- ::before,
14
- ::after {
15
- box-sizing: border-box;
16
- /* 1 */
17
- border-width: 0;
18
- /* 2 */
19
- border-style: solid;
20
- /* 2 */
21
- border-color: #e5e7eb;
22
- /* 2 */
23
- }
28
+ @scope (.byline-ui) {
29
+ /*
30
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
31
+ 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
32
+ */
33
+ *,
34
+ ::before,
35
+ ::after {
36
+ box-sizing: border-box;
37
+ /* 1 */
38
+ border-width: 0;
39
+ /* 2 */
40
+ border-style: solid;
41
+ /* 2 */
42
+ border-color: #e5e7eb;
43
+ /* 2 */
44
+ }
24
45
 
25
- ::before,
26
- ::after {
27
- --tw-content: "";
28
- }
46
+ ::before,
47
+ ::after {
48
+ --tw-content: "";
49
+ }
29
50
 
30
- /*
51
+ /*
31
52
  1. Use a consistent sensible line-height in all browsers.
32
53
  2. Prevent adjustments of font size after orientation changes in iOS.
33
54
  3. Use a more readable tab size.
@@ -35,432 +56,436 @@
35
56
  5. Use the user's configured `sans` font-feature-settings by default.
36
57
  6. Use the user's configured `sans` font-variation-settings by default.
37
58
  7. Disable tap highlights on iOS
38
- */
39
59
 
40
- html,
41
- :host {
42
- scroll-behavior: smooth;
43
-
44
- line-height: 1.5;
45
- /* 1 */
46
- -webkit-text-size-adjust: 100%;
47
- /* 2 */
48
- -moz-tab-size: 4;
49
- /* 3 */
50
- -o-tab-size: 4;
51
- tab-size: 4;
52
- /* 3 */
53
- font-family:
54
- Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
55
- "Segoe UI Symbol", "Noto Color Emoji";
56
- /* 4 */
57
- font-feature-settings: normal;
58
- /* 5 */
59
- font-variation-settings: normal;
60
- /* 6 */
61
- -webkit-tap-highlight-color: transparent;
62
- /* 7 */
63
- }
60
+ `:scope` matches the scope root (a wrapper div in admin-only mode, or
61
+ <html> in whole-app mode). Descendants inherit these.
62
+ */
63
+ :scope,
64
+ :host {
65
+ scroll-behavior: smooth;
66
+
67
+ line-height: 1.5;
68
+ /* 1 */
69
+ -webkit-text-size-adjust: 100%;
70
+ /* 2 */
71
+ -moz-tab-size: 4;
72
+ /* 3 */
73
+ -o-tab-size: 4;
74
+ tab-size: 4;
75
+ /* 3 */
76
+ font-family:
77
+ Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
78
+ "Segoe UI Symbol", "Noto Color Emoji";
79
+ /* 4 */
80
+ font-feature-settings: normal;
81
+ /* 5 */
82
+ font-variation-settings: normal;
83
+ /* 6 */
84
+ -webkit-tap-highlight-color: transparent;
85
+ /* 7 */
86
+ }
64
87
 
65
- /*
88
+ /*
66
89
  1. Remove the margin in all browsers.
67
- 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
90
+ 2. Inherit line-height from the scope root so users can set them as a class directly on the root element.
91
+ (No-op in admin-only mode where <body> is outside the scope; effective in whole-app mode.)
68
92
  */
69
93
 
70
- body {
71
- margin: 0;
72
- /* 1 */
73
- line-height: inherit;
74
- /* 2 */
75
- }
94
+ body {
95
+ margin: 0;
96
+ /* 1 */
97
+ line-height: inherit;
98
+ /* 2 */
99
+ }
76
100
 
77
- /*
101
+ /*
78
102
  1. Add the correct height in Firefox.
79
103
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
80
104
  3. Ensure horizontal rules are visible by default.
81
105
  */
82
106
 
83
- hr {
84
- height: 0;
85
- /* 1 */
86
- color: inherit;
87
- /* 2 */
88
- border-top-width: 1px;
89
- /* 3 */
90
- }
107
+ hr {
108
+ height: 0;
109
+ /* 1 */
110
+ color: inherit;
111
+ /* 2 */
112
+ border-top-width: 1px;
113
+ /* 3 */
114
+ }
91
115
 
92
- /*
116
+ /*
93
117
  Add the correct text decoration in Chrome, Edge, and Safari.
94
118
  */
95
119
 
96
- abbr:where([title]) {
97
- -webkit-text-decoration: underline dotted;
98
- text-decoration: underline dotted;
99
- }
120
+ abbr:where([title]) {
121
+ -webkit-text-decoration: underline dotted;
122
+ text-decoration: underline dotted;
123
+ }
100
124
 
101
- /*
125
+ /*
102
126
  Remove the default font size and weight for headings.
103
127
  */
104
128
 
105
- h1,
106
- h2,
107
- h3,
108
- h4,
109
- h5,
110
- h6 {
111
- font-size: inherit;
112
- font-weight: inherit;
113
- }
129
+ h1,
130
+ h2,
131
+ h3,
132
+ h4,
133
+ h5,
134
+ h6 {
135
+ font-size: inherit;
136
+ font-weight: inherit;
137
+ }
114
138
 
115
- /*
139
+ /*
116
140
  Reset links to optimize for opt-in styling instead of opt-out.
117
141
  */
118
142
 
119
- a {
120
- color: inherit;
121
- text-decoration: inherit;
122
- }
143
+ a {
144
+ color: inherit;
145
+ text-decoration: inherit;
146
+ }
123
147
 
124
- /*
148
+ /*
125
149
  Add the correct font weight in Edge and Safari.
126
150
  */
127
151
 
128
- b,
129
- strong {
130
- font-weight: bolder;
131
- }
152
+ b,
153
+ strong {
154
+ font-weight: bolder;
155
+ }
132
156
 
133
- /*
157
+ /*
134
158
  1. Use the user's configured `mono` font-family by default.
135
159
  2. Use the user's configured `mono` font-feature-settings by default.
136
160
  3. Use the user's configured `mono` font-variation-settings by default.
137
161
  4. Correct the odd `em` font sizing in all browsers.
138
162
  */
139
163
 
140
- code,
141
- kbd,
142
- samp,
143
- pre {
144
- font-family:
145
- "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
146
- "Courier New", monospace;
147
- /* 1 */
148
- font-feature-settings: normal;
149
- /* 2 */
150
- font-variation-settings: normal;
151
- /* 3 */
152
- font-size: 1em;
153
- /* 4 */
154
- }
164
+ code,
165
+ kbd,
166
+ samp,
167
+ pre {
168
+ font-family:
169
+ "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
170
+ "Courier New", monospace;
171
+ /* 1 */
172
+ font-feature-settings: normal;
173
+ /* 2 */
174
+ font-variation-settings: normal;
175
+ /* 3 */
176
+ font-size: 1em;
177
+ /* 4 */
178
+ }
155
179
 
156
- /*
180
+ /*
157
181
  Add the correct font size in all browsers.
158
182
  */
159
183
 
160
- small {
161
- font-size: 80%;
162
- }
184
+ small {
185
+ font-size: 80%;
186
+ }
163
187
 
164
- /*
188
+ /*
165
189
  Prevent `sub` and `sup` elements from affecting the line height in all browsers.
166
190
  */
167
191
 
168
- sub,
169
- sup {
170
- font-size: 75%;
171
- line-height: 0;
172
- position: relative;
173
- vertical-align: baseline;
174
- }
192
+ sub,
193
+ sup {
194
+ font-size: 75%;
195
+ line-height: 0;
196
+ position: relative;
197
+ vertical-align: baseline;
198
+ }
175
199
 
176
- sub {
177
- bottom: -0.25em;
178
- }
200
+ sub {
201
+ bottom: -0.25em;
202
+ }
179
203
 
180
- sup {
181
- top: -0.5em;
182
- }
204
+ sup {
205
+ top: -0.5em;
206
+ }
183
207
 
184
- /*
208
+ /*
185
209
  1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
186
210
  2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
187
211
  3. Remove gaps between table borders by default.
188
212
  */
189
213
 
190
- table {
191
- text-indent: 0;
192
- /* 1 */
193
- border-color: inherit;
194
- /* 2 */
195
- border-collapse: collapse;
196
- /* 3 */
197
- }
214
+ table {
215
+ text-indent: 0;
216
+ /* 1 */
217
+ border-color: inherit;
218
+ /* 2 */
219
+ border-collapse: collapse;
220
+ /* 3 */
221
+ }
198
222
 
199
- /*
223
+ /*
200
224
  1. Change the font styles in all browsers.
201
225
  2. Remove the margin in Firefox and Safari.
202
226
  3. Remove default padding in all browsers.
203
227
  */
204
228
 
205
- button,
206
- input,
207
- optgroup,
208
- select,
209
- textarea {
210
- font-family: inherit;
211
- /* 1 */
212
- font-feature-settings: inherit;
213
- /* 1 */
214
- font-variation-settings: inherit;
215
- /* 1 */
216
- font-size: 100%;
217
- /* 1 */
218
- font-weight: inherit;
219
- /* 1 */
220
- line-height: inherit;
221
- /* 1 */
222
- letter-spacing: inherit;
223
- /* 1 */
224
- color: inherit;
225
- /* 1 */
226
- margin: 0;
227
- /* 2 */
228
- padding: 0;
229
- /* 3 */
230
- }
229
+ button,
230
+ input,
231
+ optgroup,
232
+ select,
233
+ textarea {
234
+ font-family: inherit;
235
+ /* 1 */
236
+ font-feature-settings: inherit;
237
+ /* 1 */
238
+ font-variation-settings: inherit;
239
+ /* 1 */
240
+ font-size: 100%;
241
+ /* 1 */
242
+ font-weight: inherit;
243
+ /* 1 */
244
+ line-height: inherit;
245
+ /* 1 */
246
+ letter-spacing: inherit;
247
+ /* 1 */
248
+ color: inherit;
249
+ /* 1 */
250
+ margin: 0;
251
+ /* 2 */
252
+ padding: 0;
253
+ /* 3 */
254
+ }
231
255
 
232
- /*
256
+ /*
233
257
  * Remove the inheritance of text transform in Edge and Firefox.
234
258
  */
235
259
 
236
- button,
237
- select {
238
- text-transform: none;
239
- }
260
+ button,
261
+ select {
262
+ text-transform: none;
263
+ }
240
264
 
241
- /*
265
+ /*
242
266
  1. Correct the inability to style clickable types in iOS and Safari.
243
267
  2. Remove default button styles.
244
268
  */
245
269
 
246
- button,
247
- input:where([type="button"]),
248
- input:where([type="reset"]),
249
- input:where([type="submit"]) {
250
- -webkit-appearance: button;
251
- /* 1 */
252
- background-color: transparent;
253
- /* 2 */
254
- background-image: none;
255
- /* 2 */
256
- }
270
+ button,
271
+ input:where([type="button"]),
272
+ input:where([type="reset"]),
273
+ input:where([type="submit"]) {
274
+ -webkit-appearance: button;
275
+ /* 1 */
276
+ background-color: transparent;
277
+ /* 2 */
278
+ background-image: none;
279
+ /* 2 */
280
+ }
257
281
 
258
- /*
282
+ /*
259
283
  Use the modern Firefox focus style for all focusable elements.
260
284
  */
261
285
 
262
- :-moz-focusring {
263
- outline: auto;
264
- }
286
+ :-moz-focusring {
287
+ outline: auto;
288
+ }
265
289
 
266
- /*
290
+ /*
267
291
  Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
268
292
  */
269
293
 
270
- :-moz-ui-invalid {
271
- box-shadow: none;
272
- }
294
+ :-moz-ui-invalid {
295
+ box-shadow: none;
296
+ }
273
297
 
274
- /*
298
+ /*
275
299
  Add the correct vertical alignment in Chrome and Firefox.
276
300
  */
277
301
 
278
- progress {
279
- vertical-align: baseline;
280
- }
302
+ progress {
303
+ vertical-align: baseline;
304
+ }
281
305
 
282
- /*
306
+ /*
283
307
  Correct the cursor style of increment and decrement buttons in Safari.
284
308
  */
285
309
 
286
- ::-webkit-inner-spin-button,
287
- ::-webkit-outer-spin-button {
288
- height: auto;
289
- }
310
+ ::-webkit-inner-spin-button,
311
+ ::-webkit-outer-spin-button {
312
+ height: auto;
313
+ }
290
314
 
291
- /*
315
+ /*
292
316
  1. Correct the odd appearance in Chrome and Safari.
293
317
  2. Correct the outline style in Safari.
294
318
  */
295
319
 
296
- [type="search"] {
297
- -webkit-appearance: textfield;
298
- /* 1 */
299
- outline-offset: -2px;
300
- /* 2 */
301
- }
320
+ [type="search"] {
321
+ -webkit-appearance: textfield;
322
+ /* 1 */
323
+ outline-offset: -2px;
324
+ /* 2 */
325
+ }
302
326
 
303
- /*
327
+ /*
304
328
  Remove the inner padding in Chrome and Safari on macOS.
305
329
  */
306
330
 
307
- ::-webkit-search-decoration {
308
- -webkit-appearance: none;
309
- }
331
+ ::-webkit-search-decoration {
332
+ -webkit-appearance: none;
333
+ }
310
334
 
311
- /*
335
+ /*
312
336
  1. Correct the inability to style clickable types in iOS and Safari.
313
337
  2. Change font properties to `inherit` in Safari.
314
338
  */
315
339
 
316
- ::-webkit-file-upload-button {
317
- -webkit-appearance: button;
318
- /* 1 */
319
- font: inherit;
320
- /* 2 */
321
- }
340
+ ::-webkit-file-upload-button {
341
+ -webkit-appearance: button;
342
+ /* 1 */
343
+ font: inherit;
344
+ /* 2 */
345
+ }
322
346
 
323
- /*
347
+ /*
324
348
  Add the correct display in Chrome and Safari.
325
349
  */
326
350
 
327
- summary {
328
- display: list-item;
329
- }
351
+ summary {
352
+ display: list-item;
353
+ }
330
354
 
331
- /*
355
+ /*
332
356
  Removes the default spacing and border for appropriate elements.
333
357
  */
334
358
 
335
- blockquote,
336
- dl,
337
- dd,
338
- h1,
339
- h2,
340
- h3,
341
- h4,
342
- h5,
343
- h6,
344
- hr,
345
- figure,
346
- p,
347
- pre {
348
- margin: 0;
349
- }
359
+ blockquote,
360
+ dl,
361
+ dd,
362
+ h1,
363
+ h2,
364
+ h3,
365
+ h4,
366
+ h5,
367
+ h6,
368
+ hr,
369
+ figure,
370
+ p,
371
+ pre {
372
+ margin: 0;
373
+ }
350
374
 
351
- fieldset {
352
- margin: 0;
353
- padding: 0;
354
- }
375
+ fieldset {
376
+ margin: 0;
377
+ padding: 0;
378
+ }
355
379
 
356
- legend {
357
- padding: 0;
358
- }
380
+ legend {
381
+ padding: 0;
382
+ }
359
383
 
360
- ol,
361
- ul,
362
- menu {
363
- list-style: none;
364
- margin: 0;
365
- padding: 0;
366
- }
384
+ ol,
385
+ ul,
386
+ menu {
387
+ list-style: none;
388
+ margin: 0;
389
+ padding: 0;
390
+ }
367
391
 
368
- /*
392
+ /*
369
393
  Reset default styling for dialogs.
370
394
  */
371
- dialog {
372
- padding: 0;
373
- }
395
+ dialog {
396
+ padding: 0;
397
+ }
374
398
 
375
- /*
399
+ /*
376
400
  Prevent resizing textareas horizontally by default.
377
401
  */
378
402
 
379
- textarea {
380
- resize: vertical;
381
- }
403
+ textarea {
404
+ resize: vertical;
405
+ }
382
406
 
383
- /*
407
+ /*
384
408
  1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
385
409
  2. Set the default placeholder color to the user's configured gray 400 color.
386
410
  */
387
411
 
388
- input::-moz-placeholder,
389
- textarea::-moz-placeholder {
390
- opacity: 1;
391
- /* 1 */
392
- color: #9ca3af;
393
- /* 2 */
394
- }
412
+ input::-moz-placeholder,
413
+ textarea::-moz-placeholder {
414
+ opacity: 1;
415
+ /* 1 */
416
+ color: #9ca3af;
417
+ /* 2 */
418
+ }
395
419
 
396
- input::placeholder,
397
- textarea::placeholder {
398
- opacity: 1;
399
- /* 1 */
400
- color: #9ca3af;
401
- /* 2 */
402
- }
420
+ input::placeholder,
421
+ textarea::placeholder {
422
+ opacity: 1;
423
+ /* 1 */
424
+ color: #9ca3af;
425
+ /* 2 */
426
+ }
403
427
 
404
- /*
428
+ /*
405
429
  Set the default cursor for buttons.
406
430
  */
407
431
 
408
- button,
409
- [role="button"] {
410
- cursor: pointer;
411
- }
432
+ button,
433
+ [role="button"] {
434
+ cursor: pointer;
435
+ }
412
436
 
413
- /*
437
+ /*
414
438
  Make sure disabled buttons don't get the pointer cursor.
415
439
  */
416
- :disabled {
417
- cursor: default;
418
- }
440
+ :disabled {
441
+ cursor: default;
442
+ }
419
443
 
420
- /*
444
+ /*
421
445
  1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
422
446
  2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
423
447
  This can trigger a poorly considered lint error in some tools but is included by design.
424
448
  */
425
449
 
426
- img,
427
- svg,
428
- video,
429
- canvas,
430
- audio,
431
- iframe,
432
- embed,
433
- object {
434
- display: block;
435
- /* 1 */
436
- vertical-align: middle;
437
- /* 2 */
438
- }
450
+ img,
451
+ svg,
452
+ video,
453
+ canvas,
454
+ audio,
455
+ iframe,
456
+ embed,
457
+ object {
458
+ display: block;
459
+ /* 1 */
460
+ vertical-align: middle;
461
+ /* 2 */
462
+ }
439
463
 
440
- /*
464
+ /*
441
465
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
442
466
  */
443
467
 
444
- img,
445
- video {
446
- max-width: 100%;
447
- height: auto;
448
- }
468
+ img,
469
+ video {
470
+ max-width: 100%;
471
+ height: auto;
472
+ }
449
473
 
450
- /* Make elements with the HTML hidden attribute stay hidden by default */
451
- [hidden]:where(:not([hidden="until-found"])) {
452
- display: none;
453
- }
474
+ /* Make elements with the HTML hidden attribute stay hidden by default */
475
+ [hidden]:where(:not([hidden="until-found"])) {
476
+ display: none;
477
+ }
454
478
 
455
- /* Remove all animations and transitions for people that prefer not to see them */
456
- @media (prefers-reduced-motion: reduce) {
457
- *,
458
- *::before,
459
- *::after {
460
- animation-duration: 0.01ms;
461
- animation-iteration-count: 1;
462
- transition-duration: 0.01ms;
463
- scroll-behavior: auto;
479
+ /* Remove all animations and transitions for people that prefer not to see them */
480
+ @media (prefers-reduced-motion: reduce) {
481
+ *,
482
+ *::before,
483
+ *::after {
484
+ animation-duration: 0.01ms;
485
+ animation-iteration-count: 1;
486
+ transition-duration: 0.01ms;
487
+ scroll-behavior: auto;
488
+ }
464
489
  }
465
490
  }
466
491
  }