katalyst-govuk-formbuilder 1.21.1 → 1.23.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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/builds/katalyst/govuk/formbuilder.css +38 -1
  3. data/app/assets/builds/katalyst/govuk/formbuilder.js +29 -134
  4. data/app/assets/builds/katalyst/govuk/formbuilder.min.js +8 -8
  5. data/app/assets/builds/katalyst/govuk/formbuilder.min.js.map +1 -1
  6. data/lib/katalyst/govuk/form_builder/builder.rb +45 -0
  7. data/lib/katalyst/govuk/form_builder/config.rb +0 -2
  8. data/lib/katalyst/govuk/form_builder/elements/time.rb +26 -0
  9. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +4 -4
  10. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +1 -1
  11. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +2 -2
  12. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +1 -1
  13. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +2 -1
  14. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +4 -4
  15. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +20 -20
  16. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +7 -15
  17. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +2 -2
  18. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +4 -2
  19. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +2 -2
  20. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +2 -2
  21. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +1 -1
  22. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +1 -1
  23. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +1 -7
  24. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +5 -5
  25. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +16 -16
  26. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +1 -1
  27. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +1 -1
  28. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +1 -7
  29. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +1 -1
  30. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
  31. data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +2 -2
  32. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +3 -3
  33. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +34 -0
  34. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +1 -1
  35. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +1 -1
  36. data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +172 -33
  37. data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +1 -1
  38. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +4 -4
  39. data/node_modules/govuk-frontend/dist/govuk/objects/_button-group.scss +1 -1
  40. data/node_modules/govuk-frontend/dist/govuk/objects/_main-wrapper.scss +1 -1
  41. data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +1 -1
  42. data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +2 -2
  43. data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +1 -1
  44. data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +5 -5
  45. data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +7 -0
  46. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +4 -2
  47. metadata +2 -2
  48. data/node_modules/govuk-frontend/dist/govuk/vendor/_sass-mq.scss +0 -349
@@ -89,7 +89,7 @@
89
89
  cursor: pointer;
90
90
  -webkit-appearance: none;
91
91
 
92
- @include govuk-media-query($from: tablet) {
92
+ @media #{govuk-from-breakpoint(tablet)} {
93
93
  margin-bottom: 14px;
94
94
  }
95
95
 
@@ -203,7 +203,7 @@
203
203
  cursor: pointer;
204
204
  -webkit-appearance: none;
205
205
 
206
- @include govuk-media-query($from: tablet) {
206
+ @media #{govuk-from-breakpoint(tablet)} {
207
207
  padding-bottom: govuk-spacing(2);
208
208
  }
209
209
 
@@ -266,7 +266,7 @@
266
266
  padding-bottom: govuk-spacing(3);
267
267
  border-bottom: 0;
268
268
 
269
- @include govuk-media-query($from: tablet) {
269
+ @media #{govuk-from-breakpoint(tablet)} {
270
270
  padding-bottom: govuk-spacing(4);
271
271
  }
272
272
  }
@@ -276,7 +276,7 @@
276
276
  .govuk-accordion__section-button:focus .govuk-accordion__section-toggle-focus {
277
277
  padding-bottom: 3px;
278
278
 
279
- @include govuk-media-query($from: desktop) {
279
+ @media #{govuk-from-breakpoint(desktop)} {
280
280
  padding-bottom: 2px;
281
281
  }
282
282
  }
@@ -97,7 +97,7 @@
97
97
  }
98
98
 
99
99
  .govuk-breadcrumbs--collapse-on-mobile {
100
- @include govuk-media-query($until: tablet) {
100
+ @media #{govuk-until-breakpoint(tablet)} {
101
101
  .govuk-breadcrumbs__list-item {
102
102
  display: none;
103
103
 
@@ -82,7 +82,7 @@ $govuk-inverse-button-text-colour: $govuk-brand-colour !default;
82
82
  cursor: pointer;
83
83
  -webkit-appearance: none;
84
84
 
85
- @include govuk-media-query($from: tablet) {
85
+ @media #{govuk-from-breakpoint(tablet)} {
86
86
  width: auto;
87
87
  }
88
88
 
@@ -247,7 +247,7 @@ $govuk-inverse-button-text-colour: $govuk-brand-colour !default;
247
247
  .govuk-button__start-icon {
248
248
  margin-left: govuk-spacing(1);
249
249
 
250
- @include govuk-media-query($from: desktop) {
250
+ @media #{govuk-from-breakpoint(desktop)} {
251
251
  margin-left: govuk-spacing(2);
252
252
  }
253
253
  vertical-align: middle;
@@ -12,7 +12,7 @@
12
12
  left: 0;
13
13
  width: 100%;
14
14
 
15
- @include govuk-media-query($from: tablet) {
15
+ @media #{govuk-from-breakpoint(tablet)} {
16
16
  display: inline-block;
17
17
  right: 0;
18
18
  left: auto;
@@ -84,6 +84,7 @@
84
84
  padding: govuk-spacing(3) govuk-spacing(2);
85
85
  background-color: govuk-colour("white");
86
86
  text-align: left;
87
+ @include govuk-text-break-word;
87
88
  }
88
89
 
89
90
  // bugs documented with button using flex
@@ -103,7 +104,7 @@
103
104
  background-color: govuk-colour("light-grey");
104
105
  cursor: pointer;
105
106
 
106
- @include govuk-media-query($from: tablet) {
107
+ @media #{govuk-from-breakpoint(tablet)} {
107
108
  padding: (govuk-spacing(4) + $govuk-border-width - $file-upload-border-width);
108
109
  }
109
110
 
@@ -59,7 +59,7 @@
59
59
 
60
60
  .govuk-footer__meta-item--grow {
61
61
  flex: 1; // Support: Flexbox
62
- @include govuk-media-query($until: tablet) {
62
+ @media #{govuk-until-breakpoint(tablet)} {
63
63
  flex-basis: 320px; // Support: Flexbox
64
64
  }
65
65
  }
@@ -67,7 +67,7 @@
67
67
  .govuk-footer__licence-logo {
68
68
  display: inline-block;
69
69
  margin-right: govuk-spacing(2);
70
- @include govuk-media-query($until: desktop) {
70
+ @media #{govuk-until-breakpoint(desktop)} {
71
71
  margin-bottom: govuk-spacing(3);
72
72
  }
73
73
  vertical-align: top;
@@ -141,7 +141,7 @@
141
141
  margin-bottom: govuk-spacing(6);
142
142
  padding-bottom: govuk-spacing(4);
143
143
 
144
- @include govuk-media-query($until: tablet) {
144
+ @media #{govuk-until-breakpoint(tablet)} {
145
145
  padding-bottom: govuk-spacing(2);
146
146
  }
147
147
 
@@ -172,7 +172,7 @@
172
172
  column-gap: $govuk-gutter; // Support: Columns
173
173
  }
174
174
 
175
- @include govuk-media-query($from: desktop) {
175
+ @media #{govuk-from-breakpoint(desktop)} {
176
176
  .govuk-footer__list--columns-2 {
177
177
  column-count: 2; // Support: Columns
178
178
  }
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  .govuk-header--with-js-navigation {
34
- @include govuk-media-query($until: desktop) {
34
+ @media #{govuk-until-breakpoint(desktop)} {
35
35
  .govuk-header__logo {
36
36
  // Protect the absolute positioned menu button from overlapping with the
37
37
  // logo with right padding using the button's width
@@ -117,7 +117,7 @@
117
117
  fill: #00ffe0;
118
118
 
119
119
  // Override Dot colour when printing
120
- @include govuk-media-query($media-type: print) {
120
+ @media print {
121
121
  fill: currentcolor;
122
122
  }
123
123
 
@@ -152,7 +152,7 @@
152
152
  // Align vertically with logo when not wrapped
153
153
  vertical-align: top;
154
154
 
155
- @include govuk-media-query($from: tablet) {
155
+ @media #{govuk-from-breakpoint(tablet)} {
156
156
  margin-top: $product-name-offset-tablet;
157
157
  @-moz-document url-prefix() {
158
158
  margin-top: $product-name-offset-tablet - 0.5px;
@@ -184,11 +184,11 @@
184
184
  }
185
185
 
186
186
  // Remove top margin on the breakpoints too
187
- @include govuk-media-query($from: tablet) {
187
+ @media #{govuk-from-breakpoint(tablet)} {
188
188
  margin-top: 0;
189
189
  }
190
190
 
191
- @include govuk-media-query($from: desktop) {
191
+ @media #{govuk-from-breakpoint(desktop)} {
192
192
  margin-top: 0;
193
193
  }
194
194
  }
@@ -227,7 +227,7 @@
227
227
  margin-right: govuk-spacing(2);
228
228
  font-size: 30px; // We don't have a mixin that produces 30px font size
229
229
 
230
- @include govuk-media-query($from: desktop) {
230
+ @media #{govuk-from-breakpoint(desktop)} {
231
231
  display: inline;
232
232
  }
233
233
 
@@ -277,7 +277,7 @@
277
277
  // Apply margins to internal elements to emulate padding
278
278
  margin-bottom: govuk-spacing(3);
279
279
 
280
- @include govuk-media-query($from: desktop) {
280
+ @media #{govuk-from-breakpoint(desktop)} {
281
281
  // Magic number to align service name baseline with the GOV.UK logo
282
282
  $service-name-offset: 4px;
283
283
 
@@ -294,7 +294,7 @@
294
294
  .govuk-header__logo {
295
295
  @include govuk-responsive-margin($govuk-header-vertical-spacing-value, "bottom");
296
296
 
297
- @include govuk-media-query($from: desktop) {
297
+ @media #{govuk-from-breakpoint(desktop)} {
298
298
  width: 33.33%;
299
299
  padding-right: $govuk-gutter-half;
300
300
  float: left;
@@ -319,7 +319,7 @@
319
319
  }
320
320
 
321
321
  .govuk-header__content {
322
- @include govuk-media-query($from: desktop) {
322
+ @media #{govuk-from-breakpoint(desktop)} {
323
323
  width: 66.66%;
324
324
  padding-left: $govuk-gutter-half;
325
325
  float: left;
@@ -361,7 +361,7 @@
361
361
  @include govuk-shape-arrow($direction: up, $base: 10px, $display: inline-block);
362
362
  }
363
363
 
364
- @include govuk-media-query($from: mobile) {
364
+ @media #{govuk-from-breakpoint(mobile)} {
365
365
  position: absolute;
366
366
  // calculate top offset by:
367
367
  // - getting the vertical spacing for the top and the bottom of the header
@@ -374,7 +374,7 @@
374
374
  margin: 0;
375
375
  }
376
376
 
377
- @include govuk-media-query($from: tablet) {
377
+ @media #{govuk-from-breakpoint(tablet)} {
378
378
  top: govuk-spacing(3);
379
379
  }
380
380
 
@@ -389,13 +389,13 @@
389
389
  }
390
390
 
391
391
  .govuk-header__navigation {
392
- @include govuk-media-query($until: mobile) {
392
+ @media #{govuk-until-breakpoint(mobile)} {
393
393
  @include _govuk-rebrand {
394
394
  padding-bottom: govuk-spacing(3);
395
395
  }
396
396
  }
397
397
 
398
- @include govuk-media-query($from: desktop) {
398
+ @media #{govuk-from-breakpoint(desktop)} {
399
399
  margin-bottom: govuk-spacing(2);
400
400
 
401
401
  @include _govuk-rebrand {
@@ -412,7 +412,7 @@
412
412
 
413
413
  .govuk-header__service-name + .govuk-header__navigation {
414
414
  @include _govuk-rebrand {
415
- @include govuk-media-query($from: desktop) {
415
+ @media #{govuk-from-breakpoint(desktop)} {
416
416
  // If there's both a service name and navigation,
417
417
  // remove the extra padding between them on desktop
418
418
  padding-top: 0;
@@ -434,14 +434,14 @@
434
434
  }
435
435
 
436
436
  @include _govuk-rebrand {
437
- @include govuk-media-query($from: mobile, $until: desktop) {
437
+ @media #{govuk-from-breakpoint(mobile)} and #{govuk-until-breakpoint(desktop)} {
438
438
  padding-bottom: govuk-spacing(3);
439
439
  }
440
440
  }
441
441
  }
442
442
 
443
443
  .govuk-header__navigation--end {
444
- @include govuk-media-query($from: desktop) {
444
+ @media #{govuk-from-breakpoint(desktop)} {
445
445
  margin: 0;
446
446
  padding: govuk-spacing(1) 0;
447
447
  text-align: right;
@@ -452,7 +452,7 @@
452
452
  padding: govuk-spacing(2) 0;
453
453
  border-bottom: 1px solid $govuk-header-nav-item-border-color;
454
454
 
455
- @include govuk-media-query($from: desktop) {
455
+ @media #{govuk-from-breakpoint(desktop)} {
456
456
  display: inline-block;
457
457
  margin-right: govuk-spacing(3);
458
458
  padding: govuk-spacing(1) 0;
@@ -470,7 +470,7 @@
470
470
  padding-top: govuk-spacing(3);
471
471
 
472
472
  // ...except on desktop
473
- @include govuk-media-query($from: desktop) {
473
+ @media #{govuk-from-breakpoint(desktop)} {
474
474
  padding-top: govuk-spacing(1);
475
475
  }
476
476
 
@@ -503,7 +503,7 @@
503
503
 
504
504
  // When printing, use the normal blue as this contrasts better with the
505
505
  // white printing header
506
- @include govuk-media-query($media-type: print) {
506
+ @media print {
507
507
  color: $govuk-brand-colour;
508
508
  }
509
509
 
@@ -524,7 +524,7 @@
524
524
  border-bottom: 0;
525
525
  }
526
526
 
527
- @include govuk-media-query($media-type: print) {
527
+ @media print {
528
528
  .govuk-header {
529
529
  border-bottom-width: 0;
530
530
  color: govuk-colour("black");
@@ -23,15 +23,7 @@
23
23
  appearance: none;
24
24
 
25
25
  &:focus {
26
- outline: $govuk-focus-width solid $govuk-focus-colour;
27
- // Ensure outline appears outside of the element
28
- outline-offset: 0;
29
- // Double the border by adding its width again. Use `box-shadow` for this
30
- // instead of changing `border-width` - this is for consistency with
31
- // components such as textarea where we avoid changing `border-width` as
32
- // it will change the element size. Also, `outline` cannot be utilised
33
- // here as it is already used for the yellow focus state.
34
- box-shadow: inset 0 0 0 $govuk-border-width-form-element;
26
+ @include govuk-focused-form-input;
35
27
  }
36
28
 
37
29
  &:disabled {
@@ -109,7 +101,7 @@
109
101
  }
110
102
 
111
103
  // Split prefix/suffix onto separate lines on narrow screens
112
- @include govuk-media-query($until: mobile) {
104
+ @media #{govuk-until-breakpoint(mobile)} {
113
105
  display: block;
114
106
 
115
107
  .govuk-input {
@@ -138,7 +130,7 @@
138
130
  cursor: default;
139
131
  flex: 0 0 auto;
140
132
  // Split prefix/suffix onto separate lines on narrow screens
141
- @include govuk-media-query($until: mobile) {
133
+ @media #{govuk-until-breakpoint(mobile)} {
142
134
  display: block;
143
135
  height: 100%;
144
136
  white-space: normal;
@@ -146,20 +138,20 @@
146
138
  }
147
139
 
148
140
  .govuk-input__prefix {
149
- @include govuk-media-query($until: mobile) {
141
+ @media #{govuk-until-breakpoint(mobile)} {
150
142
  border-bottom: 0;
151
143
  }
152
- @include govuk-media-query($from: mobile) {
144
+ @media #{govuk-from-breakpoint(mobile)} {
153
145
  border-right: 0;
154
146
  }
155
147
  }
156
148
 
157
149
  // Split prefix/suffix onto separate lines on narrow screens
158
150
  .govuk-input__suffix {
159
- @include govuk-media-query($until: mobile) {
151
+ @media #{govuk-until-breakpoint(mobile)} {
160
152
  border-top: 0;
161
153
  }
162
- @include govuk-media-query($from: mobile) {
154
+ @media #{govuk-from-breakpoint(mobile)} {
163
155
  border-left: 0;
164
156
  }
165
157
  }
@@ -19,7 +19,7 @@
19
19
  // text in high contrast mode
20
20
  border-bottom: 1px solid transparent;
21
21
 
22
- @include govuk-media-query($from: tablet) {
22
+ @media #{govuk-from-breakpoint(tablet)} {
23
23
  padding: 2px govuk-spacing(4) govuk-spacing(1);
24
24
  }
25
25
  }
@@ -41,7 +41,7 @@
41
41
 
42
42
  background-color: $govuk-body-background-colour;
43
43
 
44
- @include govuk-media-query($from: tablet) {
44
+ @media #{govuk-from-breakpoint(tablet)} {
45
45
  padding: $padding-tablet;
46
46
  }
47
47
 
@@ -8,7 +8,7 @@
8
8
  align-items: center;
9
9
  flex-wrap: wrap;
10
10
 
11
- @include govuk-media-query($from: tablet) {
11
+ @media #{govuk-from-breakpoint(tablet)} {
12
12
  flex-direction: row;
13
13
  align-items: flex-start;
14
14
  }
@@ -45,7 +45,7 @@
45
45
  // visually sit in the middle of their touch area
46
46
  text-align: center;
47
47
 
48
- @include govuk-media-query($from: tablet) {
48
+ @media #{govuk-from-breakpoint(tablet)} {
49
49
  display: block;
50
50
  }
51
51
  }
@@ -72,6 +72,7 @@
72
72
 
73
73
  // Only show first, last and non-link items on mobile
74
74
  .govuk-pagination__item--current,
75
+ .govuk-pagination__item--ellipsis,
75
76
  .govuk-pagination__item--ellipses,
76
77
  .govuk-pagination__item:first-child,
77
78
  .govuk-pagination__item:last-child {
@@ -92,6 +93,7 @@
92
93
  }
93
94
  }
94
95
 
96
+ .govuk-pagination__item--ellipsis,
95
97
  .govuk-pagination__item--ellipses {
96
98
  @include govuk-typography-weight-bold;
97
99
  color: $govuk-secondary-text-colour;
@@ -11,7 +11,7 @@
11
11
 
12
12
  text-align: center;
13
13
 
14
- @include govuk-media-query($until: tablet) {
14
+ @media #{govuk-until-breakpoint(tablet)} {
15
15
  padding: govuk-spacing(if($govuk-new-typography-scale, 4, 3)) - $govuk-border-width;
16
16
 
17
17
  // This is an if-all-else-fails attempt to stop long words from
@@ -36,7 +36,7 @@
36
36
  color: govuk-colour("white");
37
37
  background: govuk-colour("green");
38
38
 
39
- @include govuk-media-query($media-type: print) {
39
+ @media print {
40
40
  border-color: currentcolor;
41
41
  color: $govuk-print-text-colour;
42
42
  background: none;
@@ -8,7 +8,7 @@
8
8
  // breakpoint
9
9
  // - being display: flex above the mobile breakpoint
10
10
 
11
- @include govuk-media-query($from: mobile) {
11
+ @media #{govuk-from-breakpoint(mobile)} {
12
12
  flex-direction: row;
13
13
 
14
14
  // The default of `stretch` makes the toggle button appear taller than the
@@ -41,7 +41,7 @@
41
41
  display: none;
42
42
  }
43
43
 
44
- @include govuk-media-query($from: mobile) {
44
+ @media #{govuk-from-breakpoint(mobile)} {
45
45
  // Buttons are normally 100% wide on mobile, but we don't want that here
46
46
  width: auto;
47
47
  flex-shrink: 0;
@@ -21,7 +21,7 @@
21
21
  margin-right: govuk-spacing(if($govuk-new-typography-scale, 3, 2));
22
22
 
23
23
  @if $govuk-new-typography-scale {
24
- @include govuk-media-query($from: tablet) {
24
+ @media #{govuk-from-breakpoint(tablet)} {
25
25
  margin-right: govuk-spacing(2);
26
26
  }
27
27
  }
@@ -145,7 +145,7 @@
145
145
  // =========================================================
146
146
 
147
147
  .govuk-radios--inline {
148
- @include govuk-media-query($from: tablet) {
148
+ @media #{govuk-from-breakpoint(tablet)} {
149
149
  display: flex;
150
150
  flex-wrap: wrap;
151
151
  align-items: flex-start;
@@ -24,13 +24,7 @@
24
24
  background-color: govuk-colour("white");
25
25
 
26
26
  &:focus {
27
- outline: $govuk-focus-width solid $govuk-focus-colour;
28
- // Ensure outline appears outside of the element
29
- outline-offset: 0;
30
- // Double the border by adding its width again. Use `box-shadow` to do
31
- // this instead of changing `border-width` (which changes element size)
32
- // and since `outline` is already used for the yellow focus state.
33
- box-shadow: inset 0 0 0 $govuk-border-width-form-element;
27
+ @include govuk-focused-form-input;
34
28
  }
35
29
 
36
30
  &:disabled {
@@ -27,7 +27,7 @@
27
27
  flex-direction: column;
28
28
  align-items: start;
29
29
 
30
- @include govuk-media-query($from: tablet) {
30
+ @media #{govuk-from-breakpoint(tablet)} {
31
31
  flex-direction: row;
32
32
  flex-wrap: wrap;
33
33
  }
@@ -41,7 +41,7 @@
41
41
  margin: govuk-spacing(2) 0;
42
42
  border: 0 solid $govuk-service-navigation-link-colour;
43
43
 
44
- @include govuk-media-query($from: tablet) {
44
+ @media #{govuk-from-breakpoint(tablet)} {
45
45
  // inline-block is used as a fallback for browsers that don't support flexbox
46
46
  display: inline-block;
47
47
 
@@ -78,7 +78,7 @@
78
78
  }
79
79
 
80
80
  .govuk-service-navigation__item--active {
81
- @include govuk-media-query($until: tablet) {
81
+ @media #{govuk-until-breakpoint(tablet)} {
82
82
  // Negative offset the left margin so we can place a current page indicator
83
83
  // to the left without misaligning the list item text.
84
84
  margin-left: ((govuk-spacing(2) + $govuk-service-navigation-active-link-border-width) * -1);
@@ -86,7 +86,7 @@
86
86
  border-left-width: $govuk-service-navigation-active-link-border-width;
87
87
  }
88
88
 
89
- @include govuk-media-query($from: tablet) {
89
+ @media #{govuk-from-breakpoint(tablet)} {
90
90
  @include _govuk-rebrand(
91
91
  "padding-bottom",
92
92
  $from: govuk-spacing(4) - $govuk-service-navigation-active-link-border-width,
@@ -184,7 +184,7 @@
184
184
  // readers would pointlessly announce.
185
185
  // - Fixes an NVDA issue in Firefox and Chrome <= 124 where it would read
186
186
  // all of the links as a run-on sentence.
187
- @include govuk-media-query($from: tablet) {
187
+ @media #{govuk-from-breakpoint(tablet)} {
188
188
  display: flex;
189
189
  flex-wrap: wrap;
190
190
  margin-bottom: 0;
@@ -2,7 +2,7 @@
2
2
  .govuk-summary-list {
3
3
  @include govuk-font($size: 19);
4
4
  @include govuk-text-colour;
5
- @include govuk-media-query($from: tablet) {
5
+ @media #{govuk-from-breakpoint(tablet)} {
6
6
  display: table;
7
7
  width: 100%;
8
8
  table-layout: fixed; // Required to allow us to wrap words that overflow.
@@ -15,10 +15,10 @@
15
15
  .govuk-summary-list__row {
16
16
  border-bottom: 1px solid $govuk-border-colour;
17
17
 
18
- @include govuk-media-query($until: tablet) {
18
+ @media #{govuk-until-breakpoint(tablet)} {
19
19
  margin-bottom: govuk-spacing(3);
20
20
  }
21
- @include govuk-media-query($from: tablet) {
21
+ @media #{govuk-from-breakpoint(tablet)} {
22
22
  display: table-row;
23
23
  }
24
24
  }
@@ -31,7 +31,7 @@
31
31
  // Provide an empty 'cell' for rows that don't have actions – otherwise the
32
32
  // bottom border is not drawn for that part of the row in some browsers.
33
33
  .govuk-summary-list__row--no-actions {
34
- @include govuk-media-query($from: tablet) {
34
+ @media #{govuk-from-breakpoint(tablet)} {
35
35
  &::after {
36
36
  content: "";
37
37
  display: table-cell;
@@ -45,7 +45,7 @@
45
45
  .govuk-summary-list__actions {
46
46
  margin: 0; // Reset default user agent styles
47
47
 
48
- @include govuk-media-query($from: tablet) {
48
+ @media #{govuk-from-breakpoint(tablet)} {
49
49
  display: table-cell;
50
50
  padding-top: govuk-spacing(2);
51
51
  padding-right: govuk-spacing(4);
@@ -55,7 +55,7 @@
55
55
 
56
56
  .govuk-summary-list__actions {
57
57
  margin-bottom: govuk-spacing(3);
58
- @include govuk-media-query($from: tablet) {
58
+ @media #{govuk-from-breakpoint(tablet)} {
59
59
  width: 20%;
60
60
  text-align: right;
61
61
  }
@@ -71,13 +71,13 @@
71
71
  .govuk-summary-list__key {
72
72
  margin-bottom: govuk-spacing(1);
73
73
  @include govuk-typography-weight-bold;
74
- @include govuk-media-query($from: tablet) {
74
+ @media #{govuk-from-breakpoint(tablet)} {
75
75
  width: 30%;
76
76
  }
77
77
  }
78
78
 
79
79
  .govuk-summary-list__value {
80
- @include govuk-media-query($until: tablet) {
80
+ @media #{govuk-until-breakpoint(tablet)} {
81
81
  margin-bottom: govuk-spacing(3);
82
82
  }
83
83
  }
@@ -101,7 +101,7 @@
101
101
  display: inline-block;
102
102
  }
103
103
 
104
- @include govuk-media-query($until: tablet) {
104
+ @media #{govuk-until-breakpoint(tablet)} {
105
105
  .govuk-summary-list__actions-list-item,
106
106
  .govuk-summary-card__action {
107
107
  margin-right: govuk-spacing(2);
@@ -117,7 +117,7 @@
117
117
  }
118
118
  }
119
119
 
120
- @include govuk-media-query($from: tablet) {
120
+ @media #{govuk-from-breakpoint(tablet)} {
121
121
  .govuk-summary-list__actions-list-item,
122
122
  .govuk-summary-card__action {
123
123
  margin-left: govuk-spacing(2);
@@ -153,7 +153,7 @@
153
153
  }
154
154
 
155
155
  // Increase padding by 1px to compensate for 'missing' border
156
- @include govuk-media-query($from: tablet) {
156
+ @media #{govuk-from-breakpoint(tablet)} {
157
157
  .govuk-summary-list__key,
158
158
  .govuk-summary-list__value,
159
159
  .govuk-summary-list__actions {
@@ -167,7 +167,7 @@
167
167
  border: 0;
168
168
 
169
169
  // Increase padding by 1px to compensate for 'missing' border
170
- @include govuk-media-query($from: tablet) {
170
+ @media #{govuk-from-breakpoint(tablet)} {
171
171
  .govuk-summary-list__key,
172
172
  .govuk-summary-list__value,
173
173
  .govuk-summary-list__actions {
@@ -190,7 +190,7 @@
190
190
  border-bottom: 1px solid transparent;
191
191
  background-color: govuk-colour("light-grey");
192
192
 
193
- @include govuk-media-query($from: "tablet") {
193
+ @media #{govuk-from-breakpoint(tablet)} {
194
194
  display: flex;
195
195
  justify-content: space-between;
196
196
  flex-wrap: nowrap;
@@ -203,7 +203,7 @@
203
203
  @include govuk-text-colour;
204
204
  margin: govuk-spacing(1) govuk-spacing(4) govuk-spacing(2) 0;
205
205
 
206
- @include govuk-media-query($from: "tablet") {
206
+ @media #{govuk-from-breakpoint(tablet)} {
207
207
  margin-bottom: govuk-spacing(1);
208
208
  }
209
209
  }
@@ -218,7 +218,7 @@
218
218
  padding: 0;
219
219
  list-style: none;
220
220
 
221
- @include govuk-media-query($from: "tablet") {
221
+ @media #{govuk-from-breakpoint(tablet)} {
222
222
  justify-content: right;
223
223
  text-align: right;
224
224
  }
@@ -251,7 +251,7 @@
251
251
  .govuk-summary-card__content {
252
252
  padding: govuk-spacing(3) govuk-spacing(3) 0;
253
253
 
254
- @include govuk-media-query($from: "tablet") {
254
+ @media #{govuk-from-breakpoint(tablet)} {
255
255
  padding: govuk-spacing(3) govuk-spacing(4);
256
256
  }
257
257
 
@@ -13,7 +13,7 @@
13
13
  // Modifier for tables with a lot of data. Tables with lots of data benefit
14
14
  // from a smaller font size on small screens.
15
15
  .govuk-table--small-text-until-tablet {
16
- @include govuk-media-query($until: tablet) {
16
+ @media #{govuk-until-breakpoint(tablet)} {
17
17
  @include govuk-font-size($size: 16);
18
18
  }
19
19
  }