mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-29 09:52:19 +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 -->
|
||||
{{ $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;
|
||||
|
||||
}
|
||||
|
@ -333,4 +332,15 @@ button.tinylytics_kudos:hover {
|
|||
.frontmatter_tags {
|
||||
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