Fix gallery image borders being slightly off

This commit is contained in:
Joshua Goins 2023-04-17 16:46:49 -04:00
parent b24be37ce2
commit 1dc7f9ef8a
2 changed files with 4 additions and 5 deletions

View file

@ -253,8 +253,7 @@ figure figcaption {
white-space: nowrap;
}
.grid-item {
margin-bottom: 10px;
.grid-item img {
border: 1px inset black;
border-radius: 3px;
}

View file

@ -34,17 +34,17 @@
{{ with $image }}
{{ if $.Params.threed }}
{{ with resources.Get "3d.png" }}
<img alt="Viewable 3D" title="Viewable 3D" style="z-index: 1; position: absolute; left: 10px; top: 10px" src="{{ .Permalink }}">
<img alt="Viewable 3D" title="Viewable 3D" style="z-index: 1; position: absolute; left: 10px; top: 10px; border: none" src="{{ .Permalink }}">
{{ end }}
{{ end }}
{{ if $.Params.animation }}
{{ with resources.Get "play-circle.png" }}
<img alt="Viewable Animation" title="Viewable Animation" style="z-index: 1; position: absolute; left: 10px; top: 10px" src="{{ .Permalink }}">
<img alt="Viewable Animation" title="Viewable Animation" style="z-index: 1; position: absolute; left: 10px; top: 10px; border: none" src="{{ .Permalink }}">
{{ end }}
{{ end }}
<img width="{{ .Width }}" height="{{ .Height }}" alt="{{ $title }}" title="{{ $title }}" src="{{ .Permalink }}">
<img width="{{ .Width }}" height="{{ .Height }}" alt="{{ $title }}" title="{{ $title }}" src="{{ .Permalink }}">
{{ else }}
<p>Thumbnail not found!</p>
{{ end }}