Skip to content

Commit bdc90b3

Browse files
authored
Merge pull request #1460 from alphagov/ZD-6594541-Custom-Branding-for-Belfast-City-Council
ZD-6594541 Custom branding for Belfast City Council
2 parents df18267 + a67e5e8 commit bdc90b3

2 files changed

Lines changed: 80 additions & 0 deletions

File tree

695 KB
Loading
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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: #ffffff;
9+
$custom-banner-border-colour: #008996;
10+
$custom-text-colour: #ffffff;
11+
$logo-image-height: 2em;
12+
13+
.govuk-template--rebranded {
14+
.custom-branding {
15+
@if $logo-image-height != null {
16+
.custom-branding-image {
17+
max-height: $logo-image-height;
18+
19+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
20+
width: 100%;
21+
}
22+
}
23+
}
24+
25+
.govuk-header {
26+
background-color: $custom-banner-colour;
27+
border-bottom: 10px solid #ffffff;
28+
}
29+
30+
.govuk-header__logo {
31+
margin-bottom: 10px;
32+
padding-top: 0;
33+
padding-bottom: 0;
34+
}
35+
36+
.govuk-header__service-name {
37+
margin: 0 0 15px;
38+
color: $custom-text-colour;
39+
}
40+
41+
.govuk-header__link{
42+
&:link,
43+
&:visited {
44+
color: $custom-text-colour;
45+
}
46+
}
47+
48+
.govuk-header__link--homepage {
49+
&:hover,
50+
&:active {
51+
border-bottom: none;
52+
margin-bottom: 0;
53+
}
54+
55+
&:not(:focus) {
56+
background-color: transparent;
57+
}
58+
}
59+
60+
61+
.govuk-header__container {
62+
border-bottom: 10px solid $custom-banner-border-colour;
63+
margin-bottom: -10px;
64+
padding-top: 10px;
65+
}
66+
67+
@include govuk-media-query($from: tablet) {
68+
.govuk-header__content {
69+
width: 66%;
70+
vertical-align: bottom;
71+
margin-bottom: 7px;
72+
}
73+
}
74+
75+
.govuk-button {
76+
padding: 7px 15px 6px;
77+
padding: .368421053em .842105263em .315789474em;
78+
}
79+
}
80+
}

0 commit comments

Comments
 (0)