mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-09 17:42:19 +00:00
style back-to-top with css
This commit is contained in:
parent
4c71de46a9
commit
208b3c19c3
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 -->
|
||||
{{ $jsToTop := resources.Get "js/back-to-top.js" | minify }}
|
||||
<script src="{{ $jsToTop.RelPermalink }}"></script>
|
||||
<script>addBackToTop({
|
||||
diameter: 56,
|
||||
backgroundColor: '#383838',
|
||||
textColor: '#c45a5a'
|
||||
})</script>
|
||||
<script>addBackToTop()</script>
|
||||
|
||||
<!-- Search index via https://victoria.dev/blog/add-search-to-hugo-static-sites-with-lunr/ -->
|
||||
{{ partial "search-index.html" .}}
|
||||
|
|
|
@ -260,7 +260,6 @@ form button {
|
|||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
|
||||
grid-gap: 0.5rem;
|
||||
/* justify-content: center; */
|
||||
margin: 0.5rem 0;
|
||||
|
||||
}
|
||||
|
@ -334,3 +333,14 @@ button.tinylytics_kudos:hover {
|
|||
font-size: 0.8rem;
|
||||
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