summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Lewis2023-07-28 22:20:17 +0100
committerGitHub2023-07-28 23:20:17 +0200
commit38ff53c216898efaa8c07394500e82da1d68ee8a (patch)
tree1a4972e16d03a71b28c0062b4bb6aa937f38bf59
parent4485d90fbddf7c9458b43f9d9b7560b41ec9e98f (diff)
downloadIT.starlight-38ff53c216898efaa8c07394500e82da1d68ee8a.tar.gz
IT.starlight-38ff53c216898efaa8c07394500e82da1d68ee8a.tar.bz2
IT.starlight-38ff53c216898efaa8c07394500e82da1d68ee8a.zip
Improve styling of sidebar entries that wrap (#419)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
-rw-r--r--.changeset/khaki-islands-unite.md5
-rw-r--r--packages/starlight/components/SidebarSublist.astro3
2 files changed, 7 insertions, 1 deletions
diff --git a/.changeset/khaki-islands-unite.md b/.changeset/khaki-islands-unite.md
new file mode 100644
index 00000000..ef0fa664
--- /dev/null
+++ b/.changeset/khaki-islands-unite.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/starlight': patch
+---
+
+Improve styling of sidebar entries that wrap onto multiple lines
diff --git a/packages/starlight/components/SidebarSublist.astro b/packages/starlight/components/SidebarSublist.astro
index fe6be9fb..76015484 100644
--- a/packages/starlight/components/SidebarSublist.astro
+++ b/packages/starlight/components/SidebarSublist.astro
@@ -87,7 +87,8 @@ interface Props {
border-radius: 0.25rem;
text-decoration: none;
color: var(--sl-color-gray-2);
- padding: 0.1em var(--sl-sidebar-item-padding-inline);
+ padding: 0.3em var(--sl-sidebar-item-padding-inline);
+ line-height: 1.4;
}
a:hover,