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 { pre {
padding: var(--code-padding); padding: var(--code-padding);
border: 1px solid var(--code-border);
overflow: scroll; overflow: scroll;
border-radius: var(--code-border-radius); border-radius: var(--code-border-radius);
margin-top: var(--code-margin-top); margin-top: var(--code-margin-top);
@ -362,3 +363,13 @@ footer a {
.giscus { .giscus {
margin-top: 3rem; 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 */ /* Theme */
--content: rgb(30, 30, 30); --content: rgb(30, 30, 30);
--background: rgb(255, 255, 255); --background: rgb(255, 255, 255);
--code-background: rgb(245, 245, 245); --code-background: rgb(249, 249, 249);
--code-border: rgb(229, 229, 229);
} }
.dark { .dark {
--content: rgb(218, 218, 218); --content: rgb(218, 218, 218);
--background: rgb(30, 30, 30); --background: rgb(30, 30, 30);
--code-background: rgb(40, 40, 40); --code-background: rgb(40, 40, 40);
--code-border: rgb(60, 60, 60);
} }
@media screen and (max-width: 1024px) { @media screen and (max-width: 1024px) {

View File

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