From 2594ba2523f76954e14c4abd3c6cacb10c066349 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 9 Dec 2021 18:16:45 +0100 Subject: css: Add scroll-padding-top to html tag. This fixes the scroll position of *all* anchors, not just the message-anchor. --- assets/css/screen.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'assets') diff --git a/assets/css/screen.css b/assets/css/screen.css index 5d8513d..df8aec3 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -1,3 +1,7 @@ +html { + scroll-padding-top: 70px; /* height of sticky header */ +} + html, body { background-color: #fff; width: 100%; @@ -175,7 +179,6 @@ table { a.message-anchor { display: block; position: relative; - top: -80px; visibility: hidden; } -- cgit v1.2.3