Skip to content

Commit

Permalink
Fix scroll jump on mobile after sticky TOC [PUB-200]
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgarwood committed Aug 23, 2024
1 parent 6994de4 commit e74f53b
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions frontend/scss/molecules/_m-article-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1138,15 +1138,20 @@
}
}
@include breakpoint('medium-') {
.s-sticky-digital-publication-header &~.m-sidebar-toggle {
position: fixed;
top: 0;
width: 100vw;
z-index: map-get($zindexs, 'header');

&::before {
left: 0;
width: 150vw;
.s-sticky-digital-publication-header {
&~.m-sidebar-toggle {
position: fixed;
top: 0;
width: 100vw;
z-index: map-get($zindexs, 'header');

&::before {
left: 0;
width: 150vw;
}
}
.m-article-header__spacer {
min-height: 54px;
}
}
}
Expand Down

0 comments on commit e74f53b

Please sign in to comment.