Skip to content

Commit

Permalink
Fix all the margins at different break points
Browse files Browse the repository at this point in the history
  • Loading branch information
frankieroberto committed Oct 17, 2024
1 parent fa49da2 commit 8d88072
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions packages/components/header/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@
.nhsuk-navigation {
/* These negative margins are the same as the padding on the navigation items,
and used to align the text of the first and last item with the rest of the header. */
margin-left: -12px;
margin-right: -12px;
margin-left: -16px;
margin-right: -16px;
display: flex;

@include mq($from: tablet) {
Expand All @@ -475,9 +475,17 @@

// ul of visible nav
.nhsuk-header__navigation-list {
margin-left: 4px;
margin-right: 4px;

@extend %nhsuk-navigation-list;
width: 100%;

@include mq($from: tablet) {
margin-left: 0;
margin-right: 0;
}

@include mq($from: desktop) {
display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -509,10 +517,22 @@
right: 0;
top: 100%;
left: 0;
margin-left: 0;
margin-right: 0;

@include mq($from: tablet) {
margin-left: -8px;
margin-right: -16px;
}

@include mq($from: desktop) {
margin-left: -16px;
margin-right: -32px;
}

.nhsuk-header__navigation-link {
color: $color_nhsuk-blue;
padding: 12px;
padding: 16px;
}

.nhsuk-header__navigation-item {
Expand Down

0 comments on commit 8d88072

Please sign in to comment.