« get me outta code hell

css: make images not expand to fit - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-07-30 21:54:14 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-07-30 21:54:14 -0300
commit34c486175735dd2f546683883cda2542b4533053 (patch)
tree0d2271e76f6fc7a2fdde5a025bf5bbf4537ac303
parent6c2dea8ec54a4dd48a9107d8a61fe151e9aace37 (diff)
css: make images not expand to fit
Which apparently doesn't break anything, surprisingly.
-rw-r--r--src/static/site4.css5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/static/site4.css b/src/static/site4.css
index 6a23ff4..b4e23cf 100644
--- a/src/static/site4.css
+++ b/src/static/site4.css
@@ -549,8 +549,8 @@ a.box:focus:not(:focus-visible) {
 
 a.box img {
   display: block;
-  width: 100%;
-  height: 100%;
+  max-width: 100%;
+  height: auto;
 }
 
 h1 {
@@ -769,7 +769,6 @@ li > ul {
   background-color: var(--dim-color);
   color: white;
   display: inline-block;
-  width: 100%;
   height: 100%;
 }