diff --git a/build/media_source/templates/site/cassiopeia/scss/blocks/_global.scss b/build/media_source/templates/site/cassiopeia/scss/blocks/_global.scss index 1eb404754bdce..72d3db710b482 100644 --- a/build/media_source/templates/site/cassiopeia/scss/blocks/_global.scss +++ b/build/media_source/templates/site/cassiopeia/scss/blocks/_global.scss @@ -7,6 +7,12 @@ @media screen and (prefers-reduced-motion: reduce) { scroll-behavior: auto; } + + &:has(.sticky-top) { + [id] { + scroll-margin-top: var(--cassiopeia-scroll-margin-top, 10rem); + } + } } html {