Skip to content

Commit 7da10bc

Browse files
authored
Merge pull request #376 from datum-cloud/fix-docs
chore: spacing navigation
2 parents c12081e + 0a5a5d6 commit 7da10bc

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

src/components/Nav.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const {
4545
{
4646
showGithubButton && (
4747
<Button
48-
class={`btn btn--primary gh-button fade-in--pure min-w-[115px]`}
48+
class={`btn btn--primary gh-button fade-in--pure min-w-[115px] md:hidden lg:inline-flex`}
4949
data-reveal="fade-in--pure--visible"
5050
data-reveal-delay="100"
5151
data-reveal-immediate="true"

src/v1/styles/starlight.css

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
@apply font-primary;
1515
}
1616

17-
/* Restore crucial styles from Tailwind Preflight: https://tailwindcss.com/docs/preflight */
18-
/* Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) */
1917
*,
2018
::after,
2119
::before {
@@ -46,6 +44,24 @@
4644
[x-cloak] {
4745
@apply hidden;
4846
}
47+
.sl-markdown-content {
48+
ul:not([role='tablist']),
49+
ol:not([role='tablist']) {
50+
@apply mb-4! space-y-2.5! pl-6! leading-[1.5];
51+
}
52+
53+
ul:not([role='tablist']) {
54+
@apply list-disc;
55+
}
56+
57+
ol:not([role='tablist']) {
58+
@apply list-decimal;
59+
}
60+
61+
li:not(.tab) {
62+
@apply [&>p:only-child]:mb-0!;
63+
}
64+
}
4965
}
5066

5167
@layer utilities {
@@ -253,6 +269,7 @@
253269
@apply mt-0 mb-4;
254270
}
255271
li {
272+
@apply leading-[18px];
256273
summary {
257274
@apply p-0 hover:text-(--sl-color-text-accent);
258275
.large {
@@ -273,10 +290,14 @@
273290

274291
li {
275292
@apply ml-0 border-l-0 pl-0;
276-
@apply mb-[6px];
293+
@apply mb-[5px];
277294

278295
a {
279-
@apply p-0 text-[13px] leading-[16px] text-(--sl-color-text) hover:text-(--sl-color-text-accent);
296+
@apply p-0 pr-5 text-[13px] leading-[16px] text-(--sl-color-text)/80 hover:text-(--sl-color-text-accent);
297+
298+
span {
299+
@apply leading-[18px];
300+
}
280301
}
281302

282303
a[aria-current='page'] {
@@ -362,11 +383,14 @@
362383

363384
ul {
364385
li {
365-
@apply mb-[6px];
386+
@apply mb-[5px];
366387
a {
367-
@apply p-0 text-[13px] leading-[16px] text-(--sl-color-text) hover:text-(--sl-color-text-accent);
388+
@apply p-0 text-[13px] leading-[18px] text-(--sl-color-text) hover:text-(--sl-color-text-accent);
368389
}
369390
}
391+
ul {
392+
@apply mt-[5px];
393+
}
370394
}
371395
}
372396
.right-sidebar-panel :global(:where(a)) {

0 commit comments

Comments
 (0)