paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 705d27ac61c377f95bced80d1cbed9216fadb1d5
parent 4ea64ff75076da5317010d3c9b91809a095cb17b
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon, 16 Dec 2019 03:41:53 -0500

Add back-to-top arrows to each section heading

Diffstat:
Mbuild/base.css | 10++++++++++
Mcreatepages.sh | 2++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/build/base.css b/build/base.css @@ -116,6 +116,16 @@ kbd { white-space: nowrap; } +.back-to-top, .back-to-top:hover, .back-to-top:visited { + color: #ffffb3; + font-size: 1.2em; + text-decoration: none; +} + +.back-to-top:hover { + text-shadow: 2px 2px #b77; +} + .center { text-align: center; } diff --git a/createpages.sh b/createpages.sh @@ -183,6 +183,8 @@ for page in $@; do $htmldir/$savepath/$pagename.html sed -i "/<h3>$sectionName<\/h3>/i <a id=\"$sectionNameNS\"></a>" \ $htmldir/$savepath/$pagename.html + sed -i "s/<h3>$sectionName<\/h3>/<h3>$sectionName <a class=\"back-to-top\" href=\"#top\">\&\#10548\;<\/a><\/h3>/g" \ + $htmldir/$savepath/$pagename.html fi done sed -i "/toc-title/a <ul>" $htmldir/$savepath/$pagename.html