[THEME] Fix image hover and sup size

This commit is contained in:
Gregory Trolliet 2022-10-11 19:23:02 +02:00
parent 59b2f3c8f4
commit 70214fda1b
2 changed files with 4 additions and 1 deletions

View file

@ -2,7 +2,7 @@
{{ $name_splitted := split $img.RelPermalink "." }} {{ $name_splitted := split $img.RelPermalink "." }}
{{ $name_base := index $name_splitted 0 }} {{ $name_base := index $name_splitted 0 }}
{{ $ext_base := index $name_splitted 1 }} {{ $ext_base := index $name_splitted 1 }}
<figure {{ with .Get "class" }} class="{{ . }}"{{ end }}> <figure {{ with .Get "id" }} id="{{ . }}"{{ end }}{{ with .Get "class" }} class="{{ . }}"{{ end }}>
{{ with .Get "link" }} {{ with .Get "link" }}
<a href="{{ . | absURL }}"> <a href="{{ . | absURL }}">
{{ else }} {{ else }}

View file

@ -626,6 +626,8 @@ a.not(.anchor):focus {
} }
.article-body figure figcaption .attribution { .article-body figure figcaption .attribution {
float: right; float: right;
margin-left: 1em;
margin-top: 1em;
} }
@media only screen and (max-width: 320px) { @media only screen and (max-width: 320px) {
.article-body .footnotes ol { .article-body .footnotes ol {
@ -749,6 +751,7 @@ details[open] summary:hover {
vertical-align: top; vertical-align: top;
position: relative; position: relative;
top: -0.5rem; top: -0.5rem;
font-size: 0.6em;
} }
/******************* Article Blockquote *******************/ /******************* Article Blockquote *******************/