From cdf63d4b0e14a5640e6e81e94506645a38f89ae3 Mon Sep 17 00:00:00 2001 From: GBKS Date: Mon, 10 Jan 2022 17:13:53 +0100 Subject: [PATCH] Deep-link scroll fix Fixes an issue when the deep-linking to a specific header. Previously, the header was covered up by the static nav bar. This adjusts the spacing so the header is visible. Addresses #500. --- _sass/minima/_layout.scss | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_sass/minima/_layout.scss b/_sass/minima/_layout.scss index 77648153a..24b898074 100644 --- a/_sass/minima/_layout.scss +++ b/_sass/minima/_layout.scss @@ -219,13 +219,13 @@ article.guide { h2, h3, .h2, .h3 { &::before { - height: $spacing-unit * 1; + height: $spacing-unit * 3; + margin-top: -$spacing-unit * 2; } @include media-query(medium-up) { &::before { - height: $spacing-unit * 3; - margin-top: -$spacing-unit * 2; + } } } @@ -233,13 +233,13 @@ article.guide { h4, h5, h6, .h4, .h5, .h6 { &::before { - height: $spacing-unit * 1.5; - margin-top: -$spacing-unit 1.5; + height: $spacing-unit * 3; + margin-top: -$spacing-unit * 2; } @include media-query(medium-up) { &::before { - height: $spacing-unit * 1; + } } }