forked from Frontend/Homepage
Drop non-required 'pad-vertical' css rule
This commit is contained in:
parent
d012c592f0
commit
bbaad4059b
|
@ -3,10 +3,6 @@
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.pad-vertical {
|
||||
padding: .5em 0;
|
||||
}
|
||||
|
||||
dl dt,
|
||||
dl dd {
|
||||
margin-bottom: .25em;
|
||||
|
|
|
@ -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);
|
||||
})
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue