Refactoring tasks #80

Merged
sixtus merged 20 commits from refactoring into main 2023-01-02 15:59:31 +00:00
3 changed files with 2 additions and 6 deletions
Showing only changes of commit bbaad4059b - Show all commits

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>