Drop non-required 'pad-vertical' css rule

This commit is contained in:
sixtus 2023-01-01 17:41:38 +01:00
parent d012c592f0
commit bbaad4059b
3 changed files with 2 additions and 6 deletions

View File

@ -3,10 +3,6 @@
text-align: center;
}
.pad-vertical {
padding: .5em 0;
}
dl dt,
dl dd {
margin-bottom: .25em;

View File

@ -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);
})

View File

@ -8,5 +8,5 @@
{{- end }}
{{- $img := resources.Get $src | resources.Fingerprint }}
<p>
<img class="centered pad-vertical" src="{{ $img.RelPermalink }}" alt="{{ $alt }}">
<img class="centered" src="{{ $img.RelPermalink }}" alt="{{ $alt }}">
</p>