From bbaad4059b0d6ee523ef6a2cc348654376a22dca Mon Sep 17 00:00:00 2001 From: Frieder Griesshammer Date: Sun, 1 Jan 2023 17:41:38 +0100 Subject: [PATCH] Drop non-required 'pad-vertical' css rule --- assets/custom.css | 4 ---- layouts/shortcodes/random_image.html | 2 +- layouts/shortcodes/resource_image.html | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/assets/custom.css b/assets/custom.css index 2519b1d..d067130 100644 --- a/assets/custom.css +++ b/assets/custom.css @@ -3,10 +3,6 @@ text-align: center; } -.pad-vertical { - padding: .5em 0; -} - dl dt, dl dd { margin-bottom: .25em; diff --git a/layouts/shortcodes/random_image.html b/layouts/shortcodes/random_image.html index b59b9f1..3a3d1a4 100644 --- a/layouts/shortcodes/random_image.html +++ b/layouts/shortcodes/random_image.html @@ -12,7 +12,7 @@ document.addEventListener("DOMContentLoaded", function() { if (!container || !choices) { return; } const img = document.createElement("img"); img.alt = "{{ $alt }}"; - img.classList.add("centered", "pad-vertical"); + img.classList.add("centered"); img.src = choices[Math.floor(Math.random() * choices.length)]; container.appendChild(img); }) diff --git a/layouts/shortcodes/resource_image.html b/layouts/shortcodes/resource_image.html index 295d85f..861a7c4 100644 --- a/layouts/shortcodes/resource_image.html +++ b/layouts/shortcodes/resource_image.html @@ -8,5 +8,5 @@ {{- end }} {{- $img := resources.Get $src | resources.Fingerprint }}

- {{ $alt }} + {{ $alt }}