Skip to content

Commit

Permalink
responsive header / sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed Nov 4, 2023
1 parent da1849a commit 416945d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/styles/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ header.wp-block-template-part {
> div {
transition: 0.7s background-color;
}
}


@media all and (max-width: 699px) {
.has-modal-open & {
bottom: 0;
}
@media all and (max-width: 699px) {
.has-modal-open & {
position: fixed;
bottom: 0;
left: 0;
right: 0;
}
}

Expand Down Expand Up @@ -56,7 +58,7 @@ header.wp-block-template-part {
}

@media all and (max-width: 699px) {
.has-modal-open header.wp-block-template-part.is-style-fixed {
.has-modal-open header.wp-block-template-part {
.wp-block-navigation__responsive-container {
padding: var(--wp--preset--spacing--70);
}
Expand Down

0 comments on commit 416945d

Please sign in to comment.