Skip to content

Commit 42a4e7d

Browse files
committed
TD-5346 Fixes mobile header service name styling using overrides
1 parent a5560ba commit 42a4e7d

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

DigitalLearningSolutions.Web/Styles/layout.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,30 @@ footer {
3737
}
3838
}
3939

40+
.nhsuk-header__logo {
41+
@include mq($until: large-desktop) {
42+
max-width: unset;
43+
44+
.nhsuk-header__link--service {
45+
align-items: center;
46+
display: flex;
47+
-ms-flex-align: center;
48+
margin-bottom: 0;
49+
width: auto;
50+
}
51+
52+
.nhsuk-header__service-name {
53+
padding-left: nhsuk-spacing(3);
54+
max-width: unset;
55+
}
56+
}
57+
}
58+
.nhsuk-navigation-container {
59+
@include mq($until: tablet) {
60+
margin-top: unset;
61+
}
62+
}
63+
4064
body:not(.js-enabled) {
4165
.nhsuk-header__menu {
4266
display: none;

DigitalLearningSolutions.Web/Views/Shared/_Layout.cshtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@
153153
@{
154154
var visualSeparatorNoNavBar = (bool?)ViewData[LayoutViewDataKeys.DoNotDisplayNavBar] == true ? "visual-separator-no-nav-bar" : string.Empty;
155155
}
156-
<div class="visual-separator @visualSeparatorNoNavBar"></div>
157156

158157
<feature name="@(FeatureFlags.UserFeedbackBar)">
159158
<partial name="_UserFeedbackBarPartial" model=@(userResearchUrl) />

0 commit comments

Comments
 (0)