@oxide/design-system 6.3.0 → 6.4.1-canary.8495bee

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.
package/dist/asciidoc.css CHANGED
@@ -14,20 +14,20 @@
14
14
  color: var(--content-default);
15
15
  line-height: 1.5 !important;
16
16
  margin-bottom: 1.25rem;
17
- }
18
17
 
19
- @media (min-width: 800px) {
20
- p {
18
+ @media (min-width: 800px) {
21
19
  margin-bottom: 0.75rem;
22
20
  }
23
21
  }
24
22
 
25
- .lead p {
26
- color: var(--content-raise);
27
- }
23
+ .lead {
24
+ p {
25
+ color: var(--content-raise);
26
+ }
28
27
 
29
- .paragraph.lead p {
30
- @apply text-sans-xl;
28
+ &.paragraph p {
29
+ @apply text-sans-xl;
30
+ }
31
31
  }
32
32
 
33
33
  /* --- Strong / emphasis --- */
@@ -92,13 +92,28 @@
92
92
  }
93
93
 
94
94
  /* Section numbers rendered before each heading */
95
- :is(h1, h2, h3, h4, h5)[data-sectnum]::before {
96
- content: attr(data-sectnum);
97
- color: var(--content-tertiary);
98
- display: inline-block;
99
- pointer-events: none;
100
- margin-right: 0.5rem;
101
- top: 6px;
95
+ :is(h1, h2, h3, h4, h5)[data-sectnum] {
96
+ &::before {
97
+ content: attr(data-sectnum);
98
+ color: var(--content-tertiary);
99
+ display: inline-block;
100
+ pointer-events: none;
101
+ margin-right: 0.5rem;
102
+ top: 6px;
103
+
104
+ @media (min-width: 800px) {
105
+ @apply text-sans-lg;
106
+ position: absolute;
107
+ left: -72px;
108
+ width: 60px;
109
+ margin-right: 0;
110
+ text-align: right;
111
+ }
112
+ }
113
+
114
+ a::after {
115
+ display: none;
116
+ }
102
117
  }
103
118
 
104
119
  h3[data-sectnum]::before {
@@ -110,21 +125,6 @@
110
125
  top: 0;
111
126
  }
112
127
 
113
- @media (min-width: 800px) {
114
- :is(h1, h2, h3, h4, h5)[data-sectnum]::before {
115
- @apply text-sans-lg;
116
- position: absolute;
117
- left: -72px;
118
- width: 60px;
119
- margin-right: 0;
120
- text-align: right;
121
- }
122
- }
123
-
124
- :is(h1, h2, h3, h4, h5)[data-sectnum] a::after {
125
- display: none;
126
- }
127
-
128
128
  /* Heading anchors */
129
129
  .anchor,
130
130
  .sectionanchor {
@@ -139,10 +139,10 @@
139
139
  color: var(--content-accent-secondary);
140
140
  text-decoration: underline;
141
141
  text-decoration-color: color-mix(in srgb, currentColor 50%, transparent);
142
- }
143
142
 
144
- a:not(:is(h1, h2, h3, h4, h5, h6, .title) a):hover {
145
- color: var(--content-accent);
143
+ &:hover {
144
+ color: var(--content-accent);
145
+ }
146
146
  }
147
147
 
148
148
  a:hover,
@@ -161,26 +161,30 @@
161
161
  @apply text-mono-sm;
162
162
  margin-bottom: 0.75rem;
163
163
  list-style-position: inside;
164
+
165
+ @media (min-width: 800px) {
166
+ list-style-position: outside;
167
+ }
164
168
  }
165
169
 
166
170
  ul {
167
171
  list-style-type: disc;
168
- }
169
172
 
170
- ol {
171
- list-style-type: decimal;
172
- }
173
+ ul li {
174
+ list-style-type: circle;
175
+ }
173
176
 
174
- ul ul li {
175
- list-style-type: circle;
176
- }
177
+ ul ul li {
178
+ list-style-type: square;
179
+ }
177
180
 
178
- ul ul ul li {
179
- list-style-type: square;
181
+ ul ul ul li {
182
+ list-style-type: disc;
183
+ }
180
184
  }
181
185
 
182
- ul ul ul ul li {
183
- list-style-type: disc;
186
+ ol {
187
+ list-style-type: decimal;
184
188
  }
185
189
 
186
190
  .arabic {
@@ -223,6 +227,19 @@
223
227
  margin-bottom: 0;
224
228
  }
225
229
 
230
+ /* --- Description lists --- */
231
+ dl {
232
+ dt {
233
+ margin-bottom: 0.3125em;
234
+ font-weight: bold;
235
+ }
236
+
237
+ dd {
238
+ margin-bottom: 1.25em;
239
+ margin-left: 1.125em;
240
+ }
241
+ }
242
+
226
243
  /* Lists inside blocks where outside marker position would be clipped */
227
244
  .tableblock ul,
228
245
  .tableblock ol,
@@ -238,14 +255,13 @@
238
255
  .olist .ulist,
239
256
  .olist .olist {
240
257
  margin-left: 2rem;
241
- }
242
258
 
243
- @media (min-width: 800px) {
244
- ul,
245
- ol {
246
- list-style-position: outside;
259
+ @media (min-width: 800px) {
260
+ margin-left: 0.5rem;
247
261
  }
262
+ }
248
263
 
264
+ @media (min-width: 800px) {
249
265
  ul:first-of-type,
250
266
  .github-markdown > ul {
251
267
  margin-left: 1rem;
@@ -255,25 +271,18 @@
255
271
  .github-markdown > ol {
256
272
  margin-left: 1.5rem;
257
273
  }
258
-
259
- .ulist .ulist,
260
- .ulist .olist,
261
- .olist .ulist,
262
- .olist .olist {
263
- margin-left: 0.5rem;
264
- }
265
274
  }
266
275
 
267
276
  /* --- Description lists --- */
268
277
  .dlist dt {
269
278
  @apply text-sans-lg;
270
279
  color: var(--content-raise);
271
- }
272
280
 
273
- .dlist dt::after {
274
- @apply text-sans-lg;
275
- content: ':';
276
- color: var(--content-tertiary);
281
+ &::after {
282
+ @apply text-sans-lg;
283
+ content: ':';
284
+ color: var(--content-tertiary);
285
+ }
277
286
  }
278
287
 
279
288
  /* --- Quote blocks --- */
@@ -282,15 +291,15 @@
282
291
  border-left: 1px solid var(--stroke-default);
283
292
  margin: 2rem 0;
284
293
  padding-left: 1.6rem;
285
- }
286
294
 
287
- .quoteblock p {
288
- color: var(--content-secondary);
289
- }
295
+ p {
296
+ color: var(--content-secondary);
297
+ }
290
298
 
291
- .quoteblock .attribution {
292
- color: var(--content-raise);
293
- margin-top: 2rem;
299
+ .attribution {
300
+ color: var(--content-raise);
301
+ margin-top: 2rem;
302
+ }
294
303
  }
295
304
 
296
305
  .attribution cite {
@@ -306,15 +315,23 @@
306
315
  border-radius: var(--radius-md);
307
316
  margin: 1.5rem 0;
308
317
  padding: 0.75rem;
309
- }
310
318
 
311
- .admonitionblock strong {
312
- color: var(--content-accent);
313
- }
319
+ strong {
320
+ color: var(--content-accent);
321
+ }
314
322
 
315
- .admonitionblock a {
316
- color: var(--content-accent);
317
- text-decoration-line: underline;
323
+ a {
324
+ color: var(--content-accent);
325
+ text-decoration-line: underline;
326
+ }
327
+
328
+ .quoteblock {
329
+ background-color: var(--surface-default);
330
+ border: 0;
331
+ border-radius: var(--radius-md);
332
+ margin: 0.5rem 0;
333
+ padding: 0.75rem;
334
+ }
318
335
  }
319
336
 
320
337
  .admonition-icon svg {
@@ -326,48 +343,48 @@
326
343
 
327
344
  .admonition-content {
328
345
  @apply text-sans-md;
329
- }
330
346
 
331
- .admonition-content p {
332
- @apply text-sans-md;
333
- color: currentColor;
334
- margin-bottom: 0;
335
- }
347
+ @media (min-width: 800px) {
348
+ margin-right: 1.25rem;
349
+ }
336
350
 
337
- .admonition-content > div:first-of-type {
338
- color: var(--content-accent);
339
- }
351
+ p {
352
+ @apply text-sans-md;
353
+ color: currentColor;
354
+ margin-bottom: 0;
355
+ }
340
356
 
341
- .admonition-content .admonition-title {
342
- margin-bottom: 0.5rem;
343
- font-style: italic;
344
- }
357
+ > div:first-of-type {
358
+ color: var(--content-accent);
359
+ }
345
360
 
346
- .admonition-content .paragraph {
347
- margin-bottom: 0.25rem;
348
- }
361
+ .admonition-title {
362
+ margin-bottom: 0.5rem;
363
+ font-style: italic;
364
+ }
349
365
 
350
- .admonition-content .paragraph:last-child {
351
- margin-bottom: 0;
352
- }
366
+ .paragraph {
367
+ margin-bottom: 0.25rem;
353
368
 
354
- @media (min-width: 800px) {
355
- .admonition-content {
356
- margin-right: 1.25rem;
369
+ &:last-child {
370
+ margin-bottom: 0;
371
+ }
357
372
  }
358
373
  }
359
374
 
360
- .admonitionblock .quoteblock {
361
- background-color: var(--surface-default);
362
- border: 0;
363
- border-radius: var(--radius-md);
364
- margin: 0.5rem 0;
365
- padding: 0.75rem;
366
- }
367
-
368
375
  /* --- Inline code --- */
369
376
  code {
370
377
  font-feature-settings: 'calt' 0;
378
+
379
+ /* Prevent asciidoc styles from leaking into mermaid SVG output */
380
+ svg {
381
+ line-height: 1 !important;
382
+ }
383
+
384
+ svg,
385
+ svg * {
386
+ all: revert-layer;
387
+ }
371
388
  }
372
389
 
373
390
  :not(pre) > code {
@@ -386,19 +403,11 @@
386
403
  overflow-wrap: normal;
387
404
  }
388
405
 
389
- /* Prevent asciidoc styles from leaking into mermaid SVG output */
390
- code svg {
391
- line-height: 1 !important;
392
- }
393
- code svg,
394
- code svg * {
395
- all: revert-layer;
396
- }
397
-
398
406
  /* --- Code blocks --- */
399
407
  pre {
400
408
  overflow-x: auto;
401
409
  font-size: 13px;
410
+ line-height: 1.5;
402
411
  letter-spacing: 0;
403
412
  text-transform: none !important;
404
413
  font-feature-settings: 'calt' 0;
@@ -406,30 +415,30 @@
406
415
  border: 1px solid var(--stroke-secondary);
407
416
  border-radius: var(--radius-md);
408
417
  padding: 1rem 1.25rem;
409
- }
410
418
 
411
- @media (min-width: 800px) {
412
- pre {
419
+ @media (min-width: 800px) {
413
420
  padding: 1.5rem 1.75rem;
414
421
  }
415
422
  }
416
423
 
417
- .listingblock .content {
418
- position: relative;
419
- }
424
+ .listingblock {
425
+ .content {
426
+ position: relative;
427
+ }
420
428
 
421
- .listingblock pre:not(.highlight) {
422
- color: var(--content-default);
423
- }
429
+ pre:not(.highlight) {
430
+ color: var(--content-default);
431
+ }
424
432
 
425
- .listingblock code[data-lang]::before {
426
- @apply text-mono-xs;
427
- content: attr(data-lang);
428
- position: absolute;
429
- top: 0.5rem;
430
- right: 0.5rem;
431
- display: block;
432
- color: var(--content-secondary);
433
+ code[data-lang]::before {
434
+ @apply text-mono-xs;
435
+ content: attr(data-lang);
436
+ position: absolute;
437
+ top: 0.5rem;
438
+ right: 0.5rem;
439
+ display: block;
440
+ color: var(--content-secondary);
441
+ }
433
442
  }
434
443
 
435
444
  /* --- Callout numbers (conum) --- */
@@ -449,15 +458,15 @@
449
458
  border-radius: var(--radius-full);
450
459
  text-align: center;
451
460
  font-style: normal;
452
- }
453
461
 
454
- pre .conum[data-value]::after {
455
- content: attr(data-value);
456
- padding-left: 1px;
457
- }
462
+ &::after {
463
+ content: attr(data-value);
464
+ padding-left: 1px;
465
+ }
458
466
 
459
- pre .conum[data-value] + b {
460
- display: none;
467
+ & + b {
468
+ display: none;
469
+ }
461
470
  }
462
471
 
463
472
  /* --- Example blocks --- */
@@ -466,25 +475,31 @@
466
475
  background-color: var(--surface-raise);
467
476
  border-radius: var(--radius-md);
468
477
  padding: 1.25rem 1.5rem;
469
- }
470
478
 
471
- .exampleblock p {
472
- @apply text-sans-md;
473
- margin-bottom: 0.5rem;
474
- }
479
+ p {
480
+ @apply text-sans-md;
481
+ margin-bottom: 0.5rem;
482
+ }
475
483
 
476
- .exampleblock .content,
477
- .exampleblock .paragraph:last-of-type p {
478
- margin: 0;
479
- }
484
+ .content,
485
+ .paragraph:last-of-type p {
486
+ margin: 0;
487
+ }
480
488
 
481
- .exampleblock > .content {
482
- margin: 1rem 0;
489
+ > .content {
490
+ margin: 1rem 0;
491
+ }
483
492
  }
484
493
 
485
494
  /* --- Images --- */
486
495
  img {
487
496
  background-color: var(--surface-raise);
497
+
498
+ &.wide {
499
+ max-width: none;
500
+ width: calc(100% / 8 * 10);
501
+ margin-left: calc(100% / 8 * -1);
502
+ }
488
503
  }
489
504
 
490
505
  span img {
@@ -492,29 +507,29 @@
492
507
  background-color: transparent;
493
508
  }
494
509
 
495
- .imageblock img {
496
- margin: 0 auto;
497
- width: 100%;
498
- height: auto;
499
- max-height: max(500px, 75vh);
500
- object-fit: contain;
501
- border: 1px solid var(--stroke-tertiary);
502
- border-radius: var(--radius-md);
503
- }
510
+ .imageblock {
511
+ .content {
512
+ display: inline-block;
513
+ }
504
514
 
505
- .imageblock .title {
506
- @apply text-mono-xs;
507
- margin-top: 0.75rem;
508
- max-width: 100%;
509
- text-align: center;
510
- color: var(--content-secondary);
511
- font-style: normal;
512
- }
515
+ img {
516
+ margin: 0 auto;
517
+ height: auto;
518
+ max-width: 100%;
519
+ max-height: max(500px, 75vh);
520
+ object-fit: contain;
521
+ border: 1px solid var(--stroke-tertiary);
522
+ border-radius: var(--radius-md);
523
+ }
513
524
 
514
- img.wide {
515
- max-width: none;
516
- width: calc(100% / 8 * 10);
517
- margin-left: calc(100% / 8 * -1);
525
+ .title {
526
+ @apply text-mono-xs;
527
+ margin-top: 0.75rem;
528
+ max-width: 100%;
529
+ text-align: center;
530
+ color: var(--content-secondary);
531
+ font-style: normal;
532
+ }
518
533
  }
519
534
 
520
535
  /* --- Block-level vertical rhythm --- */
@@ -536,20 +551,20 @@
536
551
  .table-wrapper {
537
552
  position: relative;
538
553
  overflow-x: auto;
539
- }
540
554
 
541
- .table-wrapper caption {
542
- position: sticky;
543
- left: 0;
544
- text-align: left;
545
- }
555
+ caption {
556
+ position: sticky;
557
+ left: 0;
558
+ text-align: left;
546
559
 
547
- .table-wrapper caption > a {
548
- text-decoration: none;
549
- }
560
+ > a {
561
+ text-decoration: none;
562
+ }
550
563
 
551
- .table-wrapper caption a:hover::after {
552
- vertical-align: -2px;
564
+ a:hover::after {
565
+ vertical-align: -2px;
566
+ }
567
+ }
553
568
  }
554
569
 
555
570
  table {
@@ -560,20 +575,36 @@
560
575
  border: 1px solid var(--stroke-secondary);
561
576
  border-radius: var(--radius-md);
562
577
  padding: 0;
563
- }
564
578
 
565
- table p {
566
- @apply text-sans-md;
567
- margin: 0;
568
- padding: 0;
569
- }
579
+ p {
580
+ @apply text-sans-md;
581
+ margin: 0;
582
+ padding: 0;
583
+ }
570
584
 
571
- table td,
572
- table th {
573
- padding: 0.5rem;
574
- vertical-align: top;
575
- border-right: 1px solid var(--stroke-secondary);
576
- border-bottom: 1px solid var(--stroke-secondary);
585
+ td,
586
+ th {
587
+ padding: 0.5rem;
588
+ vertical-align: top;
589
+ border-right: 1px solid var(--stroke-secondary);
590
+ border-bottom: 1px solid var(--stroke-secondary);
591
+ }
592
+
593
+ th {
594
+ @apply text-mono-xs;
595
+ text-align: left;
596
+ color: var(--content-secondary);
597
+ background-color: var(--surface-raise);
598
+
599
+ p {
600
+ @apply text-mono-xs;
601
+ }
602
+ }
603
+
604
+ pre {
605
+ border: 0;
606
+ padding: 0;
607
+ }
577
608
  }
578
609
 
579
610
  table tr th:last-child,
@@ -587,63 +618,57 @@
587
618
  border-bottom: 0;
588
619
  }
589
620
 
590
- table th {
591
- @apply text-mono-xs;
592
- text-align: left;
593
- color: var(--content-secondary);
594
- background-color: var(--surface-raise);
595
- }
596
-
597
- table th p {
598
- @apply text-mono-xs;
599
- }
600
-
601
- table pre {
602
- border: 0;
603
- padding: 0;
604
- }
605
-
606
- table.tableblock table.tableblock {
607
- margin: 0.5rem 0;
608
- }
621
+ table.tableblock {
622
+ table.tableblock {
623
+ margin: 0.5rem 0;
624
+ }
609
625
 
610
- table.tableblock .imageblock {
611
- margin: 0;
626
+ .imageblock {
627
+ margin: 0;
628
+ }
612
629
  }
613
630
 
614
631
  /* --- Callout list --- */
615
632
  .colist table {
616
633
  margin: 1.5rem 0;
617
- }
618
634
 
619
- .colist table td {
620
- @apply text-sans-md;
621
- }
635
+ td {
636
+ @apply text-sans-md;
637
+ }
622
638
 
623
- .colist table tr td:first-of-type {
624
- width: 1%;
625
- white-space: nowrap;
626
- color: var(--content-tertiary);
627
- }
639
+ tr td:first-of-type {
640
+ width: 1%;
641
+ white-space: nowrap;
642
+ color: var(--content-tertiary);
643
+ }
628
644
 
629
- .colist table b {
630
- @apply text-mono-sm;
645
+ tr td:last-of-type {
646
+ border-right: none;
647
+ }
648
+
649
+ tr:last-of-type td {
650
+ border-bottom: none;
651
+ }
652
+
653
+ b {
654
+ @apply text-mono-sm;
655
+ }
631
656
  }
632
657
 
633
658
  /* --- Bibliography --- */
634
659
  div.bibliography ~ h2 {
635
660
  margin-top: 3rem;
636
- }
637
661
 
638
- @media (min-width: 800px) {
639
- div.bibliography ~ h2 {
662
+ @media (min-width: 800px) {
640
663
  margin-top: 4rem;
641
664
  }
642
665
  }
643
666
 
644
- .bibliography ul > li + li,
645
- .bibliography ol > li + li {
646
- margin-top: 0.5rem;
667
+ .bibliography {
668
+ ul > li + li,
669
+ ol > li + li {
670
+ margin-top: 0.5rem;
671
+ }
647
672
  }
648
673
 
649
674
  /* --- Misc --- */
@@ -674,20 +699,22 @@
674
699
  sup.footnote {
675
700
  @apply text-mono-xs;
676
701
  color: var(--content-secondary);
677
- }
678
702
 
679
- sup.footnote a {
680
- padding-top: calc(var(--header-height) + 20px);
681
- margin-top: calc(var(--header-height) * -1 - 20px);
703
+ a {
704
+ padding-top: calc(var(--header-height) + 20px);
705
+ margin-top: calc(var(--header-height) * -1 - 20px);
706
+ }
682
707
  }
683
708
 
684
709
  /* --- Titles --- */
685
710
  .title {
686
- @apply text-sans-lg;
711
+ font-family: var(--font-sans);
712
+ line-height: 1.375em;
713
+ font-size: 1em
714
+ letter-spacing: 0.021em;
687
715
  margin-bottom: 0.25rem;
688
716
  max-width: 40rem;
689
717
  text-align: left;
690
- font-size: 1em !important;
691
718
  font-style: italic;
692
719
  color: currentColor;
693
720
  }
@@ -716,20 +743,57 @@
716
743
  .valign-bottom {
717
744
  vertical-align: bottom;
718
745
  }
746
+
747
+ /* --- Collapsible blocks --- */
748
+ details {
749
+ border: 1px solid var(--stroke-default);
750
+ border-radius: var(--radius-md);
751
+
752
+ summary:first-of-type {
753
+ padding: 0.75rem 1rem;
754
+ margin-bottom: 0;
755
+ max-width: initial;
756
+ display: block;
757
+ user-select: none;
758
+ cursor: pointer;
759
+
760
+ &:hover {
761
+ background-color: var(--surface-hover);
762
+ }
763
+
764
+ &::before {
765
+ content: '▸';
766
+ color: var(--content-tertiary);
767
+ font-size: 1.25rem;
768
+ margin-right: 0.5rem;
769
+ }
770
+ }
771
+
772
+ &[open] summary:first-of-type::before {
773
+ content: '▾';
774
+ }
775
+
776
+ .content {
777
+ padding: 0.75rem 1rem 0 1rem;
778
+ border-top: 1px solid var(--stroke-default);
779
+ }
780
+ }
719
781
  }
720
782
 
721
- /* Footnotes and TOC share the inline-code / accent-link treatments */
722
- #footnotes p a {
783
+ /* Footnotes and TOC share the inline-code / accent-link treatments. The
784
+ `.footnotes` class lets the same treatment be reused outside the footnotes
785
+ section (e.g. a footnote hover card) without relying on the `#footnotes` id. */
786
+ :is(#footnotes, .footnotes) p a {
723
787
  color: var(--content-accent-secondary);
724
788
  text-decoration: underline;
725
789
  text-decoration-color: color-mix(in srgb, currentColor 50%, transparent);
726
- }
727
790
 
728
- #footnotes p a:hover {
729
- color: var(--content-accent);
791
+ &:hover {
792
+ color: var(--content-accent);
793
+ }
730
794
  }
731
795
 
732
- #footnotes p code,
796
+ :is(#footnotes, .footnotes) p code,
733
797
  .toc code {
734
798
  font-size: 0.825em;
735
799
  letter-spacing: 0;
@@ -745,14 +809,14 @@
745
809
  @media screen and (min-width: 720px) {
746
810
  .animated-accordion {
747
811
  overflow: hidden;
748
- }
749
812
 
750
- .animated-accordion[data-state='open'].hydrated {
751
- animation: accordionSlideDown 300ms cubic-bezier(0.87, 0, 0.13, 1);
752
- }
813
+ &[data-state='open'].hydrated {
814
+ animation: accordionSlideDown 300ms cubic-bezier(0.87, 0, 0.13, 1);
815
+ }
753
816
 
754
- .animated-accordion[data-state='closed'].hydrated {
755
- animation: accordionSlideUp 300ms cubic-bezier(0.87, 0, 0.13, 1);
817
+ &[data-state='closed'].hydrated {
818
+ animation: accordionSlideUp 300ms cubic-bezier(0.87, 0, 0.13, 1);
819
+ }
756
820
  }
757
821
  }
758
822
 
@@ -790,12 +854,12 @@
790
854
  a {
791
855
  color: inherit !important;
792
856
  text-decoration: underline;
793
- }
794
857
 
795
- a.bare,
796
- a[href^='#'],
797
- a[href^='mailto:'] {
798
- text-decoration: none;
858
+ &.bare,
859
+ &[href^='#'],
860
+ &[href^='mailto:'] {
861
+ text-decoration: none;
862
+ }
799
863
  }
800
864
 
801
865
  tr,
@@ -850,10 +914,10 @@
850
914
 
851
915
  p {
852
916
  color: black !important;
853
- }
854
917
 
855
- p a {
856
- text-decoration-color: black !important;
918
+ a {
919
+ text-decoration-color: black !important;
920
+ }
857
921
  }
858
922
 
859
923
  .imageblock img {