From abc4638373be9c9ce70e0c8eafba8fb4c60684cb Mon Sep 17 00:00:00 2001 From: noether Date: Sun, 1 Nov 2026 21:45:45 -0700 Subject: [PATCH] theme: cap sidebar logo at 113px (live-site size); was stretched to fill widened menu --- themes/hugo-book/assets/_custom.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/themes/hugo-book/assets/_custom.scss b/themes/hugo-book/assets/_custom.scss index 3cd4d6a..e7e82f8 100644 --- a/themes/hugo-book/assets/_custom.scss +++ b/themes/hugo-book/assets/_custom.scss @@ -34,3 +34,15 @@ max-width: 100%; height: auto; } + +// Cap the sidebar logo. +// +// The theme sets `.book-brand img { width: 100% }`, which stretches the logo +// to fill the (widened) sidebar — ~285px locally vs 113px on the live site. +// Pin it to the live size so it is no longer huge. `_custom.scss` is imported +// last in book.scss, so this wins the cascade over the theme rule. +.book-brand img { + width: 113px; + max-width: 113px; + height: auto; +}