katalyst-govuk-formbuilder 1.17.1 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/builds/katalyst/govuk/formbuilder.css +13 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +7 -1
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +53 -9
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +187 -8
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +23 -4
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +39 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +65 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b21416c3b2f36907d08ea36d0ba31104c2b47475d03541ce2af406d398f09c7c
|
4
|
+
data.tar.gz: 950078f71d4de5c2fa36cf2f487b2e8aceee639d79dbebd7a64f276976fa1c08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fb032aed594b3b8e8e8f8e512b55b5d1ab14f0aa4e0555cbbcce107010eae98327bfde224ed3d94d477c7708d45667025a78ed33c76d2521f131cc529d3f679
|
7
|
+
data.tar.gz: a9cb7a049ca07325e72df9bccca2c1caedd99c85831182c331defebb15f99c905876b1d358ccad841bb0f8eb7093e56b3198515768c0af89e4c099025a6d2c13
|
@@ -43,10 +43,11 @@
|
|
43
43
|
|
44
44
|
|
45
45
|
|
46
|
+
|
46
47
|
|
47
48
|
|
48
49
|
:root {
|
49
|
-
--govuk-frontend-version: "5.
|
50
|
+
--govuk-frontend-version: "5.10.0";
|
50
51
|
--govuk-frontend-breakpoint-mobile: 20rem;
|
51
52
|
--govuk-frontend-breakpoint-tablet: 40.0625rem;
|
52
53
|
--govuk-frontend-breakpoint-desktop: 48.0625rem;
|
@@ -809,6 +810,7 @@
|
|
809
810
|
|
810
811
|
|
811
812
|
|
813
|
+
|
812
814
|
|
813
815
|
|
814
816
|
.govuk-button-group {
|
@@ -916,6 +918,7 @@
|
|
916
918
|
|
917
919
|
|
918
920
|
|
921
|
+
|
919
922
|
|
920
923
|
|
921
924
|
.govuk-form-group {
|
@@ -989,6 +992,7 @@
|
|
989
992
|
|
990
993
|
|
991
994
|
|
995
|
+
|
992
996
|
|
993
997
|
|
994
998
|
.govuk-grid-row {
|
@@ -1184,6 +1188,7 @@
|
|
1184
1188
|
|
1185
1189
|
|
1186
1190
|
|
1191
|
+
|
1187
1192
|
|
1188
1193
|
|
1189
1194
|
.govuk-main-wrapper {
|
@@ -1254,6 +1259,7 @@
|
|
1254
1259
|
|
1255
1260
|
|
1256
1261
|
|
1262
|
+
|
1257
1263
|
|
1258
1264
|
|
1259
1265
|
.govuk-template {
|
@@ -1262,6 +1268,10 @@
|
|
1262
1268
|
-moz-text-size-adjust: 100%;
|
1263
1269
|
text-size-adjust: 100%;
|
1264
1270
|
}
|
1271
|
+
.govuk-template--rebranded {
|
1272
|
+
background-color: #f4f8fb;
|
1273
|
+
}
|
1274
|
+
|
1265
1275
|
@supports (position: -webkit-sticky) or (position: sticky) {
|
1266
1276
|
.govuk-template {
|
1267
1277
|
scroll-padding-top: 60px;
|
@@ -1326,6 +1336,7 @@
|
|
1326
1336
|
|
1327
1337
|
|
1328
1338
|
|
1339
|
+
|
1329
1340
|
|
1330
1341
|
|
1331
1342
|
.govuk-width-container {
|
@@ -2064,6 +2075,7 @@
|
|
2064
2075
|
|
2065
2076
|
|
2066
2077
|
|
2078
|
+
|
2067
2079
|
.govuk-date-input {
|
2068
2080
|
font-size: 0;
|
2069
2081
|
}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import "../button/index";
|
2
|
+
|
1
3
|
@include govuk-exports("govuk/component/cookie-banner") {
|
2
4
|
// This needs to be kept in sync with the header component's styles
|
3
5
|
$border-bottom-width: govuk-spacing(2);
|
@@ -11,7 +13,11 @@
|
|
11
13
|
// changes colours in their browser.
|
12
14
|
border-bottom: $border-bottom-width solid transparent;
|
13
15
|
|
14
|
-
|
16
|
+
@include _govuk-rebrand(
|
17
|
+
"background-color",
|
18
|
+
$govuk-template-background-colour,
|
19
|
+
$_govuk-rebrand-template-background-colour
|
20
|
+
);
|
15
21
|
}
|
16
22
|
|
17
23
|
// Support older browsers which don't hide elements with the `hidden` attribute
|
@@ -1,7 +1,7 @@
|
|
1
1
|
@include govuk-exports("govuk/component/footer") {
|
2
|
-
$govuk-footer-background: $govuk-
|
3
|
-
$govuk-footer-border: $govuk-border-colour;
|
2
|
+
$govuk-footer-background: $govuk-template-background-colour;
|
4
3
|
$govuk-footer-text: $govuk-text-colour;
|
4
|
+
$govuk-footer-content-border: $govuk-border-colour;
|
5
5
|
|
6
6
|
// Royal Arms image dimensions
|
7
7
|
$govuk-footer-crest-image-width: 125px;
|
@@ -12,9 +12,17 @@
|
|
12
12
|
@include govuk-responsive-padding(7, "top");
|
13
13
|
@include govuk-responsive-padding(5, "bottom");
|
14
14
|
|
15
|
-
border-top:
|
15
|
+
border-top: 10px solid $govuk-brand-colour;
|
16
16
|
color: $govuk-footer-text;
|
17
|
-
|
17
|
+
@include _govuk-rebrand(
|
18
|
+
"background",
|
19
|
+
$from: $govuk-footer-background,
|
20
|
+
$to: $_govuk-rebrand-template-background-colour
|
21
|
+
);
|
22
|
+
}
|
23
|
+
|
24
|
+
.govuk-footer__crown {
|
25
|
+
margin-bottom: govuk-spacing(5);
|
18
26
|
}
|
19
27
|
|
20
28
|
.govuk-footer__link {
|
@@ -26,7 +34,12 @@
|
|
26
34
|
margin: 0; // Reset `<hr>` default margins
|
27
35
|
@include govuk-responsive-margin(8, "bottom");
|
28
36
|
border: 0; // Reset `<hr>` default borders
|
29
|
-
border-bottom: 1px solid
|
37
|
+
border-bottom: 1px solid;
|
38
|
+
@include _govuk-rebrand(
|
39
|
+
"border-bottom-color",
|
40
|
+
$from: $govuk-footer-content-border,
|
41
|
+
$to: $_govuk-rebrand-border-colour-on-blue-tint-95
|
42
|
+
);
|
30
43
|
}
|
31
44
|
|
32
45
|
.govuk-footer__meta {
|
@@ -71,9 +84,10 @@
|
|
71
84
|
text-wrap: balance;
|
72
85
|
}
|
73
86
|
|
74
|
-
.govuk-footer__copyright-logo {
|
75
|
-
|
76
|
-
|
87
|
+
.govuk-footer__copyright-logo::before {
|
88
|
+
content: "";
|
89
|
+
display: block;
|
90
|
+
width: 100%;
|
77
91
|
padding-top: ($govuk-footer-crest-image-height + govuk-spacing(2));
|
78
92
|
background-image: govuk-image-url("govuk-crest.svg");
|
79
93
|
background-repeat: no-repeat;
|
@@ -81,6 +95,30 @@
|
|
81
95
|
background-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
|
82
96
|
text-align: center;
|
83
97
|
white-space: nowrap;
|
98
|
+
|
99
|
+
// Where possible use the crest as a mask instead. This lets us use
|
100
|
+
// currentColor, increasing the contrast of the image and matching the
|
101
|
+
// user's prefered foreground colour in e.g. forced colors mode.
|
102
|
+
// We test for `mask-position` rather than `mask-image` because of a false
|
103
|
+
// positive in Edge 17.
|
104
|
+
@supports ((-webkit-mask-position: initial) or (mask-position: initial)) {
|
105
|
+
background: currentcolor;
|
106
|
+
-webkit-mask-image: govuk-image-url("govuk-crest.svg");
|
107
|
+
mask-image: govuk-image-url("govuk-crest.svg");
|
108
|
+
-webkit-mask-repeat: no-repeat;
|
109
|
+
mask-repeat: no-repeat;
|
110
|
+
-webkit-mask-position: 50% 0%;
|
111
|
+
mask-position: 50% 0%;
|
112
|
+
-webkit-mask-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
|
113
|
+
mask-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
|
114
|
+
|
115
|
+
// currentcolor doesn't seem to be computed correctly in forced colors
|
116
|
+
// mode so force the background color to match the system link color
|
117
|
+
// (matching the text in the link)
|
118
|
+
@media screen and (forced-colors: active) {
|
119
|
+
background: linktext;
|
120
|
+
}
|
121
|
+
}
|
84
122
|
}
|
85
123
|
|
86
124
|
.govuk-footer__inline-list {
|
@@ -106,7 +144,13 @@
|
|
106
144
|
@include govuk-media-query($until: tablet) {
|
107
145
|
padding-bottom: govuk-spacing(2);
|
108
146
|
}
|
109
|
-
|
147
|
+
|
148
|
+
border-bottom: 1px solid;
|
149
|
+
@include _govuk-rebrand(
|
150
|
+
"border-bottom-color",
|
151
|
+
$from: $govuk-footer-content-border,
|
152
|
+
$to: $_govuk-rebrand-border-colour-on-blue-tint-95
|
153
|
+
);
|
110
154
|
}
|
111
155
|
|
112
156
|
.govuk-footer__navigation {
|
@@ -13,12 +13,21 @@
|
|
13
13
|
$govuk-header-menu-button-height: 24px;
|
14
14
|
$govuk-header-menu-button-width: 80px;
|
15
15
|
|
16
|
+
$govuk-header-rebrand-background: $govuk-brand-colour;
|
17
|
+
$govuk-header-rebrand-logo-bottom-margin: 2px;
|
18
|
+
|
16
19
|
.govuk-header {
|
17
20
|
@include govuk-font($size: 16, $line-height: 1);
|
18
21
|
|
19
|
-
|
22
|
+
// Add a transparent bottom border for forced-colour modes
|
23
|
+
@include _govuk-rebrand(
|
24
|
+
"border-bottom",
|
25
|
+
$from: govuk-spacing(2) solid govuk-colour("white"),
|
26
|
+
$to: 1px solid transparent
|
27
|
+
);
|
28
|
+
@include _govuk-rebrand("background", $from: $govuk-header-background, $to: $govuk-header-rebrand-background);
|
29
|
+
|
20
30
|
color: $govuk-header-text;
|
21
|
-
background: $govuk-header-background;
|
22
31
|
}
|
23
32
|
|
24
33
|
.govuk-header__container--full-width {
|
@@ -36,8 +45,20 @@
|
|
36
45
|
margin-bottom: -$govuk-header-border-width;
|
37
46
|
padding-top: govuk-spacing($govuk-header-vertical-spacing-value);
|
38
47
|
border-bottom: $govuk-header-border-width solid $govuk-header-border-color;
|
48
|
+
|
49
|
+
@include _govuk-rebrand {
|
50
|
+
// Remove the space allocated to the blue bar
|
51
|
+
margin-bottom: 0;
|
52
|
+
|
53
|
+
// Remove padding as the child elements are now responsible for spacing
|
54
|
+
padding-top: 0;
|
55
|
+
|
56
|
+
// Remove the blue bar
|
57
|
+
border-bottom: none;
|
58
|
+
}
|
39
59
|
}
|
40
60
|
|
61
|
+
// TODO: Remove this when _govuk-rebrand becomes the default
|
41
62
|
.govuk-header--full-width-border {
|
42
63
|
border-bottom-color: $govuk-header-border-color;
|
43
64
|
|
@@ -69,6 +90,31 @@
|
|
69
90
|
&:last-child {
|
70
91
|
margin-right: 0;
|
71
92
|
}
|
93
|
+
|
94
|
+
@include _govuk-rebrand {
|
95
|
+
margin-right: govuk-px-to-rem(7px); // 1 'dot'
|
96
|
+
margin-bottom: $govuk-header-rebrand-logo-bottom-margin;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
// Colour in the Dot
|
101
|
+
.govuk-logo-dot {
|
102
|
+
fill: #11e0f1;
|
103
|
+
|
104
|
+
// Override Dot colour when printing
|
105
|
+
@include govuk-media-query($media-type: print) {
|
106
|
+
fill: currentcolor;
|
107
|
+
}
|
108
|
+
|
109
|
+
// Override Dot colour on forced colours mode
|
110
|
+
@media (forced-colors: active) {
|
111
|
+
fill: currentcolor;
|
112
|
+
}
|
113
|
+
|
114
|
+
// Override Dot colour on focus
|
115
|
+
:focus & {
|
116
|
+
fill: currentcolor;
|
117
|
+
}
|
72
118
|
}
|
73
119
|
|
74
120
|
.govuk-header__product-name {
|
@@ -97,6 +143,40 @@
|
|
97
143
|
margin-top: $product-name-offset-tablet - 0.5px;
|
98
144
|
}
|
99
145
|
}
|
146
|
+
|
147
|
+
@include _govuk-rebrand {
|
148
|
+
// Remove top margin
|
149
|
+
margin-top: 0;
|
150
|
+
|
151
|
+
// Remove 1px from the bottom to account for the font-size being 1px
|
152
|
+
// larger than the logo height.
|
153
|
+
margin-bottom: govuk-px-to-rem(-1px);
|
154
|
+
|
155
|
+
// Magic number font-size that visually aligns with GOV.UK logo.
|
156
|
+
// Also stops reducing the product name size on narrow screens
|
157
|
+
font-size: govuk-px-to-rem(31px);
|
158
|
+
|
159
|
+
// Reduce letter spacing
|
160
|
+
letter-spacing: -0.015em;
|
161
|
+
|
162
|
+
// Prevent forced colour modes from applying a background colour behind
|
163
|
+
// the product name, which cuts off the underline that appears on hover.
|
164
|
+
forced-color-adjust: none;
|
165
|
+
|
166
|
+
@media screen and (forced-colors: active) {
|
167
|
+
color: LinkText;
|
168
|
+
background: transparent;
|
169
|
+
}
|
170
|
+
|
171
|
+
// Remove top margin on the breakpoints too
|
172
|
+
@include govuk-media-query($from: tablet) {
|
173
|
+
margin-top: 0;
|
174
|
+
}
|
175
|
+
|
176
|
+
@include govuk-media-query($from: desktop) {
|
177
|
+
margin-top: 0;
|
178
|
+
}
|
179
|
+
}
|
100
180
|
}
|
101
181
|
|
102
182
|
.govuk-header__link {
|
@@ -134,12 +214,6 @@
|
|
134
214
|
|
135
215
|
@include govuk-media-query($from: desktop) {
|
136
216
|
display: inline;
|
137
|
-
|
138
|
-
&:focus {
|
139
|
-
// Replicate the focus box shadow but without the -2px y-offset of the first yellow shadow
|
140
|
-
// This is to stop the logo getting cut off by the box shadow when focused on above a product name
|
141
|
-
box-shadow: 0 0 $govuk-focus-colour;
|
142
|
-
}
|
143
217
|
}
|
144
218
|
|
145
219
|
&:link,
|
@@ -159,6 +233,23 @@
|
|
159
233
|
margin-bottom: 0;
|
160
234
|
border-bottom: 0;
|
161
235
|
}
|
236
|
+
|
237
|
+
@include _govuk-rebrand {
|
238
|
+
display: inline;
|
239
|
+
|
240
|
+
// Remove word-spacing from within the logo so we can ignore
|
241
|
+
// whitespace characters in the HTML
|
242
|
+
word-spacing: govuk-px-to-rem(-6px);
|
243
|
+
|
244
|
+
// Reset word-spacing for child elements
|
245
|
+
> * {
|
246
|
+
word-spacing: 0;
|
247
|
+
}
|
248
|
+
|
249
|
+
&:not(:focus) {
|
250
|
+
background-color: $govuk-header-rebrand-background;
|
251
|
+
}
|
252
|
+
}
|
162
253
|
}
|
163
254
|
|
164
255
|
.govuk-header__service-name {
|
@@ -166,6 +257,18 @@
|
|
166
257
|
margin-bottom: govuk-spacing(2);
|
167
258
|
@include govuk-font-size($size: 24);
|
168
259
|
@include govuk-typography-weight-bold;
|
260
|
+
|
261
|
+
@include _govuk-rebrand {
|
262
|
+
// Apply margins to internal elements to emulate padding
|
263
|
+
margin-bottom: govuk-spacing(3);
|
264
|
+
|
265
|
+
@include govuk-media-query($from: desktop) {
|
266
|
+
// Magic number to align service name baseline with the GOV.UK logo
|
267
|
+
$service-name-offset: 4px;
|
268
|
+
|
269
|
+
margin: (govuk-spacing(3) + $service-name-offset) 0 (govuk-spacing(3) - $service-name-offset);
|
270
|
+
}
|
271
|
+
}
|
169
272
|
}
|
170
273
|
|
171
274
|
.govuk-header__logo,
|
@@ -175,6 +278,7 @@
|
|
175
278
|
|
176
279
|
.govuk-header__logo {
|
177
280
|
@include govuk-responsive-margin($govuk-header-vertical-spacing-value, "bottom");
|
281
|
+
|
178
282
|
// Protect the absolute positioned menu button from overlapping with the
|
179
283
|
// logo with right padding using the button's width
|
180
284
|
padding-right: $govuk-header-menu-button-width;
|
@@ -192,6 +296,15 @@
|
|
192
296
|
float: none;
|
193
297
|
}
|
194
298
|
}
|
299
|
+
|
300
|
+
@include _govuk-rebrand {
|
301
|
+
// Apply margins to internal elements to emulate padding
|
302
|
+
margin-bottom: 0;
|
303
|
+
|
304
|
+
// Magic numbers, set padding to vertically centre align the logo
|
305
|
+
padding-top: 16px;
|
306
|
+
padding-bottom: 14px - $govuk-header-rebrand-logo-bottom-margin;
|
307
|
+
}
|
195
308
|
}
|
196
309
|
|
197
310
|
.govuk-header__content {
|
@@ -265,8 +378,37 @@
|
|
265
378
|
}
|
266
379
|
|
267
380
|
.govuk-header__navigation {
|
381
|
+
@include govuk-media-query($until: mobile) {
|
382
|
+
@include _govuk-rebrand {
|
383
|
+
padding-bottom: govuk-spacing(3);
|
384
|
+
}
|
385
|
+
}
|
386
|
+
|
268
387
|
@include govuk-media-query($from: desktop) {
|
269
388
|
margin-bottom: govuk-spacing(2);
|
389
|
+
|
390
|
+
@include _govuk-rebrand {
|
391
|
+
// Magic number so that the bottom of the nav links aligns with the
|
392
|
+
// baseline of the GOV.UK logo
|
393
|
+
$navigation-offset: 7px;
|
394
|
+
|
395
|
+
// Apply margins to internal elements to emulate padding
|
396
|
+
margin-bottom: 0;
|
397
|
+
padding: (govuk-spacing(3) + $navigation-offset) 0 (govuk-spacing(3) - $navigation-offset);
|
398
|
+
}
|
399
|
+
}
|
400
|
+
}
|
401
|
+
|
402
|
+
.govuk-header__service-name + .govuk-header__navigation {
|
403
|
+
@include _govuk-rebrand {
|
404
|
+
@include govuk-media-query($from: desktop) {
|
405
|
+
// If there's both a service name and navigation,
|
406
|
+
// remove the extra padding between them on desktop
|
407
|
+
padding-top: 0;
|
408
|
+
|
409
|
+
// Restore the full bottom padding as the navigation isn't standalone
|
410
|
+
padding-bottom: govuk-spacing(3);
|
411
|
+
}
|
270
412
|
}
|
271
413
|
}
|
272
414
|
|
@@ -279,6 +421,12 @@
|
|
279
421
|
&[hidden] {
|
280
422
|
display: none;
|
281
423
|
}
|
424
|
+
|
425
|
+
@include _govuk-rebrand {
|
426
|
+
@include govuk-media-query($from: mobile, $until: desktop) {
|
427
|
+
padding-bottom: govuk-spacing(3);
|
428
|
+
}
|
429
|
+
}
|
282
430
|
}
|
283
431
|
|
284
432
|
.govuk-header__navigation--end {
|
@@ -305,14 +453,41 @@
|
|
305
453
|
@include govuk-typography-weight-bold;
|
306
454
|
white-space: nowrap;
|
307
455
|
}
|
456
|
+
|
457
|
+
@include _govuk-rebrand {
|
458
|
+
// Increase top padding of nav items...
|
459
|
+
padding-top: govuk-spacing(3);
|
460
|
+
|
461
|
+
// ...except on desktop
|
462
|
+
@include govuk-media-query($from: desktop) {
|
463
|
+
padding-top: govuk-spacing(1);
|
464
|
+
}
|
465
|
+
|
466
|
+
// Change the dividing line colour between mobile nav items
|
467
|
+
border-bottom-color: govuk-colour("white");
|
468
|
+
|
469
|
+
// Reduce default weight of links so that we can use bold for active ones
|
470
|
+
a {
|
471
|
+
@include govuk-typography-weight-regular;
|
472
|
+
}
|
473
|
+
}
|
308
474
|
}
|
309
475
|
|
310
476
|
.govuk-header__navigation-item--active {
|
311
477
|
a {
|
478
|
+
@include _govuk-rebrand {
|
479
|
+
// Change active links to use bold text instead of changing colour
|
480
|
+
@include govuk-typography-weight-bold;
|
481
|
+
}
|
482
|
+
|
312
483
|
&:link,
|
313
484
|
&:hover,
|
314
485
|
&:visited {
|
315
486
|
color: $govuk-header-link-active;
|
487
|
+
|
488
|
+
@include _govuk-rebrand {
|
489
|
+
color: inherit;
|
490
|
+
}
|
316
491
|
}
|
317
492
|
|
318
493
|
// When printing, use the normal blue as this contrasts better with the
|
@@ -325,6 +500,10 @@
|
|
325
500
|
// contrast is still acceptable
|
326
501
|
&:focus {
|
327
502
|
color: $govuk-focus-text-colour;
|
503
|
+
|
504
|
+
@include _govuk-rebrand {
|
505
|
+
color: $govuk-focus-text-colour;
|
506
|
+
}
|
328
507
|
}
|
329
508
|
}
|
330
509
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
@include govuk-exports("govuk/component/service-navigation") {
|
2
2
|
$govuk-service-navigation-active-link-border-width: govuk-spacing(1);
|
3
|
-
$govuk-service-navigation-background:
|
3
|
+
$govuk-service-navigation-background: govuk-colour("light-grey");
|
4
4
|
$govuk-service-navigation-border-colour: $govuk-border-colour;
|
5
5
|
|
6
6
|
// We make the link colour a little darker than normal here so that it has
|
@@ -8,8 +8,18 @@
|
|
8
8
|
$govuk-service-navigation-link-colour: govuk-shade($govuk-link-colour, 10%);
|
9
9
|
|
10
10
|
.govuk-service-navigation {
|
11
|
-
border-bottom: 1px
|
12
|
-
|
11
|
+
border-bottom-width: 1px;
|
12
|
+
border-bottom-style: solid;
|
13
|
+
@include _govuk-rebrand(
|
14
|
+
"border-bottom-color",
|
15
|
+
$from: $govuk-service-navigation-border-colour,
|
16
|
+
$to: $_govuk-rebrand-border-colour-on-blue-tint-95
|
17
|
+
);
|
18
|
+
@include _govuk-rebrand(
|
19
|
+
"background-color",
|
20
|
+
$from: $govuk-service-navigation-background,
|
21
|
+
$to: $_govuk-rebrand-template-background-colour
|
22
|
+
);
|
13
23
|
}
|
14
24
|
|
15
25
|
.govuk-service-navigation__container {
|
@@ -36,6 +46,11 @@
|
|
36
46
|
margin-bottom: 0;
|
37
47
|
padding: govuk-spacing(4) 0;
|
38
48
|
|
49
|
+
@include _govuk-rebrand {
|
50
|
+
padding: govuk-spacing(3) 0;
|
51
|
+
line-height: 1.5;
|
52
|
+
}
|
53
|
+
|
39
54
|
&:not(:last-child) {
|
40
55
|
@include govuk-responsive-margin(6, $direction: right);
|
41
56
|
}
|
@@ -52,7 +67,11 @@
|
|
52
67
|
}
|
53
68
|
|
54
69
|
@include govuk-media-query($from: tablet) {
|
55
|
-
|
70
|
+
@include _govuk-rebrand(
|
71
|
+
"padding-bottom",
|
72
|
+
$from: govuk-spacing(4) - $govuk-service-navigation-active-link-border-width,
|
73
|
+
$to: govuk-spacing(3) - $govuk-service-navigation-active-link-border-width
|
74
|
+
);
|
56
75
|
border-bottom-width: $govuk-service-navigation-active-link-border-width;
|
57
76
|
}
|
58
77
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
:root {
|
2
2
|
// This variable is automatically overwritten during builds and releases.
|
3
3
|
// It doesn't need to be updated manually.
|
4
|
-
--govuk-frontend-version: "5.
|
4
|
+
--govuk-frontend-version: "5.10.0";
|
5
5
|
|
6
6
|
// CSS custom property for each breakpoint
|
7
7
|
@each $name, $value in $govuk-breakpoints {
|
@@ -5,7 +5,11 @@
|
|
5
5
|
.govuk-template {
|
6
6
|
// Set the overall page background colour to the same colour as used by the
|
7
7
|
// footer to give the illusion of a long footer.
|
8
|
-
|
8
|
+
@include _govuk-rebrand(
|
9
|
+
background-color,
|
10
|
+
$from: $govuk-template-background-colour,
|
11
|
+
$to: $_govuk-rebrand-template-background-colour
|
12
|
+
);
|
9
13
|
|
10
14
|
// Prevent automatic text sizing, as we already cater for small devices and
|
11
15
|
// would like the browser to stay on 100% text zoom by default.
|
@@ -29,9 +29,31 @@ $govuk-text-colour: govuk-colour("black") !default;
|
|
29
29
|
///
|
30
30
|
/// @type Colour
|
31
31
|
/// @access public
|
32
|
-
|
32
|
+
/// @deprecated "$govuk-canvas-background-colour has been deprecated and will be removed in the next major
|
33
|
+
/// version. Use `$govuk-template-background-colour` if you want to change the background of
|
34
|
+
/// the `<html>` element and background colour of elements that need to match for visual
|
35
|
+
/// continuity.
|
33
36
|
$govuk-canvas-background-colour: govuk-colour("light-grey") !default;
|
34
37
|
|
38
|
+
// Output a deprecation warning if $govuk-canvas-background-colour is being overridden
|
39
|
+
// Remove in next major version.
|
40
|
+
@if $govuk-canvas-background-colour != govuk-colour("light-grey") {
|
41
|
+
@include _warning(
|
42
|
+
"$govuk-canvas-background-colour",
|
43
|
+
"$govuk-canvas-background-colour has been deprecated and will be removed in the next major version."
|
44
|
+
);
|
45
|
+
}
|
46
|
+
|
47
|
+
/// Template background colour
|
48
|
+
///
|
49
|
+
/// Used by components that want to give the illusion of extending
|
50
|
+
/// the template background (such as the footer and cookie banner).
|
51
|
+
///
|
52
|
+
/// @type Colour
|
53
|
+
/// @access public
|
54
|
+
|
55
|
+
$govuk-template-background-colour: govuk-colour("light-grey") !default;
|
56
|
+
|
35
57
|
/// Body background colour
|
36
58
|
///
|
37
59
|
/// @type Colour
|
@@ -154,4 +176,20 @@ $govuk-link-hover-colour: govuk-colour("dark-blue") !default;
|
|
154
176
|
|
155
177
|
$govuk-link-active-colour: govuk-colour("black") !default;
|
156
178
|
|
179
|
+
// =============================================================================
|
180
|
+
// Brand refresh
|
181
|
+
// =============================================================================
|
182
|
+
|
183
|
+
/// Updated template background colour
|
184
|
+
///
|
185
|
+
/// @type Colour
|
186
|
+
/// @access private
|
187
|
+
$_govuk-rebrand-template-background-colour: #f4f8fb; // Blue tint 95%
|
188
|
+
|
189
|
+
/// Border colour for areas on a light-blue background
|
190
|
+
///
|
191
|
+
/// @type Colour
|
192
|
+
/// @access private
|
193
|
+
$_govuk-rebrand-border-colour-on-blue-tint-95: #8eb8dc; // Blue tint 50%
|
194
|
+
|
157
195
|
/*# sourceMappingURL=_colours-applied.scss.map */
|
@@ -0,0 +1,65 @@
|
|
1
|
+
////
|
2
|
+
/// @group tools
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Wraps rebranded properties in the feature flag selector
|
6
|
+
///
|
7
|
+
/// @example scss - Wrap a block of multiple properties
|
8
|
+
/// .foo {
|
9
|
+
/// border-width: 1px;
|
10
|
+
/// border-colour: #fff;
|
11
|
+
///
|
12
|
+
/// @include _govuk-rebrand() {
|
13
|
+
/// border-width: 10px;
|
14
|
+
/// border-colour: #000;
|
15
|
+
/// }
|
16
|
+
/// }
|
17
|
+
///
|
18
|
+
/// @example scss - Wrap a single property
|
19
|
+
/// .foo {
|
20
|
+
/// @include _govuk-rebrand("background-color", $from: #fff, $to: #000)
|
21
|
+
/// }
|
22
|
+
///
|
23
|
+
///
|
24
|
+
/// @param {String} [$property] - The name of the property being rebranded
|
25
|
+
/// @param {String} [$from] - The original value of the property
|
26
|
+
/// @param {String} [$to] - The rebranded value of the property
|
27
|
+
/// @throw if `$property` is set but `$from` or `$to` are missing
|
28
|
+
/// @access private
|
29
|
+
@mixin _govuk-rebrand($property: null, $from: null, $to: null) {
|
30
|
+
@if $property {
|
31
|
+
@if not $from {
|
32
|
+
@error "`_govuk-rebrand` needs the original value, `$from`";
|
33
|
+
}
|
34
|
+
|
35
|
+
@if not $to {
|
36
|
+
@error "`_govuk-rebrand` needs the rebranded value, `$to`";
|
37
|
+
}
|
38
|
+
|
39
|
+
#{$property}: #{$from};
|
40
|
+
|
41
|
+
@include _govuk-rebrand-wrapper {
|
42
|
+
#{$property}: #{$to};
|
43
|
+
}
|
44
|
+
} @else {
|
45
|
+
@include _govuk-rebrand-wrapper {
|
46
|
+
@content;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
@mixin _govuk-rebrand-wrapper() {
|
52
|
+
$selector: "#{&}";
|
53
|
+
|
54
|
+
@if $selector == ".govuk-template" {
|
55
|
+
@at-root .govuk-template--rebranded {
|
56
|
+
@content;
|
57
|
+
}
|
58
|
+
} @else {
|
59
|
+
.govuk-template--rebranded & {
|
60
|
+
@content;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
/*# sourceMappingURL=_rebrand.scss.map */
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katalyst-govuk-formbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katalyst Interactive
|
@@ -186,6 +186,7 @@ files:
|
|
186
186
|
- node_modules/govuk-frontend/dist/govuk/tools/_index.scss
|
187
187
|
- node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss
|
188
188
|
- node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss
|
189
|
+
- node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss
|
189
190
|
- node_modules/govuk-frontend/dist/govuk/utilities/_all.scss
|
190
191
|
- node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.scss
|
191
192
|
- node_modules/govuk-frontend/dist/govuk/utilities/_index.scss
|