-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpage-colours.scss
194 lines (169 loc) · 5.31 KB
/
page-colours.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
$color_nhsuk-white : #ffffff;
$color_nhsuk-black : #000000;
$color_nhsuk-blue : #005eb8;
$color_nhsuk-purple : #330072;
$color_nhsuk-red : #d5281b;
$color_nhsuk-aqua-green : #00a499;
$color_nhsuk-dark-blue : #003087;
$color_nhsuk-bright-blue : #0072ce;
$color_nhsuk-light-blue : #41b6e6;
$color_nhsuk-mid-grey : #768692;
$color_nhsuk-light-grey : #e8edee;
$color_nhsuk-dark-grey : #425563;
$color_nhsuk-pink : #ae2573;
$color_nhsuk-light-purple : #704c9c;
$color_nhsuk-light-green : #78be20;
$color_nhsuk-dark-green : #006747;
$color_gds_black : #0b0c0c;
$page-colours : (
'nhs-blue' : $color_nhsuk-blue,
'dark-blue' : $color_nhsuk_dark-blue,
'bright-blue' : $color_nhsuk-bright-blue,
'mid-grey' : $color_nhsuk-mid-grey,
'dark-grey' : $color-nhsuk-dark-grey,
'black' : $color_nhsuk-black,
'purple' : $color-nhsuk-purple,
'pink' : $color_nhsuk-pink,
'light-purple' : $color_nhsuk-light-purple,
'emergency-services-red' : $color_nhsuk-red,
'dark-green' : $color_nhsuk-dark-green,
'light-green' : $color_nhsuk-light-green,
'aqua-green' : $color_nhsuk-aqua-green,
'gds-black' : $color_gds_black,
);
@each $name, $colour in $page-colours {
.page-colour--#{$name}, #content .page-style--#{$name} {
.nhsuk-footer,
#secondary section {
border-top-color : $colour;
}
.nhsuk-header,
.nhsuk-header--white .nhsuk-search__submit,
#secondary section h2.widget-title,
.nhsuk-panel-with-label__label,
#secondary section #wp-calendar caption,
#secondary section h2.widget-title,
.nhsuk-panel-with-label__label,
#secondary section #wp-calendar caption,
.nhsuk-do-dont-list__label,
.nhsuk-care-card.is-style-default .nhsuk-care-card__heading-container,
.nhsuk-hero--image-description .nhsuk-hero-content,
.nhsuk-panel-with-label__label,
.nhsuk-panel.is-style-panel-with-label h3,
.nhsuk-panel.is-style-panel-with-label h3 .rich-text {
background-color : $colour;
background : $colour;
color : $color_nhsuk-white;
}
.nhsuk-details__summary,
.nhsuk-details__summary-text,
.nhsuk-promo__heading,
.nhsuk-card__heading
a {
color : $colour;
}
a.nhsuk-button {
color : $color_nhsuk-white;
}
a.nhsuk-button--reverse, a.is-style-reverse {
color : $color_nhsuk-black;
}
.nhsuk-inset-text,
.is-style-default .nhsuk-care-card__arrow:before,
.is-style-default .nhsuk-care-card__arrow:after,
.nhsuk-hero--image-description .nhsuk-hero-content .nhsuk-hero__arrow:before,
.nhsuk-hero--image-description .nhsuk-hero-content .nhsuk-hero__arrow:after,
#secondary section {
border-color : $colour;
}
.navigation .nhsuk-pagination ul.nhsuk-pagination__list li.nhsuk-pagination-item--next a .nhsuk-icon,
.navigation .nhsuk-pagination ul.nhsuk-pagination__list li.nhsuk-pagination-item--previous a .nhsuk-icon,
.nhsuk-pagination__link .nhsuk-icon {
fill : $colour;
}
@media (min-width : 40.0625em) {
.nhsuk-icon__search {
fill : $colour;
}
}
#secondary section ul > li > ul > li > a {
border-left : 2px solid $colour;
}
.gform_wrapper {
.gf_progressbar_wrapper {
.gf_progressbar {
.gf_progressbar_percentage {
background-color : $colour;
}
}
}
}
}
.page-colour--#{$name} {
.nhsuk-header {
.nhsuk-header__navigation {
background: $colour;
}
.nhsuk-header__navigation-link:hover, .nhsuk-header__navigation ul li a:hover, .nhsuk-search__submit:hover {
background-color : darken($colour, 15%);
background : darken($colour, 15%);
}
.nhsuk-header__menu-toggle:focus, .nhsuk-header__menu-toggle:hover, .nhsuk-header__menu-toggle.is-active, .nhsuk-header__menu-toggle:active, .nhsuk-header__search-toggle:hover, .nhsuk-header__search-toggle:focus, .nhsuk-header__search-toggle.is-active, .nhsuk-header__search-toggle:active {
background-color : darken($colour, 15%);
background : darken($colour, 15%);
color : #ffffff;
}
&.nhsuk-header--white {
background-color : #ffffff;
color : $colour;
a.nhsuk-header__transactional-service-name--link {
color : $colour;
}
.nhsuk-header__menu-toggle {
// background-color : #ffffff;
// background : #ffffff;
//color : $colour;
color: $color_nhsuk-white;
}
.nhsuk-header__menu-toggle.is-active, .nhsuk-header__menu-toggle:active, .nhsuk-header__search-toggle.is-active, .nhsuk-header__search-toggle:active {
color : #ffffff;
}
.nhsuk-header__menu {
.nhsuk-header__menu-toggle {
border-color : $colour;
color : $colour;
}
}
.nhsuk-header__search-toggle {
border-color : $colour;
color : $colour;
.nhsuk-icon__search {
fill : $colour;
}
}
.nhsuk-header__search-toggle.is_active {
background-color : $colour;
}
}
.nhsuk-icon__close {
fill: $colour;
}
@media (max-width : 989px) {
.nhsuk-header__navigation ul li a {
color : $colour;
}
.nhsuk-navigation-container .nhsuk-navigation ul li ul li a {
color : $colour;
}
.nhsuk-header__navigation, .nhsuk-header__navigation-link.nhsuk-header__search-toggle:hover, .nhsuk-header .nhsuk-header__navigation ul li {
background-color : #ffffff;
background : #ffffff;
}
.nhsuk-header .nhsuk-header__navigation ul li a:hover {
background-color : $colour;
background : $colour;
}
}
}
}
}