Back to top button

This commit is contained in:
Francesco 2024-05-16 16:53:32 +02:00
parent 90b63e6eed
commit e5f8dab495
3 changed files with 22 additions and 1 deletions

View File

@ -62,6 +62,7 @@ a {
pre {
padding: var(--code-padding);
border: 1px solid var(--code-border);
overflow: scroll;
border-radius: var(--code-border-radius);
margin-top: var(--code-margin-top);
@ -362,3 +363,13 @@ footer a {
.giscus {
margin-top: 3rem;
}
/* Back to top */
.back-to-top {
text-align: center;
font-family: "Monaspace";
font-size: small;
margin-bottom: 2rem;
margin-top: -3rem;
}

View File

@ -45,13 +45,15 @@
/* Theme */
--content: rgb(30, 30, 30);
--background: rgb(255, 255, 255);
--code-background: rgb(245, 245, 245);
--code-background: rgb(249, 249, 249);
--code-border: rgb(229, 229, 229);
}
.dark {
--content: rgb(218, 218, 218);
--background: rgb(30, 30, 30);
--code-background: rgb(40, 40, 40);
--code-border: rgb(60, 60, 60);
}
@media screen and (max-width: 1024px) {

View File

@ -67,6 +67,14 @@
{{ partial "comments.html" . }}
</div>
{{ if not (.Param "hideBackToTop") }}
<div class="back-to-top">
<a href="#top">
back to top
</a>
</div>
{{ end }}
</div>
{{ end }}