Fix gallery image borders being slightly off
This commit is contained in:
parent
b24be37ce2
commit
1dc7f9ef8a
2 changed files with 4 additions and 5 deletions
|
@ -253,8 +253,7 @@ figure figcaption {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid-item {
|
.grid-item img {
|
||||||
margin-bottom: 10px;
|
|
||||||
border: 1px inset black;
|
border: 1px inset black;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,17 +34,17 @@
|
||||||
{{ with $image }}
|
{{ with $image }}
|
||||||
{{ if $.Params.threed }}
|
{{ if $.Params.threed }}
|
||||||
{{ with resources.Get "3d.png" }}
|
{{ 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 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if $.Params.animation }}
|
{{ if $.Params.animation }}
|
||||||
{{ with resources.Get "play-circle.png" }}
|
{{ 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 }}
|
||||||
{{ 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 }}
|
{{ else }}
|
||||||
<p>Thumbnail not found!</p>
|
<p>Thumbnail not found!</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue