From c5fcbb33a7a0511ac372f5d006a69f4195d1e266 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Tue, 17 Dec 2024 15:55:52 +0100 Subject: Fix list item spacing bug on Firefox (#2717) --- .changeset/proud-apricots-warn.md | 5 +++++ packages/starlight/style/markdown.css | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/proud-apricots-warn.md diff --git a/.changeset/proud-apricots-warn.md b/.changeset/proud-apricots-warn.md new file mode 100644 index 00000000..6d944257 --- /dev/null +++ b/.changeset/proud-apricots-warn.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Fixes a list item spacing issue where line break elements (`
`) could receive a margin, breaking layout in Firefox diff --git a/packages/starlight/style/markdown.css b/packages/starlight/style/markdown.css index 476039c0..2fe23920 100644 --- a/packages/starlight/style/markdown.css +++ b/packages/starlight/style/markdown.css @@ -24,7 +24,7 @@ .sl-markdown-content li - > :last-child:not(li, ul, ol):not(a, strong, em, del, span, input, :where(.not-content *)) { + > :last-child:not(li, ul, ol, a, strong, em, del, span, input, code, br, :where(.not-content *)) { margin-bottom: 1.25rem; } -- cgit