@oxide/design-system 6.0.5 → 6.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.
package/dist/asciidoc.css CHANGED
@@ -25,8 +25,9 @@
25
25
  }
26
26
 
27
27
  @utility inline-code {
28
- @apply text-secondary;
29
- @apply ml-[1px] mr-[1px] rounded-md border px-[4px] py-[1px] align-[1px] text-[0.825em] bg-raise border-secondary;
28
+ @apply mr-[1px] ml-[1px] rounded-md border px-0.5 align-[1px] text-[0.825em] tracking-normal!;
29
+ background-color: color-mix(in srgb, currentColor 8%, transparent);
30
+ border-color: color-mix(in srgb, currentColor 10%, transparent);
30
31
  }
31
32
 
32
33
  @layer components {
@@ -36,7 +37,7 @@
36
37
  }
37
38
 
38
39
  .quoteblock {
39
- @apply mb-8 mt-8 border-l pl-[1.6rem] text-secondary border-default;
40
+ @apply text-secondary border-default mt-8 mb-8 border-l pl-[1.6rem];
40
41
  }
41
42
 
42
43
  .quoteblock p {
@@ -44,7 +45,7 @@
44
45
  }
45
46
 
46
47
  .quoteblock .attribution {
47
- @apply mt-8 text-raise;
48
+ @apply text-raise mt-8;
48
49
  }
49
50
 
50
51
  .attribution cite {
@@ -52,7 +53,7 @@
52
53
  }
53
54
 
54
55
  .admonitionblock .quoteblock {
55
- @apply mb-2 mt-2 pl-[0.75rem] border-accent-secondary;
56
+ @apply border-accent-secondary mt-2 mb-2 pl-[0.75rem];
56
57
  }
57
58
 
58
59
  .admonition-content .paragraph {
@@ -60,11 +61,11 @@
60
61
  }
61
62
 
62
63
  .admonition-content > div:first-of-type {
63
- @apply normal-case text-sans-semi-md;
64
+ @apply text-sans-semi-md normal-case;
64
65
  }
65
66
 
66
67
  .imageblock img {
67
- @apply mx-auto h-auto w-auto w-full rounded-lg border border-tertiary object-contain;
68
+ @apply border-tertiary mx-auto h-auto w-auto w-full rounded-lg border object-contain;
68
69
  max-height: max(500px, 75vh);
69
70
  }
70
71
 
@@ -87,7 +88,7 @@
87
88
 
88
89
  /* Use semi-bold for strong */
89
90
  strong {
90
- @apply font-[500] text-raise;
91
+ @apply text-raise font-[500];
91
92
  }
92
93
 
93
94
  a strong {
@@ -98,7 +99,7 @@
98
99
  h3,
99
100
  h4,
100
101
  h5 {
101
- @apply relative mb-3 mt-10 text-raise;
102
+ @apply text-raise relative mt-10 mb-3;
102
103
  }
103
104
 
104
105
  /* Removes top spacing from header if it is the first element */
@@ -115,7 +116,7 @@
115
116
  h3 a,
116
117
  h4 a,
117
118
  h5 a {
118
- @apply inline text-raise;
119
+ @apply text-raise inline;
119
120
  }
120
121
 
121
122
  h1[data-sectnum]:before,
@@ -123,7 +124,7 @@
123
124
  h3[data-sectnum]:before,
124
125
  h4[data-sectnum]:before,
125
126
  h5[data-sectnum]:before {
126
- @apply bottom-0 mr-2 inline-block text-tertiary 800:absolute 800:-left-[72px] 800:mr-0 800:w-[60px] 800:text-right 800:text-sans-lg;
127
+ @apply text-tertiary 800:absolute 800:-left-[72px] 800:mr-0 800:w-[60px] 800:text-right 800:text-sans-lg bottom-0 mr-2 inline-block;
127
128
  }
128
129
 
129
130
  h3[data-sectnum]:before,
@@ -141,7 +142,7 @@
141
142
 
142
143
  h4,
143
144
  h5 {
144
- @apply mb-2 mt-8 text-sans-lg text-raise;
145
+ @apply text-sans-lg text-raise mt-8 mb-2;
145
146
  }
146
147
 
147
148
  .anchor,
@@ -167,7 +168,7 @@
167
168
  }
168
169
 
169
170
  p {
170
- @apply mb-[1.25rem] !leading-[1.5] text-sans-lg 800:mb-3;
171
+ @apply text-sans-lg 800:mb-3 mb-[1.25rem] !leading-[1.5];
171
172
  }
172
173
 
173
174
  ul li,
@@ -177,7 +178,7 @@
177
178
 
178
179
  ul,
179
180
  ol {
180
- @apply mb-3 list-disc text-mono-sm;
181
+ @apply text-mono-sm mb-3 list-disc;
181
182
  }
182
183
 
183
184
  li::marker,
@@ -219,7 +220,7 @@
219
220
 
220
221
  ul,
221
222
  ol {
222
- @apply list-inside 800:list-outside;
223
+ @apply 800:list-outside list-inside;
223
224
  }
224
225
 
225
226
  ul:first-of-type,
@@ -246,7 +247,7 @@
246
247
  .ulist .olist,
247
248
  .olist .ulist,
248
249
  .olist .olist {
249
- @apply ml-[2rem] 800:ml-2;
250
+ @apply 800:ml-2 ml-[2rem];
250
251
  }
251
252
 
252
253
  .exampleblock ul,
@@ -288,35 +289,20 @@
288
289
  }
289
290
 
290
291
  ol p {
291
- @apply normal-case text-default;
292
+ @apply text-default normal-case;
292
293
  }
293
294
 
294
- p code,
295
- h1 code,
296
- h2 code,
297
- h3 code,
298
- h4 code,
299
- h5 code,
300
- .title code {
301
- @apply text-[0.825em] text-default;
302
- @apply ml-[1px] mr-[1px] rounded-md border px-[4px] py-[1px] align-[1px] bg-raise border-secondary;
303
- }
304
-
305
- p a code {
306
- @apply text-accent-secondary;
295
+ :not(pre) > code {
296
+ @apply inline-code;
307
297
  }
308
298
 
309
299
  table p code {
310
300
  @apply break-normal;
311
301
  }
312
302
 
313
- .admonitionblock p code {
314
- @apply border-none text-inverse bg-accent-inverse;
315
- }
316
-
317
303
  pre {
318
- @apply rounded-lg border px-[1.25rem] py-[1rem] border-secondary 800:px-[1.75rem] 800:py-[1.5rem];
319
- @apply overflow-x-auto !text-[13px] text-mono-code;
304
+ @apply border-secondary 800:px-[1.75rem] 800:py-[1.5rem] rounded-lg border px-[1.25rem] py-[1rem];
305
+ @apply text-mono-code overflow-x-auto !text-[13px];
320
306
  }
321
307
 
322
308
  code {
@@ -332,12 +318,12 @@
332
318
  }
333
319
 
334
320
  .listingblock code[data-lang]:before {
335
- @apply absolute right-2 top-2 block text-mono-xs text-secondary;
321
+ @apply text-mono-xs text-secondary absolute top-2 right-2 block;
336
322
  content: attr(data-lang);
337
323
  }
338
324
 
339
325
  pre .conum[data-value] {
340
- @apply relative -top-[0.125rem] inline-block h-[1rem] min-w-[1rem] rounded-full text-center not-italic text-mono-xs text-secondary bg-raise;
326
+ @apply text-mono-xs text-secondary bg-raise relative -top-[0.125rem] inline-block h-[1rem] min-w-[1rem] rounded-full text-center not-italic;
341
327
  }
342
328
 
343
329
  pre .conum[data-value]:after {
@@ -350,11 +336,11 @@
350
336
  }
351
337
 
352
338
  .exampleblock {
353
- @apply overflow-x-auto rounded-lg px-[1.5rem] py-[1.25rem] bg-raise;
339
+ @apply bg-raise overflow-x-auto rounded-lg px-[1.5rem] py-[1.25rem];
354
340
  }
355
341
 
356
342
  .exampleblock p {
357
- @apply mb-2 text-sans-md;
343
+ @apply text-sans-md mb-2;
358
344
  }
359
345
 
360
346
  .exampleblock .content,
@@ -367,7 +353,7 @@
367
353
  }
368
354
 
369
355
  .admonitionblock {
370
- @apply rounded-lg border text-accent bg-accent border-accent-tertiary;
356
+ @apply text-accent bg-accent border-accent-tertiary rounded-lg border;
371
357
  @apply my-[1.5rem] flex px-3 py-3;
372
358
  }
373
359
 
@@ -393,11 +379,11 @@
393
379
  }
394
380
 
395
381
  .admonitionblock a {
396
- @apply underline text-accent;
382
+ @apply text-accent underline;
397
383
  }
398
384
 
399
385
  .admonition-icon svg {
400
- @apply mr-2 mt-0.5 h-3 w-3;
386
+ @apply mt-0.5 mr-2 h-3 w-3;
401
387
  }
402
388
 
403
389
  .admonition-content {
@@ -405,7 +391,7 @@
405
391
  }
406
392
 
407
393
  .admonition-content p {
408
- @apply mb-0 text-sans-md;
394
+ @apply text-sans-md mb-0;
409
395
  }
410
396
 
411
397
  .imageblock,
@@ -426,7 +412,7 @@
426
412
  }
427
413
 
428
414
  .imageblock .title {
429
- @apply mt-3 max-w-full text-center not-italic text-mono-xs text-secondary;
415
+ @apply text-mono-xs text-secondary mt-3 max-w-full text-center not-italic;
430
416
  }
431
417
 
432
418
  img.wide {
@@ -454,11 +440,11 @@
454
440
  }
455
441
 
456
442
  .title {
457
- @apply mb-2 max-w-[40rem] text-left italic text-sans-lg text-secondary;
443
+ @apply text-sans-lg text-secondary mb-2 max-w-[40rem] text-left italic;
458
444
  }
459
445
 
460
446
  summary.title {
461
- @apply not-italic text-raise;
447
+ @apply text-raise not-italic;
462
448
  }
463
449
 
464
450
  .conum {
@@ -478,7 +464,7 @@
478
464
  }
479
465
 
480
466
  table {
481
- @apply w-full border-separate overflow-hidden rounded-lg border p-0 border-secondary;
467
+ @apply border-secondary w-full border-separate overflow-hidden rounded-lg border p-0;
482
468
  border-spacing: 0;
483
469
  }
484
470
 
@@ -496,7 +482,7 @@
496
482
 
497
483
  table td,
498
484
  table th {
499
- @apply border-b border-r px-[0.5rem] py-[0.5rem] align-top border-secondary;
485
+ @apply border-secondary border-r border-b px-[0.5rem] py-[0.5rem] align-top;
500
486
  }
501
487
 
502
488
  table tr th:last-child {
@@ -517,7 +503,7 @@
517
503
  }
518
504
 
519
505
  table th {
520
- @apply text-left text-mono-xs text-secondary bg-raise;
506
+ @apply text-mono-xs text-secondary bg-raise text-left;
521
507
  }
522
508
 
523
509
  table th p {
@@ -545,7 +531,7 @@
545
531
  }
546
532
 
547
533
  .colist table tr td:first-of-type {
548
- @apply w-[1%] whitespace-nowrap text-tertiary;
534
+ @apply text-tertiary w-[1%] whitespace-nowrap;
549
535
  }
550
536
 
551
537
  .colist table b {
@@ -553,7 +539,7 @@
553
539
  }
554
540
 
555
541
  div.bibliography ~ h2 {
556
- @apply mt-12 800:mt-16;
542
+ @apply 800:mt-16 mt-12;
557
543
  }
558
544
 
559
545
  .bibliography ul,
@@ -562,7 +548,7 @@
562
548
  }
563
549
 
564
550
  mark {
565
- @apply rounded-md px-[2px] text-notice bg-notice;
551
+ @apply text-notice bg-notice rounded-md px-[2px];
566
552
  }
567
553
 
568
554
  .steminline svg {
@@ -570,11 +556,11 @@
570
556
  }
571
557
 
572
558
  hr {
573
- @apply my-3 border-default;
559
+ @apply border-default my-3;
574
560
  }
575
561
 
576
562
  .sidebarblock {
577
- @apply bg-raise p-4 rounded-lg my-8 px-6 py-5;
563
+ @apply bg-raise my-8 rounded-lg p-4 px-6 py-5;
578
564
  }
579
565
 
580
566
  .halign-left {
@@ -607,7 +593,7 @@
607
593
 
608
594
  a:not(:is(h1, h2, h3, h4, h5, h6) a) {
609
595
  text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
610
- @apply underline text-accent-secondary;
596
+ @apply text-accent-secondary underline;
611
597
  }
612
598
  }
613
599
 
@@ -615,16 +601,9 @@
615
601
  @apply accent-link;
616
602
  }
617
603
 
618
- #footnotes p code {
619
- @apply inline-code;
620
- }
621
-
622
- .toc .active code {
623
- @apply border-accent-tertiary;
624
- }
625
-
604
+ #footnotes p code,
626
605
  .toc code {
627
- @apply ml-[1px] mr-[1px] rounded-md border px-[3px] align-[1px] border-secondary;
606
+ @apply inline-code;
628
607
  }
629
608
 
630
609
  @media screen and (min-width: 720px) {