Skip to content

Commit 134e6c1

Browse files
authored
Merge pull request #1349 from alphagov/zd-6099831/dvsa-nidirect-branding
zd-6099831: dvsa nidirect branding
2 parents 3dcffe5 + 9cdc570 commit 134e6c1

2 files changed

Lines changed: 74 additions & 0 deletions

File tree

images/custom/dvsa-nidirect.svg

Lines changed: 11 additions & 0 deletions
Loading

sass/custom/dvsa-nidirect.scss

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
$govuk-font-family: -apple-system,BlinkMacSystemFont,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; // Override font as so not to use New Transport
2+
@import "application";
3+
4+
// CUSTOM BRANDING
5+
// Use the variables below to control the style
6+
// Make sure banner colours meet minimum colour contrast levels
7+
8+
$custom-banner-colour: #0a78cd;
9+
$custom-banner-border-colour: #0a78cd;
10+
$custom-text-colour: #ffffff;
11+
$logo-image-height: 32px;
12+
13+
.custom-branding {
14+
@if $logo-image-height != null {
15+
.custom-branding-image {
16+
max-height: $logo-image-height;
17+
18+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
19+
width: 100%;
20+
}
21+
}
22+
}
23+
24+
.govuk-header {
25+
background-color: $custom-banner-colour;
26+
}
27+
28+
.govuk-header__link{
29+
&:link,
30+
&:visited {
31+
color: $custom-text-colour;
32+
}
33+
}
34+
35+
.govuk-header__link--homepage {
36+
&:hover,
37+
&:active {
38+
border-bottom: none;
39+
margin-bottom: 0;
40+
}
41+
}
42+
43+
.govuk-header__service-name {
44+
color: $custom-text-colour;
45+
}
46+
47+
.govuk-header__container {
48+
border-bottom-color: $custom-banner-border-colour;
49+
}
50+
51+
@include govuk-media-query($from: tablet) {
52+
.govuk-header__content {
53+
width: 66%;
54+
vertical-align: bottom;
55+
margin-bottom: 7px;
56+
}
57+
}
58+
59+
.govuk-button {
60+
padding: 7px 15px 6px;
61+
padding: .368421053em .842105263em .315789474em;
62+
}
63+
}

0 commit comments

Comments
 (0)