@@ -10,6 +10,9 @@ $someExtraHeight: 10px;
1010$topHeightDesktop : $navigationHeight + $navigationSubHeight + $someExtraHeight ;
1111$topHeightDesktopWithBanner : $bannerHeight + $topHeightDesktop ;
1212
13+ $topHeightMobile : $navigationHeight ;
14+ $topHeightMobileWithBanner : $bannerHeight + $topHeightMobile ;
15+
1316.markdown {
1417 line-height : 1.5em ;
1518
@@ -32,22 +35,38 @@ $topHeightDesktopWithBanner: $bannerHeight + $topHeightDesktop;
3235 font-size : getFontSize (-1 );
3336 }
3437
38+ h2 ,
39+ h3 ,
40+ h4 ,
41+ h5 ,
42+ h6 {
43+ & :before {
44+ content : ' ' ;
45+ display : block ;
46+ visibility : hidden ;
47+ pointer-events : none ;
48+ height : $topHeightMobile ;
49+ margin-top : - #{$topHeightMobile } ;
50+ @include break {
51+ height : $topHeightDesktop ;
52+ margin-top : - #{$topHeightDesktop } ;
53+ }
54+ }
55+ }
56+
3557 h1 ,
3658 h2 ,
3759 h3 ,
3860 h4 ,
3961 h5 ,
4062 h6 {
41- display : flex ;
42- flex-wrap : wrap ;
43- align-items : center ;
63+ display : block ;
4464 font-family : $font-stack-heading ;
4565 font-weight : 600 ;
4666 line-height : 1.4 ;
47- margin : 1.5 em 0 0.25em ;
67+ margin : 0 0 0.25em ;
4868 color : getColor (fiord );
4969 word-break : break-word ;
50- scroll-margin-top : $topHeightDesktop ;
5170
5271 tt ,
5372 code {
@@ -214,7 +233,7 @@ $topHeightDesktopWithBanner: $bannerHeight + $topHeightDesktop;
214233 border-right : 1px solid #cccccc ;
215234
216235 & :last-child {
217- border-right :none ;
236+ border-right : none ;
218237 }
219238 }
220239
@@ -246,7 +265,7 @@ $topHeightDesktopWithBanner: $bannerHeight + $topHeightDesktop;
246265 border-right : 1px solid #cccccc ;
247266
248267 & :last-child {
249- border-right :none ;
268+ border-right : none ;
250269 }
251270
252271 @include break {
@@ -272,7 +291,7 @@ $topHeightDesktopWithBanner: $bannerHeight + $topHeightDesktop;
272291 flex-direction : column ;
273292 justify-content : baseline ;
274293 margin : 10px 0 ;
275- padding : 0 10px
294+ padding : 0 10px ;
276295 }
277296
278297 .description.desktop {
@@ -393,7 +412,23 @@ $topHeightDesktopWithBanner: $bannerHeight + $topHeightDesktop;
393412}
394413
395414.notification-bar-visible .markdown {
396- h1 ,h2 ,h3 ,h4 ,h5 ,h6 {
397- scroll-margin-top : $topHeightDesktopWithBanner ;
415+ h1 ,
416+ h2 ,
417+ h3 ,
418+ h4 ,
419+ h5 ,
420+ h6 {
421+ & :before {
422+ content : ' ' ;
423+ display : block ;
424+ visibility : hidden ;
425+ pointer-events : none ;
426+ height : $topHeightMobileWithBanner ;
427+ margin-top : - #{$topHeightMobileWithBanner } ;
428+ @include break {
429+ height : $topHeightDesktopWithBanner ;
430+ margin-top : - #{$topHeightDesktopWithBanner } ;
431+ }
432+ }
398433 }
399434}
0 commit comments