changeset 8400:c99e37d270b3

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.
author John Rouillard <rouilj@ieee.org>
date Wed, 16 Jul 2025 20:02:11 -0400
parents 036ba3496232
children 001c16ac87ec accddaeda449
files doc/_static/style.css website/www/_static/style.css
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
+}
--- 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 */

Roundup Issue Tracker: http://roundup-tracker.org/