[THEME] Add 'return to top' button
This commit is contained in:
parent
6f457b18c7
commit
73e3e394ac
3 changed files with 14 additions and 1 deletions
|
@ -46,3 +46,6 @@ other = """Raisons possibles :
|
|||
<li>Vous avez peut-être mal saisi l'adresse
|
||||
(<abbr title="Uniform Resource Locator">URL</abbr>).</li>
|
||||
</ul>"""
|
||||
|
||||
[page_top]
|
||||
other = "revenir en haut de page"
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
<footer class="article-footer">
|
||||
<span class="footer-return">
|
||||
<a href="#">{{ i18n "page_top" | humanize }}</a>
|
||||
</span><br/>
|
||||
{{ if .PrevInSection }}
|
||||
<span class="footer-link">
|
||||
<span class="label">{{ i18n "previous_article" | humanize }}:</span>
|
||||
|
|
|
@ -397,7 +397,7 @@ a:focus {
|
|||
}
|
||||
.article-body img {
|
||||
max-width: calc(100% - 5em);
|
||||
min-width: 100%;
|
||||
min-width: calc(100% - 5em);
|
||||
}
|
||||
.article-body h1 {
|
||||
font-size: 2.55rem;
|
||||
|
@ -464,6 +464,13 @@ a:focus {
|
|||
background-color: var(--font-color);
|
||||
vertical-align: middle;
|
||||
}
|
||||
.article-footer .footer-return {
|
||||
margin-bottom: 1em;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.article-footer .footer-link {
|
||||
display: block;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue