@dolanske/vui 1.0.3 → 1.1.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.
Files changed (195) hide show
  1. package/LICENSE +673 -673
  2. package/README.md +42 -42
  3. package/dist/components/Accordion/Accordion.vue.d.ts +3 -2
  4. package/dist/components/Accordion/AccordionGroup.vue.d.ts +5 -2
  5. package/dist/components/Alert/Alert.vue.d.ts +3 -2
  6. package/dist/components/Avatar/Avatar.vue.d.ts +3 -2
  7. package/dist/components/Badge/Badge.vue.d.ts +3 -2
  8. package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +3 -2
  9. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +3 -2
  10. package/dist/components/Button/Button.vue.d.ts +3 -2
  11. package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +3 -2
  12. package/dist/components/Calendar/Calendar.vue.d.ts +6 -6
  13. package/dist/components/Card/Card.vue.d.ts +4 -3
  14. package/dist/components/Checkbox/Checkbox.vue.d.ts +7 -6
  15. package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +2 -1
  16. package/dist/components/Divider/Divider.vue.d.ts +3 -2
  17. package/dist/components/Drawer/Drawer.vue.d.ts +10 -9
  18. package/dist/components/Dropdown/Dropdown.vue.d.ts +66 -3
  19. package/dist/components/Dropdown/DropdownItem.vue.d.ts +3 -2
  20. package/dist/components/Dropdown/DropdownTitle.vue.d.ts +6 -6
  21. package/dist/components/Flex/Flex.vue.d.ts +13 -12
  22. package/dist/components/Grid/Grid.vue.d.ts +7 -6
  23. package/dist/components/Input/Color.vue.d.ts +5 -5
  24. package/dist/components/Input/Counter.vue.d.ts +5 -5
  25. package/dist/components/Input/Dropzone.vue.d.ts +95 -10
  26. package/dist/components/Input/File.vue.d.ts +4 -3
  27. package/dist/components/Input/Input.vue.d.ts +7 -6
  28. package/dist/components/Input/Password.vue.d.ts +1 -1
  29. package/dist/components/Input/Textarea.vue.d.ts +7 -6
  30. package/dist/components/Kbd/Kbd.vue.d.ts +1 -1
  31. package/dist/components/Kbd/KbdGroup.vue.d.ts +2 -1
  32. package/dist/components/Modal/Confirm.vue.d.ts +7 -9
  33. package/dist/components/Modal/Modal.vue.d.ts +16 -13
  34. package/dist/components/OTP/OTP.vue.d.ts +7 -6
  35. package/dist/components/OTP/OTPItem.vue.d.ts +1 -1
  36. package/dist/components/Pagination/Pagination.vue.d.ts +3 -2
  37. package/dist/components/Popout/Popout.vue.d.ts +3 -2
  38. package/dist/components/Progress/Progress.vue.d.ts +5 -5
  39. package/dist/components/Radio/Radio.vue.d.ts +7 -6
  40. package/dist/components/Radio/RadioGroup.vue.d.ts +7 -6
  41. package/dist/components/Select/Select.vue.d.ts +4 -8
  42. package/dist/components/Sheet/Sheet.vue.d.ts +22 -13
  43. package/dist/components/Sidebar/Sidebar.vue.d.ts +7 -6
  44. package/dist/components/Skeleton/Skeleton.vue.d.ts +1 -1
  45. package/dist/components/Spinner/Spinner.vue.d.ts +1 -1
  46. package/dist/components/Switch/Switch.vue.d.ts +7 -6
  47. package/dist/components/Table/Cell.vue.d.ts +5 -2
  48. package/dist/components/Table/Head.vue.d.ts +3 -2
  49. package/dist/components/Table/Root.vue.d.ts +3 -2
  50. package/dist/components/Table/table.d.ts +2 -2
  51. package/dist/components/Tabs/Tab.vue.d.ts +3 -2
  52. package/dist/components/Tabs/Tabs.vue.d.ts +7 -6
  53. package/dist/components/Toast/toast.d.ts +6 -6
  54. package/dist/components/Tooltip/Tooltip.vue.d.ts +2 -1
  55. package/dist/internal/Backdrop/Backdrop.vue.d.ts +3 -2
  56. package/dist/vui.css +1 -0
  57. package/dist/vui.js +8090 -7884
  58. package/package.json +73 -72
  59. package/src/App.vue +95 -95
  60. package/src/components/Accordion/Accordion.vue +91 -91
  61. package/src/components/Accordion/AccordionGroup.vue +43 -43
  62. package/src/components/Accordion/accordion.scss +82 -82
  63. package/src/components/Alert/Alert.vue +59 -59
  64. package/src/components/Alert/alert.scss +161 -161
  65. package/src/components/Avatar/Avatar.vue +53 -53
  66. package/src/components/Avatar/avatar.scss +52 -52
  67. package/src/components/Badge/Badge.vue +21 -21
  68. package/src/components/Badge/badge.scss +210 -206
  69. package/src/components/Breadcrumbs/BreadcrumbItem.vue +26 -26
  70. package/src/components/Breadcrumbs/Breadcrumbs.vue +30 -30
  71. package/src/components/Breadcrumbs/breadcrumbs.scss +31 -31
  72. package/src/components/Button/Button.vue +85 -85
  73. package/src/components/Button/button.scss +279 -279
  74. package/src/components/ButtonGroup/ButtonGroup.vue +28 -28
  75. package/src/components/ButtonGroup/button-group.scss +51 -51
  76. package/src/components/Calendar/Calendar.vue +66 -66
  77. package/src/components/Calendar/calendar.scss +83 -83
  78. package/src/components/Card/Card.vue +48 -48
  79. package/src/components/Card/card.scss +53 -53
  80. package/src/components/Checkbox/Checkbox.vue +54 -54
  81. package/src/components/Checkbox/checkbox.scss +80 -80
  82. package/src/components/CopyClipboard/CopyClipboard.vue +91 -91
  83. package/src/components/CopyClipboard/copy-clipboard.scss +25 -25
  84. package/src/components/Divider/Divider.vue +44 -44
  85. package/src/components/Divider/divider.scss +35 -35
  86. package/src/components/Drawer/Drawer.vue +102 -97
  87. package/src/components/Drawer/drawer.scss +37 -37
  88. package/src/components/Dropdown/Dropdown.vue +135 -135
  89. package/src/components/Dropdown/DropdownItem.vue +33 -33
  90. package/src/components/Dropdown/DropdownTitle.vue +14 -14
  91. package/src/components/Dropdown/dropdown-item.scss +84 -84
  92. package/src/components/Dropdown/dropdown.scss +53 -53
  93. package/src/components/Flex/Flex.vue +113 -113
  94. package/src/components/Grid/Grid.vue +79 -80
  95. package/src/components/Input/Color.vue +26 -26
  96. package/src/components/Input/Counter.vue +66 -66
  97. package/src/components/Input/Dropzone.vue +65 -65
  98. package/src/components/Input/File.vue +15 -15
  99. package/src/components/Input/Input.vue +123 -123
  100. package/src/components/Input/Password.vue +35 -35
  101. package/src/components/Input/Textarea.vue +78 -78
  102. package/src/components/Input/input.scss +302 -302
  103. package/src/components/Kbd/Kbd.vue +48 -48
  104. package/src/components/Kbd/KbdGroup.vue +27 -27
  105. package/src/components/Kbd/kbd.scss +19 -19
  106. package/src/components/Modal/Confirm.vue +56 -56
  107. package/src/components/Modal/Modal.vue +103 -99
  108. package/src/components/Modal/modal.scss +54 -54
  109. package/src/components/OTP/OTP.vue +133 -133
  110. package/src/components/OTP/OTPItem.vue +37 -37
  111. package/src/components/OTP/otp.scss +84 -84
  112. package/src/components/Pagination/Pagination.vue +77 -77
  113. package/src/components/Pagination/pagination.ts +78 -78
  114. package/src/components/Popout/Popout.vue +52 -52
  115. package/src/components/Popout/popout.scss +15 -15
  116. package/src/components/Progress/Progress.vue +103 -103
  117. package/src/components/Progress/progress.scss +47 -47
  118. package/src/components/Radio/Radio.vue +38 -38
  119. package/src/components/Radio/RadioGroup.vue +40 -40
  120. package/src/components/Radio/radio.scss +78 -78
  121. package/src/components/Select/Select.vue +211 -211
  122. package/src/components/Select/select.scss +77 -77
  123. package/src/components/Sheet/Sheet.vue +108 -98
  124. package/src/components/Sheet/sheet.scss +69 -69
  125. package/src/components/Sidebar/Sidebar.vue +115 -115
  126. package/src/components/Sidebar/sidebar.scss +124 -124
  127. package/src/components/Skeleton/Skeleton.vue +43 -43
  128. package/src/components/Skeleton/skeleton.scss +14 -14
  129. package/src/components/Spinner/Spinner.vue +42 -42
  130. package/src/components/Spinner/spinner.scss +47 -47
  131. package/src/components/Switch/Switch.vue +31 -31
  132. package/src/components/Switch/switch.scss +93 -93
  133. package/src/components/Table/Cell.vue +23 -23
  134. package/src/components/Table/Head.vue +59 -59
  135. package/src/components/Table/Root.vue +66 -66
  136. package/src/components/Table/SelectAll.vue +23 -23
  137. package/src/components/Table/SelectRow.vue +30 -30
  138. package/src/components/Table/index.ts +7 -7
  139. package/src/components/Table/table.scss +154 -154
  140. package/src/components/Table/table.ts +248 -248
  141. package/src/components/Tabs/Tab.vue +25 -25
  142. package/src/components/Tabs/Tabs.vue +90 -90
  143. package/src/components/Tabs/tabs.scss +87 -87
  144. package/src/components/Toast/Toasts.vue +52 -52
  145. package/src/components/Toast/toast.scss +45 -45
  146. package/src/components/Toast/toast.ts +75 -75
  147. package/src/components/Tooltip/Tooltip.vue +86 -86
  148. package/src/components/Tooltip/tooltip.scss +8 -8
  149. package/src/examples/ExampleAccordions.vue +58 -58
  150. package/src/examples/ExampleAlerts.vue +78 -78
  151. package/src/examples/ExampleAvatars.vue +44 -44
  152. package/src/examples/ExampleBadges.vue +48 -48
  153. package/src/examples/ExampleBreadcrumbs.vue +46 -46
  154. package/src/examples/ExampleButtons.vue +140 -140
  155. package/src/examples/ExampleCalendars.vue +40 -40
  156. package/src/examples/ExampleCards.vue +94 -94
  157. package/src/examples/ExampleCheckboxes.vue +123 -123
  158. package/src/examples/ExampleCopyClipboard.vue +47 -47
  159. package/src/examples/ExampleDividers.vue +39 -39
  160. package/src/examples/ExampleDrawers.vue +67 -67
  161. package/src/examples/ExampleDropdowns.vue +114 -114
  162. package/src/examples/ExampleFlexGrid.vue +124 -122
  163. package/src/examples/ExampleInputs.vue +234 -234
  164. package/src/examples/ExampleKBD.vue +65 -65
  165. package/src/examples/ExampleModals.vue +143 -143
  166. package/src/examples/ExamplePalette.vue +159 -159
  167. package/src/examples/ExamplePopouts.vue +41 -41
  168. package/src/examples/ExampleSheets.vue +77 -77
  169. package/src/examples/ExampleSidebars.vue +270 -270
  170. package/src/examples/ExampleSkeletons.vue +26 -26
  171. package/src/examples/ExampleSpinners.vue +80 -78
  172. package/src/examples/ExampleTables.vue +195 -195
  173. package/src/examples/ExampleTabs.vue +119 -119
  174. package/src/examples/ExampleToasts.vue +96 -96
  175. package/src/examples/ExampleTooltips.vue +70 -70
  176. package/src/examples/shared/ExampleColor.vue +28 -28
  177. package/src/index.ts +116 -116
  178. package/src/internal/Backdrop/Backdrop.vue +22 -22
  179. package/src/internal/Backdrop/backdrop.scss +34 -34
  180. package/src/main.ts +5 -5
  181. package/src/shared/helpers.ts +117 -117
  182. package/src/shared/theme.ts +22 -22
  183. package/src/shared/types.ts +29 -29
  184. package/src/style/animation.scss +22 -22
  185. package/src/style/core.scss +119 -125
  186. package/src/style/layout.scss +207 -233
  187. package/src/style/media-query.scss +29 -29
  188. package/src/style/reset.scss +135 -135
  189. package/src/style/text.scss +137 -124
  190. package/src/style/theme.scss +195 -195
  191. package/src/style/tooltip.scss +146 -146
  192. package/src/style/typography.scss +415 -415
  193. package/src/style/utils.scss +36 -36
  194. package/src/{index.scss → style.scss} +1 -1
  195. package/dist/style.css +0 -1
@@ -1,415 +1,415 @@
1
- // Base style definitions
2
-
3
- // Definitions should be self contained. No element should ever expect there
4
- // will be more. Anything like margins and actual article spacings should be
5
- // defined within the <article> element
6
-
7
- h1,
8
- h2,
9
- h3,
10
- h4,
11
- h5,
12
- h6 {
13
- display: block;
14
- font-weight: 800;
15
- }
16
-
17
- h1 {
18
- font-size: var(--font-size-xxxxl);
19
- }
20
-
21
- h2 {
22
- font-size: var(--font-size-xxxl);
23
- }
24
-
25
- h3 {
26
- font-size: var(--font-size-xxl);
27
- }
28
-
29
- h4 {
30
- font-size: var(--font-size-xl);
31
- }
32
-
33
- h5 {
34
- font-size: var(--font-size-l);
35
- }
36
-
37
- h6 {
38
- font-size: var(--font-size-m);
39
- }
40
-
41
- figcaption,
42
- table th,
43
- table td,
44
- blockquote,
45
- p {
46
- font-size: var(--font-size-m);
47
- line-height: 1.4em;
48
- font-weight: 400;
49
-
50
- & > * {
51
- line-height: inherit;
52
- font-size: inherit;
53
- }
54
-
55
- a {
56
- color: var(--color-text);
57
- text-decoration: underline;
58
- text-underline-offset: 3px;
59
-
60
- &:hover {
61
- text-decoration: none;
62
- }
63
- }
64
-
65
- code {
66
- font-family: var(--global-font-mono);
67
- border-radius: var(--border-radius-s);
68
- background-color: var(--color-bg-raised);
69
- color: var(--color-text);
70
- border: 1px solid var(--color-border);
71
- padding: 0px 3px;
72
- font-weight: var(--font-weight);
73
- font-size: var(--font-size-s);
74
- }
75
-
76
- strong,
77
- b {
78
- font-weight: var(--font-weight-700);
79
- }
80
-
81
- i {
82
- font-style: italic;
83
- }
84
-
85
- u {
86
- text-decoration: line-through;
87
- }
88
- }
89
-
90
- hr {
91
- border-bottom: 1px solid var(--color-border);
92
- }
93
-
94
- span,
95
- strong,
96
- p {
97
- font-size: var(--font-size-m);
98
- }
99
-
100
- blockquote {
101
- display: block;
102
- padding-block: var(--space-s);
103
- padding-left: var(--space-l);
104
- border-left: 3px solid var(--color-border);
105
- }
106
-
107
- pre {
108
- font-family: var(--global-font-mono);
109
- font-size: var(--font-size-s);
110
- font-weight: 300;
111
- line-height: 1.2em;
112
- padding: var(--space-m);
113
- border: 1px solid var(--color-border);
114
- border-radius: var(--border-radius-m);
115
- white-space: pre-wrap;
116
- background-color: var(--color-bg-raised);
117
- z-index: 1;
118
- position: relative;
119
-
120
- &[data-lang]::after {
121
- content: attr(data-lang);
122
- font-family: var(--global-font);
123
- display: block;
124
- position: absolute;
125
- font-weight: 500;
126
- top: 6px;
127
- right: 6px;
128
- padding: 5px;
129
- text-align: center;
130
- text-transform: uppercase;
131
- border-radius: var(--border-radius-s);
132
- font-size: var(--font-size-xs);
133
- color: var(--color-text-light);
134
- border: 1px solid var(--color-border);
135
- background-color: var(--color-bg-lowered);
136
- }
137
- }
138
-
139
- table {
140
- text-indent: 0;
141
- border-collapse: separate;
142
- overflow-x: auto;
143
- max-width: 100%;
144
-
145
- // TODO: add alternating row colors
146
-
147
- // TODO add only separating header and body with a border, not between rows
148
-
149
- // &.bg-dark {
150
- // background-color: var(--color-bg-lowered);
151
- // }
152
-
153
- // &.bg-light {
154
- // background-color: var(--color-bg-lighter);
155
- // }
156
-
157
- // &.no-borders {
158
- // th,
159
- // td {
160
- // border: 0 !important;
161
- // }
162
- // }
163
-
164
- thead {
165
- th {
166
- border-bottom: 1px solid var(--color-border);
167
- border-top: 1px solid var(--color-border);
168
- white-space: nowrap;
169
-
170
- &:first-child {
171
- border-top-left-radius: var(--border-radius-s);
172
- border-bottom-left-radius: 0 !important;
173
- }
174
-
175
- &:last-child {
176
- border-top-right-radius: var(--border-radius-s);
177
- border-bottom-right-radius: 0 !important;
178
- }
179
- }
180
- }
181
-
182
- tbody {
183
- th {
184
- border-radius: 0;
185
- border-bottom: 1px solid var(--color-border);
186
- }
187
-
188
- &:first-child tr:first-child {
189
- td {
190
- border-top: 1px solid var(--color-border);
191
-
192
- &:first-child {
193
- border-top-left-radius: var(--border-radius-s);
194
- }
195
-
196
- &:last-child {
197
- border-top-right-radius: var(--border-radius-s);
198
- }
199
- }
200
- }
201
- }
202
-
203
- th,
204
- td {
205
- text-align: left;
206
- padding-inline: var(--space-m);
207
- padding-block: var(--space-s);
208
- min-width: 80px;
209
- font-size: var(--font-size-m);
210
- line-height: 1.4em;
211
- font-variant-numeric: tabular-nums;
212
- vertical-align: top;
213
-
214
- &:first-child {
215
- border-left: 1px solid var(--color-border);
216
- }
217
-
218
- border-right: 1px solid var(--color-border);
219
- }
220
-
221
- th {
222
- font-weight: 600;
223
- font-size: var(--font-size-xs);
224
- text-transform: uppercase;
225
- }
226
-
227
- tr {
228
- td {
229
- border-bottom: 1px solid var(--color-border);
230
- font-weight: 400;
231
- }
232
-
233
- &:first-child {
234
- th {
235
- border-top: 1px solid var(--color-border);
236
-
237
- &:first-child {
238
- border-top-left-radius: var(--border-radius-s);
239
- }
240
-
241
- &:last-child {
242
- border-top-right-radius: var(--border-radius-s);
243
- }
244
- }
245
- }
246
-
247
- &:last-child {
248
- th {
249
- &:first-child {
250
- border-bottom-left-radius: var(--border-radius-s);
251
- }
252
-
253
- &:last-child {
254
- border-bottom-right-radius: var(--border-radius-s);
255
- }
256
- }
257
-
258
- td {
259
- &:first-child {
260
- border-bottom-left-radius: var(--border-radius-s);
261
- }
262
-
263
- &:last-child {
264
- border-bottom-right-radius: var(--border-radius-s);
265
- }
266
- }
267
- }
268
- }
269
- }
270
-
271
- dl {
272
- display: grid;
273
- grid-template-columns: repeat(auto-fit, minmax(9ch, max-content));
274
- column-gap: var(--space-l);
275
-
276
- dt,
277
- dd {
278
- padding-inline: var(--space-m);
279
- margin-bottom: var(--space-l);
280
-
281
- &:last-of-type {
282
- margin-bottom: 0;
283
- }
284
- }
285
-
286
- dt {
287
- padding-left: 0;
288
- color: var(--color-text-lighter);
289
- font-weight: 500;
290
- font-size: var(--font-size-m);
291
- grid-column-start: 1;
292
- }
293
-
294
- dd {
295
- color: var(--color-text);
296
- font-size: var(--font-size-m);
297
- }
298
- }
299
-
300
- article,
301
- .typeset {
302
- width: 100%;
303
-
304
- ol,
305
- ul {
306
- ol,
307
- ul {
308
- margin-block: var(--space-l) !important;
309
- }
310
-
311
- li {
312
- margin-bottom: var(--space-m);
313
- font-size: var(--font-size-m);
314
- position: relative;
315
- padding-left: 28px;
316
-
317
- & > ul {
318
- margin-top: 0;
319
- }
320
-
321
- &:before {
322
- content: '';
323
- position: absolute;
324
- top: 5px;
325
- left: 12px;
326
- }
327
-
328
- &:last-of-type {
329
- margin: 0;
330
- }
331
- }
332
- }
333
-
334
- ul {
335
- li {
336
- &:before {
337
- width: 6px;
338
- height: 6px;
339
- border-radius: 100%;
340
- background-color: var(--color-text-lighter);
341
- }
342
- }
343
- }
344
-
345
- ol {
346
- counter-reset: ol;
347
- li {
348
- counter-increment: ol;
349
-
350
- &:before {
351
- content: counter(ol) '.';
352
- top: 0;
353
- left: 8px;
354
- text-align: left;
355
- color: var(--color-text-light);
356
- }
357
- }
358
- }
359
-
360
- h1,
361
- h2,
362
- h3,
363
- h4,
364
- h5,
365
- h6 {
366
- &:not(:first-child) {
367
- margin-top: var(--space-xxl);
368
- }
369
-
370
- margin-bottom: var(--space-xs);
371
- }
372
-
373
- span,
374
- strong,
375
- p {
376
- font-size: var(--font-size-m);
377
- }
378
-
379
- dl,
380
- pre,
381
- img,
382
- table,
383
- ol,
384
- ul,
385
- blockquote,
386
- p {
387
- margin-top: var(--space-l);
388
-
389
- // &:first-child {
390
- // margin-top: 0;
391
- // }
392
- }
393
-
394
- hr {
395
- margin-block: var(--space-l);
396
- }
397
-
398
- img {
399
- border-radius: var(--border-radius-m);
400
- overflow: hidden;
401
- max-width: 100%;
402
- }
403
-
404
- figure {
405
- img {
406
- margin-bottom: var(--space-xs);
407
- }
408
-
409
- figcaption {
410
- text-align: center;
411
- font-size: var(--font-size-s);
412
- color: var(--color-text-lighter);
413
- }
414
- }
415
- }
1
+ // Base style definitions
2
+
3
+ // Definitions should be self contained. No element should ever expect there
4
+ // will be more. Anything like margins and actual article spacings should be
5
+ // defined within the <article> element
6
+
7
+ h1,
8
+ h2,
9
+ h3,
10
+ h4,
11
+ h5,
12
+ h6 {
13
+ display: block;
14
+ font-weight: 800;
15
+ }
16
+
17
+ h1 {
18
+ font-size: var(--font-size-xxxxl);
19
+ }
20
+
21
+ h2 {
22
+ font-size: var(--font-size-xxxl);
23
+ }
24
+
25
+ h3 {
26
+ font-size: var(--font-size-xxl);
27
+ }
28
+
29
+ h4 {
30
+ font-size: var(--font-size-xl);
31
+ }
32
+
33
+ h5 {
34
+ font-size: var(--font-size-l);
35
+ }
36
+
37
+ h6 {
38
+ font-size: var(--font-size-m);
39
+ }
40
+
41
+ figcaption,
42
+ table th,
43
+ table td,
44
+ blockquote,
45
+ p {
46
+ font-size: var(--font-size-m);
47
+ line-height: 1.4em;
48
+ font-weight: 400;
49
+
50
+ & > * {
51
+ line-height: inherit;
52
+ font-size: inherit;
53
+ }
54
+
55
+ a {
56
+ color: var(--color-text);
57
+ text-decoration: underline;
58
+ text-underline-offset: 3px;
59
+
60
+ &:hover {
61
+ text-decoration: none;
62
+ }
63
+ }
64
+
65
+ code {
66
+ font-family: var(--global-font-mono);
67
+ border-radius: var(--border-radius-s);
68
+ background-color: var(--color-bg-raised);
69
+ color: var(--color-text);
70
+ border: 1px solid var(--color-border);
71
+ padding: 0px 3px;
72
+ font-weight: var(--font-weight);
73
+ font-size: var(--font-size-s);
74
+ }
75
+
76
+ strong,
77
+ b {
78
+ font-weight: var(--font-weight-700);
79
+ }
80
+
81
+ i {
82
+ font-style: italic;
83
+ }
84
+
85
+ u {
86
+ text-decoration: line-through;
87
+ }
88
+ }
89
+
90
+ hr {
91
+ border-bottom: 1px solid var(--color-border);
92
+ }
93
+
94
+ span,
95
+ strong,
96
+ p {
97
+ font-size: var(--font-size-m);
98
+ }
99
+
100
+ blockquote {
101
+ display: block;
102
+ padding-block: var(--space-s);
103
+ padding-left: var(--space-l);
104
+ border-left: 3px solid var(--color-border);
105
+ }
106
+
107
+ pre {
108
+ font-family: var(--global-font-mono);
109
+ font-size: var(--font-size-s);
110
+ font-weight: 300;
111
+ line-height: 1.2em;
112
+ padding: var(--space-m);
113
+ border: 1px solid var(--color-border);
114
+ border-radius: var(--border-radius-m);
115
+ white-space: pre-wrap;
116
+ background-color: var(--color-bg-raised);
117
+ z-index: 1;
118
+ position: relative;
119
+
120
+ &[data-lang]::after {
121
+ content: attr(data-lang);
122
+ font-family: var(--global-font);
123
+ display: block;
124
+ position: absolute;
125
+ font-weight: 500;
126
+ top: 6px;
127
+ right: 6px;
128
+ padding: 5px;
129
+ text-align: center;
130
+ text-transform: uppercase;
131
+ border-radius: var(--border-radius-s);
132
+ font-size: var(--font-size-xs);
133
+ color: var(--color-text-light);
134
+ border: 1px solid var(--color-border);
135
+ background-color: var(--color-bg-lowered);
136
+ }
137
+ }
138
+
139
+ table {
140
+ text-indent: 0;
141
+ border-collapse: separate;
142
+ overflow-x: auto;
143
+ max-width: 100%;
144
+
145
+ // TODO: add alternating row colors
146
+
147
+ // TODO add only separating header and body with a border, not between rows
148
+
149
+ // &.bg-dark {
150
+ // background-color: var(--color-bg-lowered);
151
+ // }
152
+
153
+ // &.bg-light {
154
+ // background-color: var(--color-bg-lighter);
155
+ // }
156
+
157
+ // &.no-borders {
158
+ // th,
159
+ // td {
160
+ // border: 0 !important;
161
+ // }
162
+ // }
163
+
164
+ thead {
165
+ th {
166
+ border-bottom: 1px solid var(--color-border);
167
+ border-top: 1px solid var(--color-border);
168
+ white-space: nowrap;
169
+
170
+ &:first-child {
171
+ border-top-left-radius: var(--border-radius-s);
172
+ border-bottom-left-radius: 0 !important;
173
+ }
174
+
175
+ &:last-child {
176
+ border-top-right-radius: var(--border-radius-s);
177
+ border-bottom-right-radius: 0 !important;
178
+ }
179
+ }
180
+ }
181
+
182
+ tbody {
183
+ th {
184
+ border-radius: 0;
185
+ border-bottom: 1px solid var(--color-border);
186
+ }
187
+
188
+ &:first-child tr:first-child {
189
+ td {
190
+ border-top: 1px solid var(--color-border);
191
+
192
+ &:first-child {
193
+ border-top-left-radius: var(--border-radius-s);
194
+ }
195
+
196
+ &:last-child {
197
+ border-top-right-radius: var(--border-radius-s);
198
+ }
199
+ }
200
+ }
201
+ }
202
+
203
+ th,
204
+ td {
205
+ text-align: left;
206
+ padding-inline: var(--space-m);
207
+ padding-block: var(--space-s);
208
+ min-width: 80px;
209
+ font-size: var(--font-size-m);
210
+ line-height: 1.4em;
211
+ font-variant-numeric: tabular-nums;
212
+ vertical-align: top;
213
+
214
+ &:first-child {
215
+ border-left: 1px solid var(--color-border);
216
+ }
217
+
218
+ border-right: 1px solid var(--color-border);
219
+ }
220
+
221
+ th {
222
+ font-weight: 600;
223
+ font-size: var(--font-size-xs);
224
+ text-transform: uppercase;
225
+ }
226
+
227
+ tr {
228
+ td {
229
+ border-bottom: 1px solid var(--color-border);
230
+ font-weight: 400;
231
+ }
232
+
233
+ &:first-child {
234
+ th {
235
+ border-top: 1px solid var(--color-border);
236
+
237
+ &:first-child {
238
+ border-top-left-radius: var(--border-radius-s);
239
+ }
240
+
241
+ &:last-child {
242
+ border-top-right-radius: var(--border-radius-s);
243
+ }
244
+ }
245
+ }
246
+
247
+ &:last-child {
248
+ th {
249
+ &:first-child {
250
+ border-bottom-left-radius: var(--border-radius-s);
251
+ }
252
+
253
+ &:last-child {
254
+ border-bottom-right-radius: var(--border-radius-s);
255
+ }
256
+ }
257
+
258
+ td {
259
+ &:first-child {
260
+ border-bottom-left-radius: var(--border-radius-s);
261
+ }
262
+
263
+ &:last-child {
264
+ border-bottom-right-radius: var(--border-radius-s);
265
+ }
266
+ }
267
+ }
268
+ }
269
+ }
270
+
271
+ dl {
272
+ display: grid;
273
+ grid-template-columns: repeat(auto-fit, minmax(9ch, max-content));
274
+ column-gap: var(--space-l);
275
+
276
+ dt,
277
+ dd {
278
+ padding-inline: var(--space-m);
279
+ margin-bottom: var(--space-l);
280
+
281
+ &:last-of-type {
282
+ margin-bottom: 0;
283
+ }
284
+ }
285
+
286
+ dt {
287
+ padding-left: 0;
288
+ color: var(--color-text-lighter);
289
+ font-weight: 500;
290
+ font-size: var(--font-size-m);
291
+ grid-column-start: 1;
292
+ }
293
+
294
+ dd {
295
+ color: var(--color-text);
296
+ font-size: var(--font-size-m);
297
+ }
298
+ }
299
+
300
+ article,
301
+ .typeset {
302
+ width: 100%;
303
+
304
+ ol,
305
+ ul {
306
+ ol,
307
+ ul {
308
+ margin-block: var(--space-l) !important;
309
+ }
310
+
311
+ li {
312
+ margin-bottom: var(--space-m);
313
+ font-size: var(--font-size-m);
314
+ position: relative;
315
+ padding-left: 28px;
316
+
317
+ & > ul {
318
+ margin-top: 0;
319
+ }
320
+
321
+ &:before {
322
+ content: '';
323
+ position: absolute;
324
+ top: 5px;
325
+ left: 12px;
326
+ }
327
+
328
+ &:last-of-type {
329
+ margin: 0;
330
+ }
331
+ }
332
+ }
333
+
334
+ ul {
335
+ li {
336
+ &:before {
337
+ width: 6px;
338
+ height: 6px;
339
+ border-radius: 100%;
340
+ background-color: var(--color-text-lighter);
341
+ }
342
+ }
343
+ }
344
+
345
+ ol {
346
+ counter-reset: ol;
347
+ li {
348
+ counter-increment: ol;
349
+
350
+ &:before {
351
+ content: counter(ol) '.';
352
+ top: 0;
353
+ left: 8px;
354
+ text-align: left;
355
+ color: var(--color-text-light);
356
+ }
357
+ }
358
+ }
359
+
360
+ h1,
361
+ h2,
362
+ h3,
363
+ h4,
364
+ h5,
365
+ h6 {
366
+ &:not(:first-child) {
367
+ margin-top: var(--space-xxl);
368
+ }
369
+
370
+ margin-bottom: var(--space-xs);
371
+ }
372
+
373
+ span,
374
+ strong,
375
+ p {
376
+ font-size: var(--font-size-m);
377
+ }
378
+
379
+ dl,
380
+ pre,
381
+ img,
382
+ table,
383
+ ol,
384
+ ul,
385
+ blockquote,
386
+ p {
387
+ margin-top: var(--space-l);
388
+
389
+ // &:first-child {
390
+ // margin-top: 0;
391
+ // }
392
+ }
393
+
394
+ hr {
395
+ margin-block: var(--space-l);
396
+ }
397
+
398
+ img {
399
+ border-radius: var(--border-radius-m);
400
+ overflow: hidden;
401
+ max-width: 100%;
402
+ }
403
+
404
+ figure {
405
+ img {
406
+ margin-bottom: var(--space-xs);
407
+ }
408
+
409
+ figcaption {
410
+ text-align: center;
411
+ font-size: var(--font-size-s);
412
+ color: var(--color-text-lighter);
413
+ }
414
+ }
415
+ }