Skip to content

Commit 041f287

Browse files
A few more edge case fixes
1 parent 7e764e8 commit 041f287

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

reference/_components/UsageLarge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function ({ usages }: { usages: UsagesCtx | null }) {
66
}
77

88
return (
9-
<div class="usageContent mb-4 px-4 pt-4 pb-5 bg-stone-100 rounded border border-gray-300">
9+
<div class="usageContent !my-4 px-4 pt-4 pb-5 bg-stone-100 rounded border border-gray-300">
1010
<h3>Usage in Deno</h3>
1111

1212
{/*markdown rendering*/}

styles.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,10 @@
598598
& ul,
599599
& ol {
600600
padding-left: 2em;
601+
602+
& li + li {
603+
margin-top: 0.25rem;
604+
}
601605
}
602606
& ol {
603607
list-style: decimal;
@@ -779,6 +783,10 @@
779783
@apply md:border-t-0 md:border-b md:pb-8 h-full md:rounded-t-none
780784
md:rounded-b;
781785
}
786+
787+
.markdown-summary :not(pre) > code {
788+
@apply font-mono text-sm py-0.5 px-1.5 rounded;
789+
}
782790
}
783791
}
784792

@@ -1752,6 +1760,10 @@
17521760
}
17531761

17541762
.ddoc {
1763+
&.markdown-body {
1764+
gap: 0;
1765+
}
1766+
17551767
.markdown-summary {
17561768
@apply text-foreground-secondary;
17571769
}
@@ -1835,7 +1847,7 @@
18351847
.ddoc .usageContent > h3 {
18361848
@apply text-xs bg-background-primary border border-primary/25 px-2 py-0.5
18371849
rounded absolute;
1838-
top: -50px;
1850+
top: -3.5em;
18391851
z-index: 2;
18401852
}
18411853

@@ -2343,7 +2355,7 @@
23432355
}
23442356
.ddoc .namespaceSection .namespaceItem .namespaceItemContent > a {
23452357
word-break: break-all;
2346-
font-weight: 500;
2358+
font-weight: bold;
23472359
line-height: 1.25;
23482360
display: block;
23492361
}
@@ -2418,7 +2430,7 @@
24182430
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
24192431
}
24202432
.ddoc .symbolGroup article > div:first-child > div:first-child {
2421-
font-weight: 500;
2433+
font-weight: bold;
24222434
}
24232435
.ddoc .docNodeKindIcon {
24242436
flex-shrink: 0;
@@ -2438,7 +2450,7 @@
24382450
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono,
24392451
Courier New, monospace;
24402452
font-size: 0.75rem;
2441-
font-weight: 500;
2453+
font-weight: bold;
24422454
line-height: 1.25rem;
24432455
}
24442456
.ddoc .docNodeKindIcon > * + * {

0 commit comments

Comments
 (0)