200
200
201
201
pre : has (code .highlight ),
202
202
pre .highlight : has (code ) {
203
- @apply px-8 py-6 max-sm:-mx-4;
204
- @apply max-sm:rounded-none !important ;
203
+ @apply px-4 py-8 max-sm:-mx-4 border-x-0 sm:border sm:px-8
204
+ max-sm:! rounded-none;
205
205
}
206
206
207
207
pre : has (code .highlight ): where (: hover , : focus ) + .copyButton ,
@@ -223,19 +223,18 @@ pre.highlight:has(code):where(:hover, :focus) + .copyButton {
223
223
}
224
224
}
225
225
226
- .markdownBlockTitle + div > pre : has (code .highlight ) {
227
- @apply rounded-t-none border-t-0;
228
- }
229
-
230
226
.ddoc .markdown-body tr : nth-child (2n) {
231
227
@apply bg-background-secondary !important ;
232
228
}
233
229
234
230
.markdownBlockTitle {
235
- background-color : var (--bgColor-muted , var (--color-canvas-subtle ));
236
- @apply px-8 py-3 max-sm:-mx-4 sm:rounded-t-md border text-sm font-semibold
237
- dark:bg-background-secondary dark:text-foreground-secondary
238
- dark:border-background-tertiary;
231
+ @apply bg-slate-100 p-2 leading-none rounded border text-xs font-semibold z-10
232
+ relative w-max !-mb-4 text-foreground-secondary/80 sm:left-2
233
+ dark:border-background-tertiary dark:bg-slate-900;
234
+ }
235
+
236
+ .deno-tabs .markdownBlockTitle {
237
+ @apply left-2;
239
238
}
240
239
241
240
.markdown-body h2 : hover .anchor-end {
@@ -413,8 +412,8 @@ body {
413
412
}
414
413
415
414
.markdown-body > pre .snippet-code [data-example-position = "only" ] {
416
- @apply md:border-t md:border-b md:pt-4 rounded-t h-full md:rounded;
417
- md : rounded-b;
415
+ @apply md:border-t md:border-b md:pt-4 rounded-t h-full md:rounded
416
+ md:rounded-b;
418
417
}
419
418
420
419
.markdown-body > pre .snippet-code [data-example-position = "first" ] {
@@ -431,32 +430,32 @@ body {
431
430
}
432
431
433
432
.deno-tabs {
434
- @apply -mx-4 mb-4 md :mx-0;
433
+ @apply -mx-4 mb-6 sm :mx-0;
435
434
}
436
435
437
436
.deno-tabs > ul .deno-tabs-buttons {
438
- @apply flex flex-wrap list-none p-0 ml-4 md :m-0;
437
+ @apply flex flex-wrap list-none p-0 ml-4 sm :m-0;
439
438
}
440
439
441
440
.deno-tabs > ul .deno-tabs-buttons > li {
442
- @apply m-0 m-0 ;
441
+ @apply m-0;
443
442
}
444
443
445
444
.deno-tabs > ul .deno-tabs-buttons > li > button {
446
- @apply inline-block mr-2 px-4 py-2 text-sm font-semibold text-slate-700
445
+ @apply inline-block mr-2 px-4 py-2 text-sm font-semibold text-slate-500
447
446
rounded-t bg-slate-100/80 hover:bg-blue-50 border border-transparent
448
- border-b-0 dark:text-slate-400 dark:bg-transparent
449
- dark:border-background-tertiary dark:hover:bg-slate-700 ;
447
+ border-b-0 dark:text-slate-500 dark:bg-transparent
448
+ dark:border-background-tertiary dark:hover:bg-slate-600 ;
450
449
}
451
450
452
451
.deno-tabs > ul .deno-tabs-buttons > li > button [data-active = "true" ] {
453
452
@apply border-slate-200 bg-slate-100 text-slate-950 border-b-0 z-10 -mb-[1px ]
454
- pb-[calc (0.5 rem+1px)] relative dark:text-foreground-secondary
453
+ pb-[calc (0.5 rem+1px)] relative dark:text-slate-50
455
454
dark:bg-background-secondary dark:border-background-tertiary;
456
455
}
457
456
458
457
.deno-tabs > div .deno-tabs-content > div {
459
- @apply hidden py-4 px-4 rounded rounded -tl-none bg-slate-100 border
458
+ @apply hidden p-2 sm:rounded-lg sm: rounded-tl-none sm:p-4 bg-slate-100 border
460
459
border-slate-200 dark:bg-background-secondary
461
460
dark:border-background-tertiary;
462
461
}
@@ -471,14 +470,7 @@ body {
471
470
472
471
.markdown-body .deno-tabs pre {
473
472
@apply border mx-0 bg-white border-slate-200 dark:bg-background-primary
474
- dark:border-background-tertiary;
475
- }
476
-
477
- .deno-tabs .markdownBlockTitle {
478
- @apply px-8 py-2 max-sm:-mx-4 sm:rounded-t-md border border-slate-200
479
- bg-slate-50 text-slate-900 text-sm font-semibold
480
- dark:bg-background-secondary dark:border-background-tertiary
481
- dark:text-foreground-secondary;
473
+ !rounded dark: bor der-background-tertiary;
482
474
}
483
475
484
476
/* Strips bottom margin in instances where multiple code samples exist in a tab. */
@@ -488,7 +480,7 @@ body {
488
480
489
481
.markdown-body .highlight pre ,
490
482
.markdown-body pre {
491
- @apply bg-gray -50 dark:border-background-tertiary
483
+ @apply bg-slate -50 dark:border-background-tertiary
492
484
dark:bg-background-secondary;
493
485
}
494
486
0 commit comments