Skip to content

Commit d125a07

Browse files
authored
Header styling fixes - janky fixes to enable the menu dropdown to work at mobile breakpoints.
1 parent 0ecb5ab commit d125a07

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

docs/_sass/_nhsnotify.scss

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,30 @@
6767
margin: 0;
6868
}
6969

70-
.nhsuk-header__navigation-list {
71-
display: flex;
70+
.nhsuk-header__navigation-item {
71+
padding-left: 0;
72+
padding-right: 0;
73+
}
74+
75+
.nhsuk-header__navigation-item:first-child .nhsuk-header__navigation-link {
76+
padding-left: 0;
77+
}
78+
79+
.nhsuk-header__navigation-item:nth-child(5) .nhsuk-header__navigation-link {
80+
padding-right: 0;
81+
}
82+
83+
.nhsuk-header__drop-down .nhsuk-header__navigation-item:first-child .nhsuk-header__navigation-link {
84+
padding-left: 16px;
7285
}
7386

7487
.nhsuk-header__navigation-link {
7588
text-decoration: underline;
76-
padding-left: 0px;
77-
padding-right: 0px;
78-
79-
@include mq($until: desktop) {
80-
padding-left: 16px;
81-
padding-right: 16px;
82-
}
8389

8490
&:hover {
8591
text-decoration: none;
8692
}
93+
8794
}
8895

8996
.nhsuk-phase-banner {

0 commit comments

Comments
 (0)