Skip to content

Commit

Permalink
Increase homepage-header padding-top if menu is open
Browse files Browse the repository at this point in the history
If the super navigation menu is open, set padding top to 50px for the homepage-header on Desktop screen sizes
  • Loading branch information
MartinJJones committed Dec 1, 2023
1 parent 5c261d6 commit 4e70f05
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/assets/stylesheets/views/_homepage_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ $pale-blue-colour: #d2e2f1;
}
}

// If the super navigation menu is open,
// set padding top to 50px for the homepage-header on Desktop screen sizes
@include govuk-media-query($from: desktop) {
.gem-c-layout-super-navigation-header--menu-open + .homepage .homepage-header {
padding-top: govuk-spacing(8);
}
}

.homepage-header__title {
@include govuk-typography-weight-bold;
color: govuk-colour("white");
Expand Down

0 comments on commit 4e70f05

Please sign in to comment.