# HG changeset patch # User John Rouillard # Date 1752710531 14400 # Node ID c99e37d270b31200d4bd0242d85a0fb40ae8c63a # Parent 036ba349623280625bc6b75eb7143245befd2f52 doc: move #target a 2em from top of viewport. Make sure there is a little space between top of viewport and the element selected with a #fragment. This looks cleaner. diff -r 036ba3496232 -r c99e37d270b3 doc/_static/style.css --- a/doc/_static/style.css Wed Jul 16 20:00:07 2025 -0400 +++ b/doc/_static/style.css Wed Jul 16 20:02:11 2025 -0400 @@ -512,3 +512,7 @@ } */ +/* move the target off the top of the viewport by a little */ +:target { + scroll-margin-block-start: 2em; +} diff -r 036ba3496232 -r c99e37d270b3 website/www/_static/style.css --- a/website/www/_static/style.css Wed Jul 16 20:00:07 2025 -0400 +++ b/website/www/_static/style.css Wed Jul 16 20:02:11 2025 -0400 @@ -512,6 +512,11 @@ } */ +/* move the target off the top of the viewport by a little */ +:target { + scroll-margin-block-start: 2em; +} + /* website only */ /* assume desktop reader for local html files, also no contact page for local doc files */