Skip to content

Commit 74bfebd

Browse files
authored
fix: Fix list styles and image zoom (#504)
1 parent e6781c2 commit 74bfebd

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export default defineConfig({
5858
],
5959
components: {
6060
Head: './src/components/starlight/Head.astro',
61+
MarkdownContent: './src/components/starlight/MarkdownContent.astro',
6162
ThemeSelect: './src/components/ThemeSelect.astro',
6263
},
6364
customCss: ['./src/styles/custom.css'],
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
import NovaMarkdownContent from 'starlight-theme-nova/components/MarkdownContent.astro'
3+
import ImageZoom from 'starlight-image-zoom/components/ImageZoom.astro'
4+
---
5+
6+
<ImageZoom />
7+
<NovaMarkdownContent><slot /></NovaMarkdownContent>

src/styles/custom.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ h6 {
3939
font-family: 'General Sans', sans-serif;
4040
}
4141

42+
/* Restore list styles removed by Tailwind preflight. */
43+
@layer base {
44+
ul {
45+
list-style: disc;
46+
padding-left: 1.5rem;
47+
}
48+
ol {
49+
list-style: decimal;
50+
padding-left: 1.5rem;
51+
}
52+
}
53+
4254
/* Add spacing between paragraphs and interactive components (e.g. LinkButton) */
4355
.sl-markdown-content > p + .not-content {
4456
margin-top: 1rem;

0 commit comments

Comments
 (0)