From 9cc4817e2e073a927f34d064308f4da7bd01c09a Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Wed, 28 Apr 2021 19:00:58 +0530 Subject: [PATCH] Fix scroll-padding on article anchor links (#13501) --- app/assets/stylesheets/article-show.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/stylesheets/article-show.scss b/app/assets/stylesheets/article-show.scss index c050acd0c..9aaebdac7 100644 --- a/app/assets/stylesheets/article-show.scss +++ b/app/assets/stylesheets/article-show.scss @@ -6,6 +6,10 @@ height: 10px; } +:root { + scroll-padding-top: var(--header-height); +} + body.default-header { .crayons-article .crayons-article__body [id] { scroll-margin-top: var(--header-height);