diff options
author | Chris Swithinbank | 2024-12-17 15:55:52 +0100 |
---|---|---|
committer | GitHub | 2024-12-17 15:55:52 +0100 |
commit | c5fcbb33a7a0511ac372f5d006a69f4195d1e266 (patch) | |
tree | d7de75f491d1cfeb077278f80e19f5f8bb147451 | |
parent | 9bc88f4862de062a6c9174c9e04aaef9cb9daf93 (diff) | |
download | IT.starlight-c5fcbb33a7a0511ac372f5d006a69f4195d1e266.tar.gz IT.starlight-c5fcbb33a7a0511ac372f5d006a69f4195d1e266.tar.bz2 IT.starlight-c5fcbb33a7a0511ac372f5d006a69f4195d1e266.zip |
Fix list item spacing bug on Firefox (#2717)
-rw-r--r-- | .changeset/proud-apricots-warn.md | 5 | ||||
-rw-r--r-- | packages/starlight/style/markdown.css | 2 |
2 files changed, 6 insertions, 1 deletions
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 (`<br>`) 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; } |