summaryrefslogtreecommitdiff
path: root/assets/css
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-12-09 18:16:45 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-12-09 18:16:45 +0100
commit2594ba2523f76954e14c4abd3c6cacb10c066349 (patch)
tree12c98880c0d1870073b0f99d7e53134d941d6d87 /assets/css
parent951e6f3ae0757241caf58ec51e6c64114d12554b (diff)
css: Add scroll-padding-top to html tag.
This fixes the scroll position of *all* anchors, not just the message-anchor.
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/screen.css5
1 files changed, 4 insertions, 1 deletions
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;
}