% if (defined $img) { $tn = scaled "thumb", $img; }
% else { $tn = "$STATICURL/folder.svg"; }
% if ($focus) {
- <div class=thumb id=focusthumb>
+ <figure class=thumb id=focusthumb>
<img class=thumb src="<% $tn |u %>">
- <div class=caption><span class=name><% $caption %></span></div>
+ <figcaption><span class=name><% $caption %></span></figcaption>
% } else {
- <div class=thumb>
+ <figure class=thumb>
<a class=thumb href="<% $target |u %>">
<img class=thumb src="<% $tn |u %>">
- <div class=caption>
+ <figcaption>
<span class=name><% $caption %></span>
% if (defined $comment) {
<span class=comment><% $comment %></span>
% }
- </div>
+ </figcaption>
</a>
% }
- </div>
+ </figure>
%
<%args>
$target
text-align: center;
}
-div.thumb {
+figure.thumb {
display: inline-block;
vertical-align: top;
width: 228px;
margin-top: 2ex; margin-bottom: 2ex;
}
-div.caption {
+figure.thumb figcaption {
display: block;
width: 228px;
}
-div.caption span.name { font-family: sans-serif; }
-div.caption span.comment { font-style: italic; margin-inline-start: 1em; }
+figcaption span.name { font-family: sans-serif; }
+figcaption span.comment { font-style: italic; margin-inline-start: 1em; }
div.viewnav {
flex-grow: 1; flex-basis: 0;