From 9e189f37fbcb89175c2a55004b4b23746553fd70 Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 17 Mar 2023 22:58:41 +0000 Subject: [PATCH] backend: rework gallery hyperlinks styling Apply properties to a element, not img. Set "line-height: 0" to remove extraneous extra space at the bottom of the image, still inside a element. --- public/css/style.css | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index 0f4fc31..136d6d9 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -158,9 +158,11 @@ dd { padding: 0 0.5rem; } -.gallery > a > img, -.gallery > a:link > img, -.gallery > a:visited > img { +.gallery > a, +.gallery > a:link, +.gallery > a:visited { + line-height: 0; + max-height: 24rem; max-width: 14rem; @@ -169,8 +171,8 @@ dd { outline-color: var(--accent); } -.gallery > a:hover > img, -.gallery > a:active > img { +.gallery > a:hover, +.gallery > a:active { outline-color: var(--accent-hover); }