dxw_govuk_frontend_rails 3.8.0 → 3.12.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.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +61 -40
  4. data/lib/dxw_govuk_frontend_rails/version.rb +1 -1
  5. data/package-lock.json +22 -4
  6. data/package.json +1 -1
  7. data/vendor/assets/javascripts/govuk_frontend_rails.js +84 -33
  8. data/vendor/assets/stylesheets/components/_all.scss +2 -0
  9. data/vendor/assets/stylesheets/components/accordion/_index.scss +7 -17
  10. data/vendor/assets/stylesheets/components/back-link/_index.scss +4 -17
  11. data/vendor/assets/stylesheets/components/breadcrumbs/_index.scss +0 -1
  12. data/vendor/assets/stylesheets/components/button/_index.scss +5 -3
  13. data/vendor/assets/stylesheets/components/character-count/_index.scss +1 -4
  14. data/vendor/assets/stylesheets/components/checkboxes/_index.scss +13 -13
  15. data/vendor/assets/stylesheets/components/cookie-banner/_cookie-banner.scss +2 -0
  16. data/vendor/assets/stylesheets/components/cookie-banner/_index.scss +51 -0
  17. data/vendor/assets/stylesheets/components/details/_index.scss +5 -2
  18. data/vendor/assets/stylesheets/components/error-summary/_index.scss +2 -14
  19. data/vendor/assets/stylesheets/components/fieldset/_index.scss +1 -1
  20. data/vendor/assets/stylesheets/components/file-upload/_index.scss +13 -14
  21. data/vendor/assets/stylesheets/components/footer/_index.scss +14 -20
  22. data/vendor/assets/stylesheets/components/header/_index.scss +41 -26
  23. data/vendor/assets/stylesheets/components/hint/_index.scss +0 -2
  24. data/vendor/assets/stylesheets/components/input/_index.scss +91 -0
  25. data/vendor/assets/stylesheets/components/notification-banner/_index.scss +89 -0
  26. data/vendor/assets/stylesheets/components/notification-banner/_notification-banner.scss +2 -0
  27. data/vendor/assets/stylesheets/components/panel/_index.scss +6 -2
  28. data/vendor/assets/stylesheets/components/phase-banner/_index.scss +1 -1
  29. data/vendor/assets/stylesheets/components/radios/_index.scss +13 -13
  30. data/vendor/assets/stylesheets/components/select/_index.scss +0 -1
  31. data/vendor/assets/stylesheets/components/skip-link/_index.scss +1 -1
  32. data/vendor/assets/stylesheets/components/summary-list/_index.scss +2 -10
  33. data/vendor/assets/stylesheets/components/table/_index.scss +21 -0
  34. data/vendor/assets/stylesheets/components/tabs/_index.scss +4 -12
  35. data/vendor/assets/stylesheets/components/tag/_index.scss +0 -1
  36. data/vendor/assets/stylesheets/components/textarea/_index.scss +0 -1
  37. data/vendor/assets/stylesheets/components/warning-text/_index.scss +10 -1
  38. data/vendor/assets/stylesheets/core/_links.scss +8 -0
  39. data/vendor/assets/stylesheets/helpers/_device-pixels.scss +3 -3
  40. data/vendor/assets/stylesheets/helpers/_font-faces.scss +9 -11
  41. data/vendor/assets/stylesheets/helpers/_links.scss +239 -32
  42. data/vendor/assets/stylesheets/helpers/_media-queries.scss +1 -5
  43. data/vendor/assets/stylesheets/helpers/_spacing.scss +2 -1
  44. data/vendor/assets/stylesheets/helpers/_typography.scss +7 -6
  45. data/vendor/assets/stylesheets/objects/_all.scss +1 -0
  46. data/vendor/assets/stylesheets/objects/_button-group.scss +94 -0
  47. data/vendor/assets/stylesheets/objects/_form-group.scss +0 -1
  48. data/vendor/assets/stylesheets/objects/_grid.scss +2 -3
  49. data/vendor/assets/stylesheets/objects/_main-wrapper.scss +0 -1
  50. data/vendor/assets/stylesheets/overrides/_display.scss +1 -1
  51. data/vendor/assets/stylesheets/overrides/_width.scss +1 -0
  52. data/vendor/assets/stylesheets/settings/_all.scss +2 -0
  53. data/vendor/assets/stylesheets/settings/_colours-applied.scss +9 -3
  54. data/vendor/assets/stylesheets/settings/_colours-organisations.scss +3 -0
  55. data/vendor/assets/stylesheets/settings/_colours-palette.scss +42 -35
  56. data/vendor/assets/stylesheets/settings/_compatibility.scss +0 -1
  57. data/vendor/assets/stylesheets/settings/_links.scss +62 -0
  58. data/vendor/assets/stylesheets/settings/_measurements.scss +0 -4
  59. data/vendor/assets/stylesheets/settings/_typography-font-families.scss +2 -2
  60. data/vendor/assets/stylesheets/settings/_typography-font.scss +14 -5
  61. data/vendor/assets/stylesheets/settings/_typography-responsive.scss +6 -2
  62. data/vendor/assets/stylesheets/tools/_font-url.scss +0 -3
  63. data/vendor/assets/stylesheets/tools/_image-url.scss +0 -3
  64. data/vendor/assets/stylesheets/utilities/_visually-hidden.scss +0 -1
  65. data/vendor/assets/stylesheets/vendor/_sass-mq.scss +0 -4
  66. metadata +9 -3
@@ -2,7 +2,7 @@
2
2
  /// @group helpers/links
3
3
  ////
4
4
 
5
- /// Common link mixin
5
+ /// Common link styles
6
6
  ///
7
7
  /// Provides the typography and focus state, regardless of link style.
8
8
  ///
@@ -10,18 +10,57 @@
10
10
 
11
11
  @mixin govuk-link-common {
12
12
  @include govuk-typography-common;
13
+ @include govuk-link-decoration;
14
+
15
+ &:hover {
16
+ @include govuk-link-hover-decoration;
17
+ }
13
18
 
14
19
  &:focus {
15
20
  @include govuk-focused-text;
16
21
  }
17
22
  }
18
23
 
19
- /// Default link style mixin
24
+ /// Link decoration
25
+ ///
26
+ /// Provides the text decoration for links, including thickness and underline
27
+ /// offset. Use this mixin only if you cannot use the `govuk-link-common` mixin.
28
+ ///
29
+ /// @access public
30
+ @mixin govuk-link-decoration {
31
+ text-decoration: underline;
32
+
33
+ @if ($govuk-new-link-styles) {
34
+ @if ($govuk-link-underline-thickness) {
35
+ text-decoration-thickness: $govuk-link-underline-thickness;
36
+ }
37
+
38
+ @if ($govuk-link-underline-offset) {
39
+ text-underline-offset: $govuk-link-underline-offset;
40
+ }
41
+ }
42
+ }
43
+
44
+ /// Link hover decoration
45
+ ///
46
+ /// Provides the text decoration for links in their hover state, for you to use
47
+ /// within a `:hover` pseudo-selector. Use this mixin only if you cannot use the
48
+ /// `govuk-link-common` mixin.
49
+ ///
50
+ /// @access public
51
+
52
+ @mixin govuk-link-hover-decoration {
53
+ @if ($govuk-new-link-styles and $govuk-link-hover-underline-thickness) {
54
+ text-decoration-thickness: $govuk-link-hover-underline-thickness;
55
+ }
56
+ }
57
+
58
+ /// Default link styles
20
59
  ///
21
- /// Provides the default unvisited, visited, hover and active states for links.
60
+ /// Makes links use the default unvisited, visited, hover and active colours.
22
61
  ///
23
- /// If you use this mixin in a component you must also include the
24
- /// govuk-link-common mixin in order to get the focus state.
62
+ /// If you use this mixin in a component, you must also include the
63
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
25
64
  ///
26
65
  /// @example scss
27
66
  /// .govuk-component__link {
@@ -66,13 +105,109 @@
66
105
  }
67
106
  }
68
107
 
69
- /// Muted style link mixin
108
+ /// Error link styles
109
+ ///
110
+ /// Makes links use the error colour. The link will darken if it's active or a
111
+ /// user hovers their cursor over it.
112
+ ///
113
+ /// If you use this mixin in a component, you must also include the
114
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
115
+ ///
116
+ /// @example scss
117
+ /// .govuk-component__link {
118
+ /// @include govuk-link-common;
119
+ /// @include govuk-link-style-error;
120
+ /// }
121
+ ///
122
+ /// @access public
123
+
124
+ @mixin govuk-link-style-error {
125
+ &:link,
126
+ &:visited {
127
+ color: $govuk-error-colour;
128
+ }
129
+
130
+ &:hover {
131
+ color: scale-color($govuk-error-colour, $lightness: -30%);
132
+ }
133
+
134
+ &:active {
135
+ color: $govuk-error-colour;
136
+ }
137
+
138
+ // When focussed, the text colour needs to be darker to ensure that colour
139
+ // contrast is still acceptable
140
+ &:focus {
141
+ color: $govuk-focus-text-colour;
142
+ }
143
+
144
+ // alphagov/govuk_template includes a specific a:link:focus selector
145
+ // designed to make unvisited link s a slightly darker blue when focussed, so
146
+ // we need to override the text colour for that combination of selectors so
147
+ // so that unvisited links styled as buttons do not end up with dark blue
148
+ // text when focussed.
149
+ @include govuk-compatibility(govuk_template) {
150
+ &:link:focus {
151
+ color: $govuk-focus-text-colour;
152
+ }
153
+ }
154
+ }
155
+
156
+ /// Success link styles
157
+ ///
158
+ /// Makes links use the success colour. The link will darken if it's active or a
159
+ /// user hovers their cursor over it.
160
+ ///
161
+ /// If you use this mixin in a component, you must also include the
162
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
163
+ ///
164
+ /// @example scss
165
+ /// .govuk-component__link {
166
+ /// @include govuk-link-common;
167
+ /// @include govuk-link-style-success;
168
+ /// }
169
+ ///
170
+ /// @access public
171
+
172
+ @mixin govuk-link-style-success {
173
+ &:link,
174
+ &:visited {
175
+ color: $govuk-success-colour;
176
+ }
177
+
178
+ &:hover {
179
+ color: scale-color($govuk-success-colour, $lightness: -30%);
180
+ }
181
+
182
+ &:active {
183
+ color: $govuk-success-colour;
184
+ }
185
+
186
+ // When focussed, the text colour needs to be darker to ensure that colour
187
+ // contrast is still acceptable
188
+ &:focus {
189
+ color: $govuk-focus-text-colour;
190
+ }
191
+
192
+ // alphagov/govuk_template includes a specific a:link:focus selector
193
+ // designed to make unvisited link s a slightly darker blue when focussed, so
194
+ // we need to override the text colour for that combination of selectors so
195
+ // so that unvisited links styled as buttons do not end up with dark blue
196
+ // text when focussed.
197
+ @include govuk-compatibility(govuk_template) {
198
+ &:link:focus {
199
+ color: $govuk-focus-text-colour;
200
+ }
201
+ }
202
+ }
203
+
204
+ /// Muted link styles
70
205
  ///
71
- /// Used for secondary links on a page - the link will appear in muted colours
72
- /// regardless of visited state.
206
+ /// Makes links use the secondary text colour. The link will darken if it's
207
+ /// active or a user hovers their cursor over it.
73
208
  ///
74
- /// If you use this mixin in a component you must also include the
75
- /// govuk-link-common mixin in order to get the focus state.
209
+ /// If you use this mixin in a component, you must also include the
210
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
76
211
  ///
77
212
  /// @example scss
78
213
  /// .govuk-component__link {
@@ -84,10 +219,13 @@
84
219
 
85
220
  @mixin govuk-link-style-muted {
86
221
  &:link,
87
- &:visited,
222
+ &:visited {
223
+ color: $govuk-secondary-text-colour;
224
+ }
225
+
88
226
  &:hover,
89
227
  &:active {
90
- color: $govuk-secondary-text-colour;
228
+ color: $govuk-text-colour;
91
229
  }
92
230
 
93
231
  // When focussed, the text colour needs to be darker to ensure that colour
@@ -106,13 +244,13 @@
106
244
  }
107
245
  }
108
246
 
109
- /// Text style link mixin
247
+ /// Text link styles
110
248
  ///
111
- /// Overrides the colour of links to match the text colour. Generally used by
249
+ /// Makes links use the primary text colour, in all states. Use this mixin for
112
250
  /// navigation components, such as breadcrumbs or the back link.
113
251
  ///
114
- /// If you use this mixin in a component you must also include the
115
- /// govuk-link-common mixin in order to get the focus state.
252
+ /// If you use this mixin in a component, you must also include the
253
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
116
254
  ///
117
255
  /// @example scss
118
256
  /// .govuk-component__link {
@@ -123,10 +261,17 @@
123
261
  /// @access public
124
262
 
125
263
  @mixin govuk-link-style-text {
126
- // Override link colour to use text colour
127
264
  &:link,
128
- &:visited,
129
- &:hover,
265
+ &:visited {
266
+ @include govuk-text-colour;
267
+ }
268
+
269
+ // Force a colour change on hover to work around a bug in Safari
270
+ // https://bugs.webkit.org/show_bug.cgi?id=224483
271
+ &:hover {
272
+ color: rgba($govuk-text-colour, .99);
273
+ }
274
+
130
275
  &:active,
131
276
  &:focus {
132
277
  @include govuk-text-colour;
@@ -142,18 +287,60 @@
142
287
  }
143
288
  }
144
289
 
290
+ /// Inverse link styles
291
+ ///
292
+ /// Makes links white, in all states. Use this mixin if you're displaying links
293
+ /// against a dark background.
294
+ ///
295
+ /// If you use this mixin in a component, you must also include the
296
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
297
+ ///
298
+ /// @example scss
299
+ /// .govuk-component__link {
300
+ /// @include govuk-link-common;
301
+ /// @include govuk-link-style-inverse;
302
+ /// }
303
+ ///
304
+ /// @access public
305
+
306
+ @mixin govuk-link-style-inverse {
307
+ &:link,
308
+ &:visited {
309
+ color: govuk-colour("white");
310
+ }
311
+
312
+ // Force a colour change on hover to work around a bug in Safari
313
+ // https://bugs.webkit.org/show_bug.cgi?id=224483
314
+ &:hover,
315
+ &:active {
316
+ color: rgba(govuk-colour("white"), .99);
317
+ }
318
+
319
+ &:focus {
320
+ color: $govuk-focus-text-colour;
321
+ }
322
+
323
+ // alphagov/govuk_template includes a specific a:link:focus selector designed
324
+ // to make unvisited links a slightly darker blue when focussed, so we need to
325
+ // override the text colour for that combination of selectors.
326
+ @include govuk-compatibility(govuk_template) {
327
+ &:link:focus {
328
+ color: $govuk-focus-text-colour;
329
+ }
330
+ }
331
+ }
145
332
 
146
- /// No visited state link mixin
333
+ /// Default link styles, without a visited state
147
334
  ///
148
- /// Used in cases where it is not helpful to distinguish between visited and
149
- /// non-visited links.
335
+ /// Makes links use the default unvisited, hover and active colours, with no
336
+ /// distinct visited state.
150
337
  ///
151
- /// For example, navigation links to pages with dynamic content like admin
152
- /// dashboards. The content on the page is changing all the time, so the fact
153
- /// that you’ve visited it before is not important.
338
+ /// Use this mixin when it's not helpful to distinguish between visited and
339
+ /// non-visited links. For example, when you link to pages with
340
+ /// frequently-changing content, such as the dashboard for an admin interface.
154
341
  ///
155
- /// If you use this mixin in a component you must also include the
156
- /// govuk-link-common mixin in order to get the focus state.
342
+ /// If you use this mixin in a component, you must also include the
343
+ /// `govuk-link-common` mixin to get the correct focus and hover states.
157
344
  ///
158
345
  /// @example scss
159
346
  /// .govuk-component__link {
@@ -187,20 +374,40 @@
187
374
  }
188
375
  }
189
376
 
190
- /// Print friendly link mixin
377
+ /// Remove underline from links
191
378
  ///
192
- /// When printing, append the the destination URL to the link text, as long
193
- /// as the URL starts with either `/`, `http://` or `https://`.
379
+ /// Remove underlines from links unless the link is active or a user hovers
380
+ /// their cursor over it. This has no effect in Internet Explorer 8 (IE8),
381
+ /// because IE8 does not support `:not`.
382
+ ///
383
+ /// @example scss
384
+ /// .govuk-component__link {
385
+ /// @include govuk-link-common;
386
+ /// @include govuk-link-style-default;
387
+ /// @include govuk-link-style-no-underline;
388
+ /// }
389
+ ///
390
+ /// @access public
391
+
392
+ @mixin govuk-link-style-no-underline {
393
+ &:not(:hover):not(:active) {
394
+ text-decoration: none;
395
+ }
396
+ }
397
+
398
+ /// Include link destination when printing the page
399
+ ///
400
+ /// If the user prints the page, add the destination URL after the link text, if
401
+ /// the URL starts with `/`, `http://` or `https://`.
194
402
  ///
195
403
  /// @access public
196
404
 
197
405
  @mixin govuk-link-print-friendly {
198
406
  @include govuk-media-query($media-type: print) {
199
-
200
407
  &[href^="/"],
201
408
  &[href^="http://"],
202
409
  &[href^="https://"] {
203
- &::after {
410
+ &:after {
204
411
  content: " (" attr(href) ")";
205
412
  font-size: 90%;
206
413
 
@@ -2,8 +2,6 @@
2
2
  /// @group helpers/layout
3
3
  ////
4
4
 
5
-
6
-
7
5
  // =========================================================
8
6
  // Wrangle sass-mq config...
9
7
  // =========================================================
@@ -41,8 +39,6 @@ $sass-mq-already-included: false !default;
41
39
 
42
40
  $sass-mq-already-included: true;
43
41
 
44
-
45
-
46
42
  // =========================================================
47
43
  // Helpers
48
44
  // =========================================================
@@ -91,5 +87,5 @@ $sass-mq-already-included: true;
91
87
  @mixin govuk-media-query($args...) {
92
88
  @include mq($args...) {
93
89
  @content;
94
- };
90
+ }
95
91
  }
@@ -2,6 +2,8 @@
2
2
  /// @group helpers/spacing
3
3
  ////
4
4
 
5
+ // stylelint-disable indentation
6
+
5
7
  /// Single point spacing
6
8
  ///
7
9
  /// Returns measurement corresponding to the spacing point requested.
@@ -146,7 +148,6 @@
146
148
  ///
147
149
  /// @access public
148
150
 
149
-
150
151
  @mixin govuk-responsive-padding($responsive-spacing-point, $direction: "all", $important: false, $adjustment: false) {
151
152
  @include _govuk-responsive-spacing($responsive-spacing-point, "padding", $direction, $important, $adjustment);
152
153
  }
@@ -127,7 +127,8 @@
127
127
  $font-size-rem: govuk-px-to-rem($font-size);
128
128
 
129
129
  $line-height: _govuk-line-height(
130
- $line-height: if($override-line-height,
130
+ $line-height: if(
131
+ $override-line-height,
131
132
  $override-line-height,
132
133
  map-get($breakpoint-map, "line-height")
133
134
  ),
@@ -142,9 +143,9 @@
142
143
  $line-height: $line-height if($important, !important, null);
143
144
 
144
145
  @if $breakpoint == null {
145
- font-size: $font-size; // sass-lint:disable no-duplicate-properties
146
+ font-size: $font-size;
146
147
  @if $govuk-typography-use-rem {
147
- font-size: $font-size-rem; // sass-lint:disable no-duplicate-properties
148
+ font-size: $font-size-rem;
148
149
  }
149
150
  line-height: $line-height;
150
151
  } @else if $breakpoint == "print" {
@@ -154,9 +155,9 @@
154
155
  }
155
156
  } @else {
156
157
  @include govuk-media-query($from: $breakpoint) {
157
- font-size: $font-size; // sass-lint:disable no-duplicate-properties
158
+ font-size: $font-size;
158
159
  @if $govuk-typography-use-rem {
159
- font-size: $font-size-rem; // sass-lint:disable no-duplicate-properties
160
+ font-size: $font-size-rem;
160
161
  }
161
162
  line-height: $line-height;
162
163
  }
@@ -184,7 +185,7 @@
184
185
  -webkit-font-feature-settings: "tnum" 1;
185
186
  font-feature-settings: "tnum" 1;
186
187
 
187
- @supports(font-variant-numeric: tabular-nums) {
188
+ @supports (font-variant-numeric: tabular-nums) {
188
189
  -webkit-font-feature-settings: normal;
189
190
  font-feature-settings: normal;
190
191
  font-variant-numeric: tabular-nums;
@@ -1,3 +1,4 @@
1
+ @import "button-group";
1
2
  @import "form-group";
2
3
  @import "grid";
3
4
  @import "main-wrapper";
@@ -0,0 +1,94 @@
1
+ @import "../base";
2
+
3
+ @include govuk-exports("govuk/objects/button-group") {
4
+ // Button groups can be used to group buttons and links together as a group.
5
+ //
6
+ // Within a button group:
7
+ //
8
+ // - links are styled to line up visually with the buttons, including being
9
+ // centre-aligned on mobile
10
+ // - spacing between the buttons and links is handled automatically, including
11
+ // when they wrap across multiple lines
12
+ .govuk-button-group {
13
+ $horizontal-gap: govuk-spacing(3);
14
+ $vertical-gap: govuk-spacing(3);
15
+
16
+ // These need to be kept in sync with the button component's styles
17
+ $button-padding: govuk-spacing(2);
18
+ $button-shadow-size: $govuk-border-width-form-element;
19
+
20
+ $link-spacing: govuk-spacing(1);
21
+
22
+ @include govuk-responsive-margin(6, "bottom", $adjustment: $vertical-gap * -1);
23
+
24
+ // Flexbox is used to center-align links on mobile, align everything along
25
+ // the baseline on tablet and above, and to removes extra whitespace that
26
+ // we'd get between the buttons and links because they're inline-blocks.
27
+ //
28
+ // Ideally we'd use `gap` with flexbox rather than having to do it all with
29
+ // margins, but unfortunately the support isn't there (yet) and @supports
30
+ // doesn't play nicely with it
31
+ // (https://github.com/w3c/csswg-drafts/issues/3559)
32
+ display: -webkit-box;
33
+ display: -ms-flexbox;
34
+ display: flex;
35
+ -webkit-box-orient: vertical;
36
+ -webkit-box-direction: normal;
37
+ -ms-flex-direction: column;
38
+ flex-direction: column;
39
+ -webkit-box-align: center;
40
+ -ms-flex-align: center;
41
+ align-items: center;
42
+
43
+ // Give links within the button group the same font-size and line-height
44
+ // as buttons.
45
+ //
46
+ // Because we want the focus state to be tight around the link text, we use
47
+ // margins where the buttons would use padding.
48
+ .govuk-link {
49
+ @include govuk-font($size: 19, $line-height: 19px);
50
+ display: inline-block;
51
+ // Prevent links overflowing their container in IE10/11 because of bug
52
+ // with align-items: center
53
+ max-width: 100%;
54
+ margin-top: $link-spacing;
55
+ margin-bottom: $link-spacing + $vertical-gap;
56
+ text-align: center;
57
+ }
58
+
59
+ // Reduce the bottom margin to the size of the vertical gap (accommodating
60
+ // the button shadow) – the 'lost' margin is moved to the button-group.
61
+ .govuk-button {
62
+ margin-bottom: $vertical-gap + $button-shadow-size;
63
+ }
64
+
65
+ // On tablet and above, we also introduce a 'column gap' between the
66
+ // buttons and links in each row and left align links
67
+ @include govuk-media-query($from: tablet) {
68
+ // Cancel out the column gap for the last item in each row
69
+ margin-right: ($horizontal-gap * -1);
70
+
71
+ -webkit-box-orient: horizontal;
72
+
73
+ -webkit-box-direction: normal;
74
+
75
+ -ms-flex-direction: row;
76
+
77
+ flex-direction: row;
78
+ -ms-flex-wrap: wrap;
79
+ flex-wrap: wrap;
80
+ -webkit-box-align: baseline;
81
+ -ms-flex-align: baseline;
82
+ align-items: baseline;
83
+
84
+ .govuk-button,
85
+ .govuk-link {
86
+ margin-right: $horizontal-gap;
87
+ }
88
+
89
+ .govuk-link {
90
+ text-align: left;
91
+ }
92
+ }
93
+ }
94
+ }
@@ -1,7 +1,6 @@
1
1
  @import "../base";
2
2
 
3
3
  @include govuk-exports("govuk/objects/form-group") {
4
-
5
4
  .govuk-form-group {
6
5
  @include govuk-clearfix;
7
6
  @include govuk-responsive-margin(6, "bottom");
@@ -1,7 +1,6 @@
1
1
  @import "../base";
2
2
 
3
3
  @include govuk-exports("govuk/objects/grid") {
4
-
5
4
  .govuk-grid-row {
6
5
  @include govuk-clearfix;
7
6
  margin-right: - ($govuk-gutter-half);
@@ -10,7 +9,7 @@
10
9
 
11
10
  @each $width in map-keys($govuk-grid-widths) {
12
11
  .govuk-grid-column-#{$width} {
13
- @include govuk-grid-column($width)
12
+ @include govuk-grid-column($width);
14
13
  }
15
14
  }
16
15
 
@@ -19,7 +18,7 @@
19
18
  // them in the outputted CSS
20
19
  @each $width in map-keys($govuk-grid-widths) {
21
20
  .govuk-grid-column-#{$width}-from-desktop {
22
- @include govuk-grid-column($width, $at: desktop)
21
+ @include govuk-grid-column($width, $at: desktop);
23
22
  }
24
23
  }
25
24
  }
@@ -21,7 +21,6 @@
21
21
  // </div>
22
22
  // </div>
23
23
 
24
-
25
24
  /// @deprecated Replace this mixin with more direct references to the [spacing
26
25
  /// mixins](https://design-system.service.gov.uk/styles/spacing/#spacing-on-custom-components).
27
26
  @mixin govuk-main-wrapper {
@@ -4,8 +4,8 @@
4
4
 
5
5
  @import "../base";
6
6
 
7
+ // stylelint-disable declaration-no-important
7
8
  @include govuk-exports("govuk/overrides/display") {
8
-
9
9
  .govuk-\!-display-inline {
10
10
  display: inline !important;
11
11
  }
@@ -4,6 +4,7 @@
4
4
 
5
5
  @import "../base";
6
6
 
7
+ // stylelint-disable declaration-no-important
7
8
  @include govuk-exports("govuk/overrides/width") {
8
9
  .govuk-\!-width-full {
9
10
  width: 100% !important;
@@ -19,3 +19,5 @@
19
19
  @import "typography-font-families";
20
20
  @import "typography-font";
21
21
  @import "typography-responsive";
22
+
23
+ @import "links";
@@ -4,8 +4,6 @@
4
4
 
5
5
  @import "../helpers/colour";
6
6
 
7
-
8
-
9
7
  // =========================================================
10
8
  // Generic
11
9
  // =========================================================
@@ -88,6 +86,15 @@ $govuk-focus-text-colour: govuk-colour("black") !default;
88
86
 
89
87
  $govuk-error-colour: govuk-colour("red") !default;
90
88
 
89
+ /// Success colour
90
+ ///
91
+ /// Used to highlight success messages and banners
92
+ ///
93
+ /// @type Colour
94
+ /// @access public
95
+
96
+ $govuk-success-colour: govuk-colour("green") !default;
97
+
91
98
  /// Border colour
92
99
  ///
93
100
  /// Used in for example borders, separators, rules and keylines.
@@ -115,7 +122,6 @@ $govuk-input-border-colour: govuk-colour("black") !default;
115
122
 
116
123
  $govuk-hover-colour: govuk-colour("mid-grey", $legacy: "grey-3");
117
124
 
118
-
119
125
  // =============================================================================
120
126
  // Links
121
127
  // =============================================================================
@@ -70,6 +70,9 @@ $govuk-colours-organisations: (
70
70
  colour: #00ad93,
71
71
  colour-websafe: #39836e
72
72
  ),
73
+ "foreign-commonwealth-development-office": (
74
+ colour: #012169
75
+ ),
73
76
  "foreign-commonwealth-office": (
74
77
  colour: #003e74,
75
78
  colour-websafe: #406e97