Skip to content

Commit

Permalink
Make medium- TOC toggle sticky, hide header [PUB-216]
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgarwood committed Aug 23, 2024
1 parent cc63278 commit 3070d1c
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions frontend/scss/molecules/_m-article-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1138,25 +1138,6 @@
}
}

@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;
}
}
.m-article-header__spacer {
min-height: 54px;
}
}
}

@include breakpoint('large+') {
flex-flow: row-reverse nowrap;

Expand Down Expand Up @@ -1202,6 +1183,10 @@
}

.p-digitalpublications-showlisting & {
@include breakpoint('medium-') {
display: none;
}

@include breakpoint('large+') {
.m-article-header__img {
height: 180px;
Expand Down Expand Up @@ -1245,6 +1230,24 @@
}

.s-sticky-digital-publication-header {
@include breakpoint('medium-') {
.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;
}
}

@include breakpoint('large+') {
.m-article-header--digital-publication {
position: fixed;
Expand Down

0 comments on commit 3070d1c

Please sign in to comment.