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; +}