« get me outta code hell

auto-height image banner - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-04-06 14:14:24 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-04-06 14:15:24 -0300
commitde0f42a3cd34311d1448fc0ebed901ad1260d3db (patch)
tree602a983c5ad384f969af2e397156a35c4b52c9c8
parent8ef62b0895af96fd67b66fc021e0f46ac817af3f (diff)
auto-height image banner
this isn't a 100% perfect fix since loaded, upscaled banners will have a
*slightly* different final height than the lazy load (about 3px), but
it's relatively negligible. preferably, refined banners would be the
target 1100x200 aspect ratio in the first place.
-rw-r--r--static/site.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/site.css b/static/site.css
index 241d161..ae41f88 100644
--- a/static/site.css
+++ b/static/site.css
@@ -72,6 +72,7 @@ body::before {
 #banner img {
     display: block;
     width: 100%;
+    height: auto;
 }
 
 a {