@byline/ui 1.7.1 → 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,4 +1,4 @@
1
- /*
1
+ /*
2
2
  * Adapted from Tailwind typography plugin
3
3
  * Portions copyright (c) Tailwind Labs, Inc.
4
4
  *
@@ -6,11 +6,14 @@
6
6
  * without Tailwind, although the typography styles are quite basic.
7
7
  *
8
8
  * Note: You should only load one typography style sheet or plugin.
9
- * If Tailwind is being used in the frontend, and you're using
9
+ * If Tailwind is being used in the frontend, and you're using
10
10
  * the Tailwind typography plugin, then this style sheet should NOT
11
- * be loaded (although it will cause little harm as it's
11
+ * be loaded (although it will cause little harm as it's
12
12
  * behind a cascade layer).
13
13
  *
14
+ * Variable declarations stay on :root so they cascade everywhere.
15
+ * Element- and class-targeting rules live inside @scope (.byline-ui)
16
+ * so the host's typography is untouched outside the boundary.
14
17
  */
15
18
 
16
19
  @layer byline-typography {
@@ -97,318 +100,320 @@
97
100
  --prose-pre-background: #1f2937;
98
101
  }
99
102
 
100
- /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101
- * Typography defaults
102
- * We will gradually refactor prose to sensible defaults
103
- */
104
-
105
- html {
106
- font-size: 1rem;
107
- color: var(--prose-body);
108
- }
103
+ @scope (.byline-ui) {
104
+ /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
105
+ * Typography defaults
106
+ * We will gradually refactor prose to sensible defaults
107
+ */
109
108
 
110
- /* Redeclared here to change the specificity and scope of --prose-body */
111
- html .not-dark {
112
- color: var(--prose-body);
113
- }
109
+ :scope {
110
+ font-size: 1rem;
111
+ color: var(--prose-body);
112
+ }
114
113
 
115
- /* Overflow wrap for long non-dictionary words or urls */
116
- article,
117
- .editor-text,
118
- .break-long-words {
119
- overflow-wrap: anywhere;
120
- }
114
+ /* Redeclared here to change the specificity and scope of --prose-body */
115
+ .not-dark {
116
+ color: var(--prose-body);
117
+ }
121
118
 
122
- article,
123
- .dynamic-text {
124
- font-size: 1.25rem;
125
- line-height: 1.6;
126
- }
119
+ /* Overflow wrap for long non-dictionary words or urls */
120
+ article,
121
+ .editor-text,
122
+ .break-long-words {
123
+ overflow-wrap: anywhere;
124
+ }
127
125
 
128
- /*
129
- NOTE: Increase font size for smaller screens to improve readability
130
- at medium breakpoint (consider large breakpoint as well?)
131
- */
132
- @media screen and (min-width: 48rem) {
133
126
  article,
134
127
  .dynamic-text {
135
- font-size: 1.125rem;
136
- line-height: 1.64;
128
+ font-size: 1.25rem;
129
+ line-height: 1.6;
137
130
  }
138
- }
139
131
 
140
- /* Default headings - will be overridden by prose sections below */
141
- .prose {
142
- h1,
143
- h2,
144
- h3,
145
- h4,
146
- h5 {
147
- color: var(--prose-headings);
132
+ /*
133
+ NOTE: Increase font size for smaller screens to improve readability
134
+ at medium breakpoint (consider large breakpoint as well?)
135
+ */
136
+ @media screen and (min-width: 48rem) {
137
+ article,
138
+ .dynamic-text {
139
+ font-size: 1.125rem;
140
+ line-height: 1.64;
141
+ }
148
142
  }
149
- }
150
143
 
151
- .prose :where(h1):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
152
- font-size: 2.5rem;
153
- font-weight: 600;
154
- line-height: 1.125;
155
- margin-top: 0;
156
- margin-bottom: 1rem;
157
- }
144
+ /* Default headings - will be overridden by prose sections below */
145
+ .prose {
146
+ h1,
147
+ h2,
148
+ h3,
149
+ h4,
150
+ h5 {
151
+ color: var(--prose-headings);
152
+ }
153
+ }
158
154
 
159
- .prose :where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
160
- font-size: 2rem;
161
- font-weight: 600;
162
- line-height: 1.2;
163
- margin-top: 1.5rem;
164
- margin-bottom: 0.75rem;
165
- }
155
+ .prose :where(h1):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
156
+ font-size: 2.5rem;
157
+ font-weight: 600;
158
+ line-height: 1.125;
159
+ margin-top: 0;
160
+ margin-bottom: 1rem;
161
+ }
166
162
 
167
- .prose :where(h3):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
168
- font-size: 1.75rem;
169
- font-weight: 600;
170
- line-height: 1.1;
171
- margin-top: 1.25rem;
172
- margin-bottom: 0.75rem;
173
- }
163
+ .prose :where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
164
+ font-size: 2rem;
165
+ font-weight: 600;
166
+ line-height: 1.2;
167
+ margin-top: 1.5rem;
168
+ margin-bottom: 0.75rem;
169
+ }
174
170
 
175
- .prose :where(h4):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
176
- font-size: 1.55rem;
177
- font-weight: 600;
178
- line-height: 1.1;
179
- margin-top: 1.25rem;
180
- margin-bottom: 0.65rem;
181
- }
171
+ .prose :where(h3):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
172
+ font-size: 1.75rem;
173
+ font-weight: 600;
174
+ line-height: 1.1;
175
+ margin-top: 1.25rem;
176
+ margin-bottom: 0.75rem;
177
+ }
182
178
 
183
- .prose :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
184
- margin-top: 1.25em;
185
- margin-bottom: 1.25em;
186
- }
179
+ .prose :where(h4):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
180
+ font-size: 1.55rem;
181
+ font-weight: 600;
182
+ line-height: 1.1;
183
+ margin-top: 1.25rem;
184
+ margin-bottom: 0.65rem;
185
+ }
187
186
 
188
- .prose-lg :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
189
- font-size: 1.125rem;
190
- line-height: 1.64;
191
- margin-top: 1.25em;
192
- margin-bottom: 1.25em;
193
- }
187
+ .prose :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
188
+ margin-top: 1.25em;
189
+ margin-bottom: 1.25em;
190
+ }
194
191
 
195
- .prose-xl :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
196
- font-size: 1.25rem;
197
- line-height: 1.6;
198
- margin-top: 1.25em;
199
- margin-bottom: 1.25em;
200
- }
192
+ .prose-lg :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
193
+ font-size: 1.125rem;
194
+ line-height: 1.64;
195
+ margin-top: 1.25em;
196
+ margin-bottom: 1.25em;
197
+ }
201
198
 
202
- .prose :where([class~="lead"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
203
- color: var(--prose-lead);
204
- font-size: 1.25em;
205
- line-height: 1.4;
206
- margin-top: 1.2em;
207
- margin-bottom: 1.2em;
208
- }
199
+ .prose-xl :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
200
+ font-size: 1.25rem;
201
+ line-height: 1.6;
202
+ margin-top: 1.25em;
203
+ margin-bottom: 1.25em;
204
+ }
209
205
 
210
- .prose :where(a):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
211
- color: var(--prose-links);
212
- text-decoration: underline;
213
- font-weight: 500;
214
- }
206
+ .prose :where([class~="lead"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
207
+ color: var(--prose-lead);
208
+ font-size: 1.25em;
209
+ line-height: 1.4;
210
+ margin-top: 1.2em;
211
+ margin-bottom: 1.2em;
212
+ }
215
213
 
216
- .prose :where(strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
217
- color: var(--prose-bold);
218
- font-weight: 500;
219
- }
214
+ .prose :where(a):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
215
+ color: var(--prose-links);
216
+ text-decoration: underline;
217
+ font-weight: 500;
218
+ }
220
219
 
221
- .prose :where(a strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
222
- color: inherit;
223
- }
220
+ .prose :where(strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
221
+ color: var(--prose-bold);
222
+ font-weight: 500;
223
+ }
224
224
 
225
- .prose :where(blockquote strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
226
- color: inherit;
227
- }
225
+ .prose :where(a strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
226
+ color: inherit;
227
+ }
228
228
 
229
- .prose :where(ol):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
230
- list-style-type: decimal;
231
- margin-top: 1.25em;
232
- margin-bottom: 1.25em;
233
- padding-inline-start: 1.625em;
234
- }
229
+ .prose :where(blockquote strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
230
+ color: inherit;
231
+ }
235
232
 
236
- .prose :where(ol[type="A"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
237
- list-style-type: upper-alpha;
238
- }
233
+ .prose :where(ol):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
234
+ list-style-type: decimal;
235
+ margin-top: 1.25em;
236
+ margin-bottom: 1.25em;
237
+ padding-inline-start: 1.625em;
238
+ }
239
239
 
240
- .prose :where(ol[type="a"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
241
- list-style-type: lower-alpha;
242
- }
240
+ .prose :where(ol[type="A"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
241
+ list-style-type: upper-alpha;
242
+ }
243
243
 
244
- .prose :where(ol[type="A" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
245
- list-style-type: upper-alpha;
246
- }
244
+ .prose :where(ol[type="a"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
245
+ list-style-type: lower-alpha;
246
+ }
247
247
 
248
- .prose :where(ol[type="a" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
249
- list-style-type: lower-alpha;
250
- }
248
+ .prose :where(ol[type="A" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
249
+ list-style-type: upper-alpha;
250
+ }
251
251
 
252
- .prose :where(ol[type="I"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
253
- list-style-type: upper-roman;
254
- }
252
+ .prose :where(ol[type="a" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
253
+ list-style-type: lower-alpha;
254
+ }
255
255
 
256
- .prose :where(ol[type="i"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
257
- list-style-type: lower-roman;
258
- }
256
+ .prose :where(ol[type="I"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
257
+ list-style-type: upper-roman;
258
+ }
259
259
 
260
- .prose :where(ol[type="I" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
261
- list-style-type: upper-roman;
262
- }
260
+ .prose :where(ol[type="i"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
261
+ list-style-type: lower-roman;
262
+ }
263
263
 
264
- .prose :where(ol[type="i" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
265
- list-style-type: lower-roman;
266
- }
264
+ .prose :where(ol[type="I" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
265
+ list-style-type: upper-roman;
266
+ }
267
267
 
268
- .prose :where(ol[type="1"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
269
- list-style-type: decimal;
270
- }
268
+ .prose :where(ol[type="i" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
269
+ list-style-type: lower-roman;
270
+ }
271
271
 
272
- .prose :where(ul):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
273
- list-style-type: disc;
274
- margin-top: 1.25em;
275
- margin-bottom: 1.25em;
276
- padding-inline-start: 1.625em;
277
- }
272
+ .prose :where(ol[type="1"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
273
+ list-style-type: decimal;
274
+ }
278
275
 
279
- .prose :where(ol > li):not(:where([class~="not-prose"], [class~="not-prose"] *))::marker {
280
- font-weight: 400;
281
- color: var(--prose-counters);
282
- }
276
+ .prose :where(ul):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
277
+ list-style-type: disc;
278
+ margin-top: 1.25em;
279
+ margin-bottom: 1.25em;
280
+ padding-inline-start: 1.625em;
281
+ }
283
282
 
284
- .prose :where(ul > li):not(:where([class~="not-prose"], [class~="not-prose"] *))::marker {
285
- color: var(--prose-bullets);
286
- }
283
+ .prose :where(ol > li):not(:where([class~="not-prose"], [class~="not-prose"] *))::marker {
284
+ font-weight: 400;
285
+ color: var(--prose-counters);
286
+ }
287
287
 
288
- .prose :where(dt):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
289
- color: var(--prose-headings);
290
- font-weight: 500;
291
- margin-top: 1.25em;
292
- }
288
+ .prose :where(ul > li):not(:where([class~="not-prose"], [class~="not-prose"] *))::marker {
289
+ color: var(--prose-bullets);
290
+ }
293
291
 
294
- .prose :where(hr):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
295
- border-color: var(--prose-hr);
296
- border-top-width: 1px;
297
- margin-top: 3em;
298
- margin-bottom: 3em;
299
- }
292
+ .prose :where(dt):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
293
+ color: var(--prose-headings);
294
+ font-weight: 500;
295
+ margin-top: 1.25em;
296
+ }
300
297
 
301
- .prose :where(blockquote):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
302
- font-weight: 600;
303
- font-style: normal;
304
- color: var(--prose-quotes);
305
- quotes: none;
306
- margin-top: 1.3rem;
307
- margin-bottom: 1.3rem;
308
- margin-right: 2rem;
309
- /* Font size must be em - so that it changes in articles or text that has dynamic font sizes on smaller screens */
310
- font-size: 1.2em;
311
- line-height: 1.3;
312
- padding-inline-start: 1rem;
313
- border-inline-start-width: 0.25rem;
314
- border-inline-start-color: var(--prose-quote-borders);
315
- }
298
+ .prose :where(hr):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
299
+ border-color: var(--prose-hr);
300
+ border-top-width: 1px;
301
+ margin-top: 3em;
302
+ margin-bottom: 3em;
303
+ }
316
304
 
317
- /* The same as above - for the moment */
318
- @media (min-width: 48rem) {
319
305
  .prose :where(blockquote):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
306
+ font-weight: 600;
307
+ font-style: normal;
308
+ color: var(--prose-quotes);
309
+ quotes: none;
310
+ margin-top: 1.3rem;
311
+ margin-bottom: 1.3rem;
312
+ margin-right: 2rem;
313
+ /* Font size must be em - so that it changes in articles or text that has dynamic font sizes on smaller screens */
320
314
  font-size: 1.2em;
321
315
  line-height: 1.3;
316
+ padding-inline-start: 1rem;
317
+ border-inline-start-width: 0.25rem;
318
+ border-inline-start-color: var(--prose-quote-borders);
322
319
  }
323
- }
324
320
 
325
- .prose
326
- :where(blockquote p:first-of-type):not(
327
- :where([class~="not-prose"], [class~="not-prose"] *)
328
- )::before {
329
- content: open-quote;
330
- }
321
+ /* The same as above - for the moment */
322
+ @media (min-width: 48rem) {
323
+ .prose :where(blockquote):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
324
+ font-size: 1.2em;
325
+ line-height: 1.3;
326
+ }
327
+ }
331
328
 
332
- .prose
333
- :where(blockquote p:last-of-type):not(
334
- :where([class~="not-prose"], [class~="not-prose"] *)
335
- )::after {
336
- content: close-quote;
337
- }
329
+ .prose
330
+ :where(blockquote p:first-of-type):not(
331
+ :where([class~="not-prose"], [class~="not-prose"] *)
332
+ )::before {
333
+ content: open-quote;
334
+ }
338
335
 
339
- .prose :where(img):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
340
- margin-top: 2em;
341
- margin-bottom: 2em;
342
- }
336
+ .prose
337
+ :where(blockquote p:last-of-type):not(
338
+ :where([class~="not-prose"], [class~="not-prose"] *)
339
+ )::after {
340
+ content: close-quote;
341
+ }
343
342
 
344
- .prose :where(picture):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
345
- display: block;
346
- margin-top: 2em;
347
- margin-bottom: 2em;
348
- }
343
+ .prose :where(img):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
344
+ margin-top: 2em;
345
+ margin-bottom: 2em;
346
+ }
349
347
 
350
- .prose :where(video):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
351
- margin-top: 2em;
352
- margin-bottom: 2em;
353
- }
348
+ .prose :where(picture):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
349
+ display: block;
350
+ margin-top: 2em;
351
+ margin-bottom: 2em;
352
+ }
354
353
 
355
- .prose :where(kbd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
356
- font-weight: 500;
357
- font-family: inherit;
358
- color: var(--prose-kbd);
359
- box-shadow:
360
- 0 0 0 1px rgb(var(--prose-kbd-shadows) / 10%),
361
- 0 3px 0 rgb(var(--prose-kbd-shadows) / 10%);
362
- font-size: 0.875em;
363
- border-radius: 0.3125rem;
364
- padding-top: 0.1875em;
365
- padding-inline-end: 0.375em;
366
- padding-bottom: 0.1875em;
367
- padding-inline-start: 0.375em;
368
- }
354
+ .prose :where(video):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
355
+ margin-top: 2em;
356
+ margin-bottom: 2em;
357
+ }
369
358
 
370
- .prose :where(code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
371
- color: var(--prose-code);
372
- font-weight: 400;
373
- font-size: 0.875em;
374
- background-color: var(--prose-code-background);
375
- border-color: var(--prose-code-borders);
376
- border-radius: 0.25rem;
377
- border-width: 1px;
378
- padding-left: 0.375rem;
379
- padding-right: 0.375rem;
380
- padding-top: 0.125rem;
381
- padding-bottom: 0.125rem;
382
- }
359
+ .prose :where(kbd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
360
+ font-weight: 500;
361
+ font-family: inherit;
362
+ color: var(--prose-kbd);
363
+ box-shadow:
364
+ 0 0 0 1px rgb(var(--prose-kbd-shadows) / 10%),
365
+ 0 3px 0 rgb(var(--prose-kbd-shadows) / 10%);
366
+ font-size: 0.875em;
367
+ border-radius: 0.3125rem;
368
+ padding-top: 0.1875em;
369
+ padding-inline-end: 0.375em;
370
+ padding-bottom: 0.1875em;
371
+ padding-inline-start: 0.375em;
372
+ }
383
373
 
384
- .prose :where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
385
- color: var(--prose-pre-code);
386
- background-color: var(--prose-pre-background);
387
- overflow-x: auto;
388
- font-weight: 400;
389
- line-height: 1.7142857;
390
- margin-top: 1.7142857em;
391
- margin-bottom: 1.7142857em;
392
- border-radius: 0.375rem;
393
- padding-top: 0.8571429em;
394
- padding-inline-end: 1.1428571em;
395
- padding-bottom: 0.8571429em;
396
- padding-inline-start: 1.1428571em;
397
- }
374
+ .prose :where(code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
375
+ color: var(--prose-code);
376
+ font-weight: 400;
377
+ font-size: 0.875em;
378
+ background-color: var(--prose-code-background);
379
+ border-color: var(--prose-code-borders);
380
+ border-radius: 0.25rem;
381
+ border-width: 1px;
382
+ padding-left: 0.375rem;
383
+ padding-right: 0.375rem;
384
+ padding-top: 0.125rem;
385
+ padding-bottom: 0.125rem;
386
+ }
398
387
 
399
- .prose :where(pre code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
400
- background-color: initial;
401
- border-width: 0;
402
- border-radius: 0;
403
- padding: 0;
404
- font-weight: inherit;
405
- color: inherit;
406
- font-size: 1em;
407
- font-family: inherit;
408
- line-height: inherit;
409
- padding-left: 0;
410
- padding-right: 0;
411
- padding-top: 0;
412
- padding-bottom: 0;
388
+ .prose :where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
389
+ color: var(--prose-pre-code);
390
+ background-color: var(--prose-pre-background);
391
+ overflow-x: auto;
392
+ font-weight: 400;
393
+ line-height: 1.7142857;
394
+ margin-top: 1.7142857em;
395
+ margin-bottom: 1.7142857em;
396
+ border-radius: 0.375rem;
397
+ padding-top: 0.8571429em;
398
+ padding-inline-end: 1.1428571em;
399
+ padding-bottom: 0.8571429em;
400
+ padding-inline-start: 1.1428571em;
401
+ }
402
+
403
+ .prose :where(pre code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
404
+ background-color: initial;
405
+ border-width: 0;
406
+ border-radius: 0;
407
+ padding: 0;
408
+ font-weight: inherit;
409
+ color: inherit;
410
+ font-size: 1em;
411
+ font-family: inherit;
412
+ line-height: inherit;
413
+ padding-left: 0;
414
+ padding-right: 0;
415
+ padding-top: 0;
416
+ padding-bottom: 0;
417
+ }
413
418
  }
414
419
  }
@@ -1,24 +1,30 @@
1
+ @layer base, byline-base, components, byline-components,
2
+ byline-functional, utilities, byline-utilities,
3
+ theme, byline-theme, byline-typography;
4
+
1
5
  @import "./typography/fonts.css";
2
6
  @import "./typography/prose.css";
3
7
 
4
8
  @layer byline-typography {
5
- html {
6
- font-family: var(--font-sans);
7
- }
9
+ @scope (.byline-ui) {
10
+ :scope {
11
+ font-family: var(--font-sans);
12
+ }
8
13
 
9
- .font-sans {
10
- font-family: var(--font-sans);
11
- }
14
+ .font-sans {
15
+ font-family: var(--font-sans);
16
+ }
12
17
 
13
- .font-display {
14
- font-family: var(--font-display);
15
- }
18
+ .font-display {
19
+ font-family: var(--font-display);
20
+ }
16
21
 
17
- .font-serif {
18
- font-family: var(--font-serif);
19
- }
22
+ .font-serif {
23
+ font-family: var(--font-serif);
24
+ }
20
25
 
21
- .font-mono {
22
- font-family: var(--font-mono);
26
+ .font-mono {
27
+ font-family: var(--font-mono);
28
+ }
23
29
  }
24
30
  }
@@ -1,5 +1,6 @@
1
- @layer byline-base, byline-utilities, byline-theme, byline-components;
2
-
1
+ @layer base, byline-base, components, byline-components,
2
+ byline-functional, utilities, byline-utilities,
3
+ theme, byline-theme, byline-typography;
3
4
  @layer byline-components {
4
5
  .container,
5
6
  :global(.infonomic-datepicker-container) {