From e58ddbc9f10307e53681fba743defa2ca01c0914 Mon Sep 17 00:00:00 2001 From: Herman Karlsson Date: Sun, 20 Oct 2024 14:48:27 +0200 Subject: [PATCH 1/2] add scroll margin to all header levels --- src/components/App.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/App.css b/src/components/App.css index 4603b95..1c580d6 100644 --- a/src/components/App.css +++ b/src/components/App.css @@ -11,3 +11,7 @@ h3, .cerise #content h3 { .pagination .disabled, .pagination .disabled a { color: #999 !important; } + +h1, h2, h3, h4, h5, h6 { + scroll-margin-top: 60px +} \ No newline at end of file From 916a2b73bbae5e2ec5ea42586e061554e6a9ce7b Mon Sep 17 00:00:00 2001 From: Herman Karlsson Date: Sun, 20 Oct 2024 15:26:23 +0200 Subject: [PATCH 2/2] add some specificity --- src/components/App.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/App.css b/src/components/App.css index 1c580d6..01cd271 100644 --- a/src/components/App.css +++ b/src/components/App.css @@ -12,6 +12,11 @@ h3, .cerise #content h3 { color: #999 !important; } -h1, h2, h3, h4, h5, h6 { +#content h1, +#content h2, +#content h3, +#content h4, +#content h5, +#content h6 { scroll-margin-top: 60px } \ No newline at end of file