« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/site3.css
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/site3.css')
-rw-r--r--src/static/site3.css10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/static/site3.css b/src/static/site3.css
index cc853b65..22a92f84 100644
--- a/src/static/site3.css
+++ b/src/static/site3.css
@@ -1140,6 +1140,16 @@ html[data-url-key="localized.home"] .carousel-container {
 
 /* Sticky heading */
 
+#content [id] {
+  /* Adjust scroll margin. */
+  scroll-margin-top: calc(
+      74px /* Sticky heading */
+    + 33px /* Sticky subheading */
+    - 1em  /* One line of text (align bottom) */
+    - 4px  /* Padding for hanging letters */
+  );
+}
+
 .content-sticky-heading-container {
   position: sticky;
   top: 0;