mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-26 00:42:18 +00:00
style back-to-top with css
This commit is contained in:
parent
97d7c08d0b
commit
5a63d1a007
2 changed files with 12 additions and 6 deletions
|
@ -6,11 +6,7 @@
|
||||||
<!-- Back to Top button via https://github.com/vfeskov/vanilla-back-to-top -->
|
<!-- Back to Top button via https://github.com/vfeskov/vanilla-back-to-top -->
|
||||||
{{ $jsToTop := resources.Get "js/back-to-top.js" | minify }}
|
{{ $jsToTop := resources.Get "js/back-to-top.js" | minify }}
|
||||||
<script src="{{ $jsToTop.RelPermalink }}"></script>
|
<script src="{{ $jsToTop.RelPermalink }}"></script>
|
||||||
<script>addBackToTop({
|
<script>addBackToTop()</script>
|
||||||
diameter: 56,
|
|
||||||
backgroundColor: '#383838',
|
|
||||||
textColor: '#c45a5a'
|
|
||||||
})</script>
|
|
||||||
|
|
||||||
<!-- Search index via https://victoria.dev/blog/add-search-to-hugo-static-sites-with-lunr/ -->
|
<!-- Search index via https://victoria.dev/blog/add-search-to-hugo-static-sites-with-lunr/ -->
|
||||||
{{ partial "search-index.html" .}}
|
{{ partial "search-index.html" .}}
|
||||||
|
|
|
@ -260,7 +260,6 @@ form button {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
|
||||||
grid-gap: 0.5rem;
|
grid-gap: 0.5rem;
|
||||||
/* justify-content: center; */
|
|
||||||
margin: 0.5rem 0;
|
margin: 0.5rem 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -334,3 +333,14 @@ button.tinylytics_kudos:hover {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
color: var(--off-fg);
|
color: var(--off-fg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* back-to-top styling */
|
||||||
|
#back-to-top {
|
||||||
|
background: var(--inner-bg);
|
||||||
|
height: 56px;
|
||||||
|
width: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#back-to-top svg {
|
||||||
|
fill: var(--link);
|
||||||
|
}
|
Loading…
Reference in a new issue