@staticbolt/docs 0.0.1-beta.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 (94) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +148 -0
  3. package/lib/collapsible-plugin-Bwt7dmKE.mjs +132 -0
  4. package/lib/ec-config.mjs +59 -0
  5. package/lib/ec.config.d.mts +5 -0
  6. package/lib/index.d.mts +371 -0
  7. package/lib/plugins.mjs +0 -0
  8. package/package.json +113 -0
  9. package/sources/assets/fonts/KaTeX_AMS-Regular.ttf +0 -0
  10. package/sources/assets/fonts/KaTeX_AMS-Regular.woff +0 -0
  11. package/sources/assets/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  12. package/sources/assets/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  13. package/sources/assets/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  14. package/sources/assets/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  15. package/sources/assets/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  16. package/sources/assets/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  17. package/sources/assets/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  18. package/sources/assets/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  19. package/sources/assets/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  20. package/sources/assets/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  21. package/sources/assets/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  22. package/sources/assets/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  23. package/sources/assets/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  24. package/sources/assets/fonts/KaTeX_Main-Bold.ttf +0 -0
  25. package/sources/assets/fonts/KaTeX_Main-Bold.woff +0 -0
  26. package/sources/assets/fonts/KaTeX_Main-Bold.woff2 +0 -0
  27. package/sources/assets/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  28. package/sources/assets/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  29. package/sources/assets/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  30. package/sources/assets/fonts/KaTeX_Main-Italic.ttf +0 -0
  31. package/sources/assets/fonts/KaTeX_Main-Italic.woff +0 -0
  32. package/sources/assets/fonts/KaTeX_Main-Italic.woff2 +0 -0
  33. package/sources/assets/fonts/KaTeX_Main-Regular.ttf +0 -0
  34. package/sources/assets/fonts/KaTeX_Main-Regular.woff +0 -0
  35. package/sources/assets/fonts/KaTeX_Main-Regular.woff2 +0 -0
  36. package/sources/assets/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  37. package/sources/assets/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  38. package/sources/assets/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  39. package/sources/assets/fonts/KaTeX_Math-Italic.ttf +0 -0
  40. package/sources/assets/fonts/KaTeX_Math-Italic.woff +0 -0
  41. package/sources/assets/fonts/KaTeX_Math-Italic.woff2 +0 -0
  42. package/sources/assets/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  43. package/sources/assets/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  44. package/sources/assets/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  45. package/sources/assets/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  46. package/sources/assets/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  47. package/sources/assets/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  48. package/sources/assets/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  49. package/sources/assets/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  50. package/sources/assets/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  51. package/sources/assets/fonts/KaTeX_Script-Regular.ttf +0 -0
  52. package/sources/assets/fonts/KaTeX_Script-Regular.woff +0 -0
  53. package/sources/assets/fonts/KaTeX_Script-Regular.woff2 +0 -0
  54. package/sources/assets/fonts/KaTeX_Size1-Regular.ttf +0 -0
  55. package/sources/assets/fonts/KaTeX_Size1-Regular.woff +0 -0
  56. package/sources/assets/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  57. package/sources/assets/fonts/KaTeX_Size2-Regular.ttf +0 -0
  58. package/sources/assets/fonts/KaTeX_Size2-Regular.woff +0 -0
  59. package/sources/assets/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  60. package/sources/assets/fonts/KaTeX_Size3-Regular.ttf +0 -0
  61. package/sources/assets/fonts/KaTeX_Size3-Regular.woff +0 -0
  62. package/sources/assets/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  63. package/sources/assets/fonts/KaTeX_Size4-Regular.ttf +0 -0
  64. package/sources/assets/fonts/KaTeX_Size4-Regular.woff +0 -0
  65. package/sources/assets/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  66. package/sources/assets/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  67. package/sources/assets/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  68. package/sources/assets/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  69. package/sources/parts/badge/badge.part.html +3 -0
  70. package/sources/parts/badge/badge.style.css +44 -0
  71. package/sources/parts/callouts/callouts.part.html +30 -0
  72. package/sources/parts/color-scheme-switch/color-scheme-switch.part.html +111 -0
  73. package/sources/parts/color-scheme-switch/color-scheme-switch.style.css +77 -0
  74. package/sources/parts/document/document.part.html +66 -0
  75. package/sources/parts/header/header.part.html +62 -0
  76. package/sources/parts/header/header.style.css +123 -0
  77. package/sources/parts/mermaid/mermaid.part.html +15 -0
  78. package/sources/parts/pagefind/pagefind.part.html +75 -0
  79. package/sources/parts/pagefind/pagefind.style.css +57 -0
  80. package/sources/parts/pagination-links/pagination-links.part.html +81 -0
  81. package/sources/parts/pagination-links/pagination-links.style.css +58 -0
  82. package/sources/parts/sidebar/directory.part.html +13 -0
  83. package/sources/parts/sidebar/item.part.html +9 -0
  84. package/sources/parts/sidebar/sidebar.part.html +106 -0
  85. package/sources/parts/sidebar/sidebar.style.css +202 -0
  86. package/sources/parts/table-of-content/table-of-content-desktop.part.html +122 -0
  87. package/sources/parts/table-of-content/table-of-content-mobile.part.html +24 -0
  88. package/sources/parts/table-of-content/table-of-content.style.css +189 -0
  89. package/sources/scripts/global.d.ts +27 -0
  90. package/sources/scripts/mermaid.ts +75 -0
  91. package/sources/styles/docs.css +9 -0
  92. package/sources/styles/document.css +579 -0
  93. package/sources/styles/global.css +149 -0
  94. package/sources/styles/katex.css +1445 -0
@@ -0,0 +1,579 @@
1
+ /* Prevent mermaid tooltips from messing with the layout when its not used */
2
+ /* stylelint-disable-next-line selector-class-pattern */
3
+ .mermaidTooltip {
4
+ /* stylelint-disable-next-line csstools/use-logical */
5
+ top: 50%;
6
+ /* stylelint-disable-next-line csstools/use-logical */
7
+ left: 50%;
8
+ }
9
+
10
+ a.skip-content-link {
11
+ position: fixed;
12
+ inset-block-start: 0.75rem;
13
+ inset-inline-start: 0.75rem;
14
+ z-index: 300;
15
+ padding: 0.5rem 1rem;
16
+ color: var(--sb-color-black);
17
+ text-decoration: none;
18
+ background-color: var(--sb-color-accent-high);
19
+ translate: 0 calc(-100% - 1.5rem);
20
+ transition: translate 0.15s ease;
21
+
22
+ &:focus-visible {
23
+ translate: 0 0;
24
+ }
25
+ }
26
+
27
+ .markdown-layout {
28
+ display: grid;
29
+ grid-template-columns:
30
+ minmax(min-content, 2fr) /* sidebar */
31
+ minmax(0, 1000px) /* content: 1000px matches the content max-inline-size */
32
+ minmax(min-content, 2fr); /* toc */
33
+
34
+ align-items: start;
35
+ inline-size: 100%;
36
+ max-inline-size: 100rem; /* matching the header max-inline-size */
37
+ min-block-size: calc(100svh - var(--sb-header-height));
38
+ margin-inline: auto;
39
+
40
+ @media (max-width: 72rem) {
41
+ grid-template-columns: minmax(min-content, 2fr) minmax(0, 1000px);
42
+ }
43
+
44
+ @media (max-width: 900px) {
45
+ grid-template-columns: 1fr;
46
+ }
47
+ }
48
+
49
+ .markdown-wrapper {
50
+ min-inline-size: 0;
51
+ max-inline-size: 1000px;
52
+ block-size: calc(100% - var(--sb-toc-mobile-height));
53
+
54
+ @media print {
55
+ max-inline-size: unset;
56
+ }
57
+
58
+ .markdown-body {
59
+ display: flex;
60
+ flex-direction: column;
61
+ justify-content: space-between;
62
+ block-size: 100%;
63
+ padding-block: 1em 4em;
64
+ padding-inline: 3em;
65
+ font-family: var(--sb-md-font);
66
+ line-height: var(--sb-line-height);
67
+ -webkit-font-smoothing: antialiased;
68
+
69
+ @media (max-width: 900px) {
70
+ padding: 1em;
71
+ }
72
+
73
+ p:not(:where(.not-content *)) {
74
+ margin-block: var(--sb-content-gap-y) 0;
75
+ color: var(--sb-color-text);
76
+ overflow-wrap: break-word;
77
+ }
78
+
79
+ a:not(:where(.not-content *)) {
80
+ color: var(--sb-color-text);
81
+ text-underline-offset: 0.25em;
82
+
83
+ &:hover {
84
+ color: var(--sb-color-accent-high);
85
+ }
86
+
87
+ &[data-footnote-ref] {
88
+ padding-inline: 0.2em;
89
+ color: var(--sb-color-accent-high);
90
+
91
+ &::before {
92
+ color: var(--sb-color-gray-3);
93
+ content: "[";
94
+ }
95
+
96
+ &::after {
97
+ color: var(--sb-color-gray-3);
98
+ content: "]";
99
+ }
100
+ }
101
+
102
+ &[data-footnote-backref] {
103
+ color: var(--sb-color-accent-high);
104
+ }
105
+ }
106
+
107
+ hr:not(:where(.not-content *)) {
108
+ margin-block: var(--sb-content-gap-y) 0;
109
+ border: 0;
110
+ border-block-end: 1px solid var(--sb-color-gray-5);
111
+ }
112
+
113
+ mark:not(:where(.not-content *)) {
114
+ padding: 0.1em 0.2em;
115
+ color: var(--sb-color-gray-7);
116
+ background-color: var(--sb-color-accent);
117
+ border-radius: 4px;
118
+ }
119
+
120
+ details:not(:where(.not-content *), :where(.expressive-code *)) {
121
+ padding-inline-start: 1rem;
122
+ margin-block: var(--sb-content-gap-y) 0;
123
+ color: var(--sb-color-text);
124
+ border-inline-start: 2px solid var(--sb-color-gray-5);
125
+ border-inline-start-width: 1px;
126
+ transition: border-color 0.2s ease-in-out;
127
+
128
+ summary {
129
+ display: block;
130
+ margin-block-start: var(--sb-content-gap-y);
131
+ font-weight: bold;
132
+ color: var(--sb-heading-color);
133
+ cursor: pointer;
134
+
135
+ &::before {
136
+ display: inline-block;
137
+ inline-size: 1em;
138
+ block-size: 1em;
139
+ margin-inline: calc((1em / 4) * -1) 0.25rem;
140
+ vertical-align: middle;
141
+ content: "";
142
+ background-color: var(--sb-heading-color);
143
+ mask: url("data:image/svg+xml,%3C!--License%3A%20MIT.%20Made%20by%20IconPark%3A%20https%3A%2F%2Fgithub.com%2Fbytedance%2FIconPark--%3E%3Csvg%20width%3D%2248px%22%20height%3D%2248px%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%2012L31%2024L19%2036%22%20stroke%3D%22black%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E")
144
+ no-repeat center / contain;
145
+ transition: transform 0.2s ease-in-out;
146
+ }
147
+ }
148
+
149
+ &:hover {
150
+ border-color: var(--sb-color-gray-4);
151
+ }
152
+
153
+ &[open] {
154
+ summary {
155
+ margin-block: var(--sb-content-gap-y);
156
+
157
+ &::before {
158
+ transform: rotate(90deg);
159
+ }
160
+ }
161
+ }
162
+ }
163
+
164
+ code:not(:where(.not-content *), pre code) {
165
+ padding: 0.125rem 0.375rem;
166
+ margin-block: -0.125rem;
167
+ font-family: var(--sb-font-mono);
168
+ font-size: inherit;
169
+ font-size-adjust: 0.5;
170
+ color: var(--sb-color-gray-0);
171
+ overflow-wrap: break-word;
172
+ background-color: var(--sb-code-inline-background);
173
+ border-radius: 5px;
174
+ }
175
+
176
+ blockquote:not(:where(.not-content *)) {
177
+ padding-inline-start: 1rem;
178
+ margin-inline: 1em;
179
+ color: var(--sb-color-text);
180
+ border-inline-start: 2px solid var(--sb-color-accent);
181
+
182
+ p {
183
+ overflow-wrap: break-word;
184
+ }
185
+ }
186
+
187
+ ul:not(:where(.not-content *)),
188
+ ol:not(:where(.not-content *)) {
189
+ margin-block: var(--sb-content-gap-y) 0;
190
+ color: var(--sb-color-text);
191
+
192
+ li {
193
+ overflow-wrap: anywhere;
194
+ }
195
+ }
196
+
197
+ .table-wrapper:not(:where(.not-content *)) {
198
+ display: block;
199
+ margin-block: var(--sb-content-gap-y) 0;
200
+ overflow: auto;
201
+ border: var(--sv-bdr-sz-sm) solid var(--sb-color-gray-5);
202
+ border-radius: var(--sv-bdr-rad-md);
203
+
204
+ table {
205
+ display: table;
206
+ inline-size: 100%;
207
+ border-spacing: 0;
208
+ border-collapse: collapse;
209
+
210
+ th {
211
+ padding: 0.5rem 1rem;
212
+ font-weight: 600;
213
+ color: var(--sb-heading-color);
214
+ background-color: var(--sb-color-gray-6);
215
+ border-block-end: var(--sv-bdr-sz-sm) solid var(--sb-color-gray-5);
216
+ }
217
+
218
+ thead:not(:has(th:not(:empty))) {
219
+ display: none;
220
+ }
221
+
222
+ th:not([align]) {
223
+ text-align: start;
224
+ }
225
+
226
+ td {
227
+ padding: 0.5rem 1rem;
228
+ vertical-align: baseline;
229
+ color: var(--sb-color-text);
230
+ border-block-end: var(--sv-bdr-sz-sm) solid var(--sb-color-gray-5);
231
+ }
232
+
233
+ tbody tr:nth-child(2n) td {
234
+ background-color: var(--sb-color-gray-7);
235
+ }
236
+
237
+ tbody tr:last-child td {
238
+ border-block-end: none;
239
+ }
240
+
241
+ tbody {
242
+ margin-block: var(--sb-content-gap-y) 0;
243
+ }
244
+ }
245
+ }
246
+
247
+ h1 {
248
+ font-size: var(--sb-text-h1);
249
+ }
250
+
251
+ h2 {
252
+ font-size: var(--sb-text-h2);
253
+ }
254
+
255
+ h3 {
256
+ font-size: var(--sb-text-h3);
257
+ }
258
+
259
+ h4 {
260
+ font-size: var(--sb-text-h4);
261
+ }
262
+
263
+ h5 {
264
+ font-size: var(--sb-text-h5);
265
+ }
266
+
267
+ h6 {
268
+ font-size: var(--sb-text-h6);
269
+ }
270
+
271
+ h1:not(:where(.not-content *)),
272
+ h2:not(:where(.not-content *)),
273
+ h3:not(:where(.not-content *)),
274
+ h4:not(:where(.not-content *)),
275
+ h5:not(:where(.not-content *)),
276
+ h6:not(:where(.not-content *)) {
277
+ margin-block: var(--sb-content-gap-y) 0;
278
+ font-weight: 600;
279
+ line-height: var(--sb-line-height-headings);
280
+ color: var(--sb-heading-color);
281
+ overflow-wrap: break-word;
282
+
283
+ a:last-child {
284
+ color: var(--sb-heading-color);
285
+ text-decoration: none;
286
+ }
287
+
288
+ a:last-child:visited {
289
+ color: var(--sb-heading-color);
290
+ }
291
+
292
+ a:last-child .icon.icon-link {
293
+ display: inline-block;
294
+ inline-size: var(--sb-anchor-icon-size);
295
+ block-size: var(--sb-anchor-icon-size);
296
+ padding-inline-start: var(--sb-anchor-icon-space);
297
+ vertical-align: middle;
298
+ background-color: var(--sb-anchor-icon-color);
299
+ opacity: 0;
300
+ mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22m12.11%2015.39-3.88%203.88a2.52%202.52%200%200%201-3.5%200%202.47%202.47%200%200%201%200-3.5l3.88-3.88a1%201%200%200%200-1.42-1.42l-3.88%203.89a4.48%204.48%200%200%200%206.33%206.33l3.89-3.88a1%201%200%201%200-1.42-1.42Zm8.58-12.08a4.49%204.49%200%200%200-6.33%200l-3.89%203.88a1%201%200%200%200%201.42%201.42l3.88-3.88a2.52%202.52%200%200%201%203.5%200%202.47%202.47%200%200%201%200%203.5l-3.88%203.88a1%201%200%201%200%201.42%201.42l3.88-3.89a4.49%204.49%200%200%200%200-6.33ZM8.83%2015.17a1%201%200%200%200%201.1.22%201%201%200%200%200%20.32-.22l4.92-4.92a1%201%200%200%200-1.42-1.42l-4.92%204.92a1%201%200%200%200%200%201.42Z%22%2F%3E%3C%2Fsvg%3E")
301
+ no-repeat center / contain;
302
+ transition: opacity 200ms ease-in-out;
303
+ }
304
+
305
+ &:hover a:last-child .icon.icon-link {
306
+ opacity: 1;
307
+ }
308
+
309
+ a:last-child:focus-visible .icon.icon-link {
310
+ opacity: 1;
311
+ }
312
+ }
313
+
314
+ :not(h1, h2, h3, h4, h5, h6) + :is(h1, h2, h3, h4, h5, h6) {
315
+ margin-block-start: 1.5em;
316
+ }
317
+
318
+ .expressive-code {
319
+ .frame {
320
+ margin-block: var(--sb-content-gap-y) 0;
321
+
322
+ .title {
323
+ display: flex;
324
+ gap: 1em;
325
+ align-items: center;
326
+
327
+ svg {
328
+ inline-size: 1.5em;
329
+ block-size: 1.5em;
330
+ }
331
+ }
332
+ }
333
+
334
+ .ec-section > details > summary {
335
+ list-style: none;
336
+ }
337
+
338
+ .ec-line mark {
339
+ /* stylelint-disable-next-line custom-property-pattern */
340
+ --tmInlineBgCol: var(--sb-color-gray-6);
341
+ /* stylelint-disable-next-line custom-property-pattern */
342
+ --tmInlineBrdCol: transparent;
343
+ }
344
+
345
+ .ec-line :where(span[style^="--"]:not([class])) {
346
+ /* stylelint-disable-next-line custom-property-pattern */
347
+ font-style: light-dark(var(--1fs, inherit), var(--0fs, inherit));
348
+ /* stylelint-disable-next-line custom-property-pattern */
349
+ font-weight: light-dark(var(--1fw, inherit), var(--0fw, inherit));
350
+ /* stylelint-disable-next-line custom-property-pattern */
351
+ color: light-dark(var(--1, inherit), var(--0, inherit));
352
+ /* stylelint-disable-next-line custom-property-pattern */
353
+ text-decoration: light-dark(var(--1td, inherit), var(--0td, inherit));
354
+ /* stylelint-disable-next-line custom-property-pattern */
355
+ background-color: light-dark(var(--1bg, transparent), var(--0bg, transparent));
356
+ }
357
+ }
358
+
359
+ .obsidian-tag {
360
+ display: inline-block;
361
+ padding: 0 0.5em;
362
+ color: var(--sb-color-accent-high);
363
+ background-color: var(--sb-color-accent-low);
364
+ border-radius: 8px;
365
+ }
366
+
367
+ .katex:has(> math[display="block"]) {
368
+ display: block;
369
+ margin-block: var(--sb-content-gap-y) 0;
370
+ text-align: center;
371
+ }
372
+
373
+ .mermaid {
374
+ display: flex;
375
+ justify-content: center;
376
+
377
+ &:not(:has(svg)) {
378
+ position: relative;
379
+ color: transparent;
380
+ user-select: none;
381
+
382
+ &::after {
383
+ position: absolute;
384
+ inset: 0;
385
+ display: flex;
386
+ align-items: center;
387
+ justify-content: center;
388
+ font-size: 1rem;
389
+ font-weight: 600;
390
+ color: var(--sb-color-accent-high);
391
+ content: "Loading diagram";
392
+ animation: loading-dots 1.2s steps(1) infinite;
393
+ }
394
+ }
395
+ }
396
+
397
+ sv-accordion.callout {
398
+ --sv-gray-6: transparent;
399
+ --sv-gray-5: transparent;
400
+ --sv-bdr-rad-md: 0;
401
+
402
+ padding: 0;
403
+
404
+ .callout-content {
405
+ translate: 0 50px;
406
+ transition: translate var(--sv-toggle-dur) var(--sv-toggle-ease);
407
+
408
+ p {
409
+ margin-block: 0 var(--sb-content-gap-y);
410
+ }
411
+ }
412
+
413
+ &:state(--open) .callout-content {
414
+ translate: 0 0;
415
+ }
416
+ }
417
+
418
+ .callout {
419
+ padding: 1rem;
420
+ margin-block: var(--sb-content-gap-y) 0;
421
+ margin-inline: 0;
422
+ color: var(--sb-color-white);
423
+ border-radius: 0.5rem;
424
+
425
+ summary::before {
426
+ display: none;
427
+ }
428
+
429
+ .callout-fold-icon {
430
+ display: flex;
431
+ align-items: center;
432
+ justify-content: center;
433
+ transform: rotate(-90deg);
434
+ transition: transform 0.2s ease-in-out;
435
+ }
436
+
437
+ &[open] .callout-fold-icon {
438
+ transform: rotate(0deg);
439
+ }
440
+
441
+ .callout-title {
442
+ display: flex;
443
+ gap: 0.5rem;
444
+ align-items: center;
445
+ margin: 0;
446
+ font-size: var(--sb-text-h5);
447
+ font-weight: 600;
448
+ line-height: var(--sb-line-height-headings);
449
+
450
+ .callout-title-icon svg {
451
+ inline-size: 1em;
452
+ block-size: 1em;
453
+ font-size: 1.2em;
454
+ }
455
+ }
456
+
457
+ &[data-callout="warning"],
458
+ &[data-callout="help"],
459
+ &[data-callout="faq"],
460
+ &[data-callout="attention"],
461
+ &[data-callout="caution"],
462
+ &[data-callout="question"] {
463
+ --sv-gray-2: var(--sb-warning-text);
464
+
465
+ background-color: var(--sb-warning-background);
466
+ border: 1px solid var(--sb-warning-border);
467
+
468
+ .callout-title,
469
+ .callout-content p {
470
+ color: var(--sb-warning-text);
471
+ }
472
+ }
473
+
474
+ &[data-callout="danger"],
475
+ &[data-callout="error"],
476
+ &[data-callout="bug"],
477
+ &[data-callout="missing"],
478
+ &[data-callout="fail"],
479
+ &[data-callout="failure"] {
480
+ --sv-gray-2: var(--sb-caution-text);
481
+
482
+ background-color: var(--sb-caution-background);
483
+ border: 1px solid var(--sb-caution-border);
484
+
485
+ .callout-title,
486
+ .callout-content p {
487
+ color: var(--sb-caution-text);
488
+ }
489
+ }
490
+
491
+ &[data-callout="note"],
492
+ &[data-callout="todo"],
493
+ &[data-callout="info"] {
494
+ --sv-gray-2: var(--sb-note-text);
495
+
496
+ background-color: var(--sb-note-background);
497
+ border: 1px solid var(--sb-note-border);
498
+
499
+ .callout-title,
500
+ .callout-content p {
501
+ color: var(--sb-note-text);
502
+ }
503
+ }
504
+
505
+ &[data-callout="important"],
506
+ &[data-callout="example"] {
507
+ --sv-gray-2: var(--sb-important-text);
508
+
509
+ background-color: var(--sb-important-background);
510
+ border: 1px solid var(--sb-important-border);
511
+
512
+ .callout-title,
513
+ .callout-content p {
514
+ color: var(--sb-important-text);
515
+ }
516
+ }
517
+
518
+ &[data-callout="tip"],
519
+ &[data-callout="summary"],
520
+ &[data-callout="tldr"],
521
+ &[data-callout="hint"],
522
+ &[data-callout="abstract"] {
523
+ --sv-gray-2: var(--sb-tip-text);
524
+
525
+ background-color: var(--sb-tip-background);
526
+ border: 1px solid var(--sb-tip-border);
527
+
528
+ .callout-title,
529
+ .callout-content p {
530
+ color: var(--sb-tip-text);
531
+ }
532
+ }
533
+
534
+ &[data-callout="done"],
535
+ &[data-callout="check"],
536
+ &[data-callout="success"] {
537
+ --sv-gray-2: var(--sb-success-text);
538
+
539
+ background-color: var(--sb-success-background);
540
+ border: 1px solid var(--sb-success-border);
541
+
542
+ .callout-title,
543
+ .callout-content p {
544
+ color: var(--sb-success-text);
545
+ }
546
+ }
547
+
548
+ &[data-callout="quote"] {
549
+ --sv-gray-2: var(--sb-color-gray-2);
550
+
551
+ background-color: var(--sb-color-gray-7);
552
+ border: 1px solid var(--sb-color-gray-4);
553
+
554
+ .callout-title,
555
+ .callout-content p {
556
+ color: var(--sb-color-gray-2);
557
+ }
558
+ }
559
+ }
560
+ }
561
+ }
562
+
563
+ @keyframes loading-dots {
564
+ 0% {
565
+ content: "Loading diagram\00a0\00a0\00a0";
566
+ }
567
+
568
+ 25% {
569
+ content: "Loading diagram.\00a0\00a0";
570
+ }
571
+
572
+ 50% {
573
+ content: "Loading diagram..\00a0";
574
+ }
575
+
576
+ 75% {
577
+ content: "Loading diagram...";
578
+ }
579
+ }