govuk_publishing_components 41.1.1 → 42.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +0 -1
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-ecommerce-tracker.js +0 -1
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-event-tracker.js +0 -1
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-link-tracker.js +0 -1
  6. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-specialist-link-tracker.js +0 -1
  7. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +0 -2
  8. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +0 -4
  9. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +0 -1
  10. data/app/assets/javascripts/govuk_publishing_components/lib/toggle-input-class-on-focus.js +0 -1
  11. data/app/assets/javascripts/govuk_publishing_components/lib.js +0 -1
  12. data/app/assets/stylesheets/component_guide/application.scss +6 -0
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +1 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +12 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +8 -0
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +1 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +22 -0
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +12 -6
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +2 -2
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +1 -1
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +1 -1
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +2 -2
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +1 -1
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +6 -6
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +1 -1
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +14 -1
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +24 -0
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +5 -5
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +3 -3
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +32 -0
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +34 -2
  33. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +25 -0
  34. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +17 -0
  35. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +11 -0
  36. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +6 -0
  37. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_grid-helper.scss +1 -1
  38. data/app/views/govuk_publishing_components/components/_attachment.html.erb +2 -0
  39. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +6 -1
  40. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +2 -5
  41. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +4 -4
  42. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +1 -1
  43. data/app/views/govuk_publishing_components/components/_table.html.erb +1 -1
  44. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_external.html.erb +3 -0
  45. data/app/views/govuk_publishing_components/components/docs/layout_for_admin.yml +9 -0
  46. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
  47. data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +1 -1
  48. data/config/initializers/assets.rb +1 -8
  49. data/lib/govuk_publishing_components/presenters/attachment_helper.rb +4 -0
  50. data/lib/govuk_publishing_components/version.rb +1 -1
  51. metadata +4 -30
  52. data/app/assets/config/govuk_publishing_components_sassc-rails_manifest.js +0 -90
  53. data/app/assets/javascripts/govuk_publishing_components/ie.js +0 -2
  54. data/app/assets/javascripts/govuk_publishing_components/vendor/html5shiv-printshiv.js +0 -4
  55. data/app/assets/javascripts/govuk_publishing_components/vendor/json2.js +0 -487
  56. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/all.js +0 -1
  57. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/closest.js +0 -23
  58. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/common.js +0 -8
  59. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/indexOf.js +0 -9
  60. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/DOMTokenList.js +0 -273
  61. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Date/now.js +0 -21
  62. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Document.js +0 -34
  63. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js +0 -592
  64. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/closest.js +0 -57
  65. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/dataset.js +0 -303
  66. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/matches.js +0 -32
  67. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/nextElementSibling.js +0 -257
  68. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element/prototype/previousElementSibling.js +0 -257
  69. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Element.js +0 -148
  70. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Event.js +0 -506
  71. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Function/prototype/bind.js +0 -253
  72. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Object/defineProperty.js +0 -94
  73. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/String/prototype/trim.js +0 -22
  74. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Window.js +0 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 463dd1a5275229c7459f757f67fd4df12a59df147f952e709e830b55f6aed9ba
4
- data.tar.gz: f376cd0d430fc8c96de335bc19242add6d5f6e7a25fa6034631f881b23215cc3
3
+ metadata.gz: 53ba3400854819c86b537f469c0fbb470770a6e2f07883c45deed6719ecfa736
4
+ data.tar.gz: 64598aed656f03a98d30c5e2aee89f8349b84556e3c02a792e7c6acfbd0f16f3
5
5
  SHA512:
6
- metadata.gz: 0de3c1a2a5c84e20c5d931c9717c239fa61cce5c6bb263addf36d3bc7e1f2afb559fbe9c228aab89a7602097a747945df4e4fbebd1fd18035c44e392832bfa51
7
- data.tar.gz: 74fb27acd937298a191a24b380f9079312c6b8da732990987e885385758c2f34c2e11481da8760f4ded003bcf8bb3ee5f924a8be3d21f43043dd24c62122ec07
6
+ metadata.gz: a22d5a04f588b36863ab34d37138c0079e597b319f2eeb7d1847250ff72a8c00b2438336f1e8dc6a30e800add4ac778b435320704908f45476579a97329cc816
7
+ data.tar.gz: 0bb05292aea85d4bf2266c391f88bd0d27bf5a13f5229ff6865519acfba394fc81bfeffbc85453834114c82fe90c7593bc797fc963bc12551e04179f7c5be91b
@@ -1,4 +1,3 @@
1
- //= require ../vendor/polyfills/closest.js
2
1
  window.GOVUK = window.GOVUK || {}
3
2
  window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {};
4
3
 
@@ -1,4 +1,3 @@
1
- //= require ../vendor/polyfills-govuk-frontend-v4/Element/prototype/closest.js
2
1
  ;(function (global) {
3
2
  'use strict'
4
3
 
@@ -1,4 +1,3 @@
1
- //= require ../vendor/polyfills/closest.js
2
1
  window.GOVUK = window.GOVUK || {}
3
2
  window.GOVUK.Modules = window.GOVUK.Modules || {};
4
3
 
@@ -1,4 +1,3 @@
1
- //= require ../vendor/polyfills/closest.js
2
1
  window.GOVUK = window.GOVUK || {}
3
2
  window.GOVUK.Modules = window.GOVUK.Modules || {};
4
3
 
@@ -1,4 +1,3 @@
1
- // = require ../vendor/polyfills-govuk-frontend-v4/Element/prototype/closest.js
2
1
  window.GOVUK = window.GOVUK || {}
3
2
  window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {}
4
3
  window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analyticsModules || {};
@@ -1,5 +1,3 @@
1
- //= require ../vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js
2
-
3
1
  window.GOVUK = window.GOVUK || {}
4
2
  window.GOVUK.Modules = window.GOVUK.Modules || {};
5
3
 
@@ -1,7 +1,3 @@
1
- //= require ../vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js
2
- //= require ../vendor/polyfills/closest.js
3
- //= require ../vendor/polyfills/indexOf.js
4
-
5
1
  window.GOVUK = window.GOVUK || {}
6
2
  window.GOVUK.Modules = window.GOVUK.Modules || {};
7
3
 
@@ -1,4 +1,3 @@
1
- //= require ../../vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js
2
1
  // This is a non-jQuery version of Magna Charta: https://github.com/alphagov/magna-charta
3
2
  window.GOVUK = window.GOVUK || {}
4
3
  window.GOVUK.Modules = window.GOVUK.Modules || {};
@@ -1,4 +1,3 @@
1
- //= require ../vendor/polyfills-govuk-frontend-v4/Element/prototype/classList.js
2
1
  /*
3
2
  Toggle the class 'focus' on input boxes on element focus/blur
4
3
  Used by the search component but generic enough for reuse
@@ -1,2 +1 @@
1
- // = require_tree ./vendor/polyfills/
2
1
  // = require_tree ./lib
@@ -136,6 +136,12 @@ $gem-guide-border-width: 1px;
136
136
  &.component-output {
137
137
  padding: 0;
138
138
  }
139
+
140
+ @include govuk-media-query($media-type: print) {
141
+ &[class*="-background"] {
142
+ background-color: unset;
143
+ }
144
+ }
139
145
  }
140
146
 
141
147
  .component-guide-preview--simple {
@@ -17,7 +17,7 @@
17
17
  display: block !important; // stylelint-disable-line declaration-no-important
18
18
  }
19
19
 
20
- .js-enabled .govuk-accordion__section-content[hidden] {
20
+ .govuk-frontend-supported .govuk-accordion__section-content[hidden] {
21
21
  @supports (content-visibility: hidden) {
22
22
  content-visibility: auto;
23
23
  }
@@ -24,7 +24,7 @@
24
24
  }
25
25
  }
26
26
 
27
- .js-enabled {
27
+ .govuk-frontend-supported {
28
28
  .gem-c-contextual-guidance__wrapper {
29
29
  display: none;
30
30
 
@@ -27,3 +27,15 @@
27
27
  .gem-c-inverse-header--padding-top {
28
28
  padding-top: govuk-spacing(3);
29
29
  }
30
+
31
+ @include govuk-media-query($media-type: print) {
32
+ .gem-c-inverse-header {
33
+ background-color: unset;
34
+ border-bottom: 2pt solid $govuk-print-text-colour;
35
+
36
+ &,
37
+ & * {
38
+ color: $govuk-print-text-colour !important; // stylelint-disable-line declaration-no-important
39
+ }
40
+ }
41
+ }
@@ -20,3 +20,11 @@
20
20
  // the right column.
21
21
  margin-bottom: 20px;
22
22
  }
23
+
24
+ // stylelint-disable declaration-no-important
25
+ @include govuk-media-query($media-type: print) {
26
+ .gem-c-layout-footer {
27
+ font-size: 12pt !important;
28
+ }
29
+ }
30
+ // stylelint-enable declaration-no-important
@@ -13,7 +13,7 @@
13
13
  background-color: #263135;
14
14
  }
15
15
 
16
- .js-enabled .gem-c-layout-for-public__global-banner-wrapper {
16
+ .govuk-frontend-supported .gem-c-layout-for-public__global-banner-wrapper {
17
17
  margin-top: - govuk-spacing(2);
18
18
  min-height: govuk-spacing(2);
19
19
  position: relative;
@@ -167,3 +167,25 @@
167
167
  .gem-c-header__nav {
168
168
  clear: both;
169
169
  }
170
+
171
+ @include govuk-media-query($media-type: print) {
172
+ .gem-c-layout-header .govuk-header__container {
173
+ border-color: $govuk-print-text-colour;
174
+
175
+ .govuk-grid-column-two-thirds {
176
+ width: auto;
177
+ float: none;
178
+ }
179
+
180
+ .govuk-header__logo {
181
+ margin: 0;
182
+ padding: 0 2mm 2mm 0;
183
+ }
184
+
185
+ .gem-c-header__product-name,
186
+ .gem-c-environment-tag {
187
+ color: $govuk-print-text-colour;
188
+ background-color: unset;
189
+ }
190
+ }
191
+ }
@@ -913,12 +913,6 @@ $after-button-padding-left: govuk-spacing(4);
913
913
  font-size: 24px;
914
914
  }
915
915
 
916
- @include govuk-media-query($media-type: print) {
917
- .gem-c-layout-super-navigation-header__content {
918
- display: none;
919
- }
920
- }
921
-
922
916
  // Ensure the total space to the left of the logo for mobile screen sizes is 24px (margin is 15px)
923
917
  @include govuk-media-query($until: tablet) {
924
918
  .gem-c-layout-super-navigation-header__header-logo--large-navbar {
@@ -989,3 +983,15 @@ $after-button-padding-left: govuk-spacing(4);
989
983
  font-size: govuk-px-to-rem(24px);
990
984
  }
991
985
  }
986
+
987
+ @include govuk-media-query($media-type: print) {
988
+ .gem-c-layout-super-navigation-header {
989
+ border-top: 1pt solid $govuk-print-text-colour;
990
+ margin: 0;
991
+ background-color: none;
992
+ }
993
+
994
+ .gem-c-layout-super-navigation-header__header-logo {
995
+ padding: 10px 0 !important; // stylelint-disable-line declaration-no-important
996
+ }
997
+ }
@@ -87,10 +87,10 @@
87
87
  display: none;
88
88
  }
89
89
 
90
- .js-enabled .gem-c-metadata__toggle-wrap {
90
+ .govuk-frontend-supported .gem-c-metadata__toggle-wrap {
91
91
  display: block;
92
92
  }
93
93
 
94
- .js-enabled .gem-c-metadata__toggle-items.js-hidden {
94
+ .govuk-frontend-supported .gem-c-metadata__toggle-items.js-hidden {
95
95
  display: none;
96
96
  }
@@ -123,7 +123,7 @@
123
123
  padding-left: 33px;
124
124
  }
125
125
 
126
- .js-enabled {
126
+ .govuk-frontend-supported {
127
127
  .gem-c-option-select__heading {
128
128
  position: relative;
129
129
  padding: 10px 8px 5px 43px;
@@ -11,7 +11,7 @@ $gem-c-print-link-background-height: 18px;
11
11
  display: block;
12
12
  }
13
13
 
14
- .js-enabled {
14
+ .govuk-frontend-supported {
15
15
  .gem-c-print-link {
16
16
  display: block;
17
17
  }
@@ -63,7 +63,7 @@
63
63
  @include govuk-link-common;
64
64
  @include govuk-link-style-no-visited-state;
65
65
 
66
- .js-enabled & {
66
+ .govuk-frontend-supported & {
67
67
  display: inline-block;
68
68
  }
69
69
  }
@@ -105,7 +105,7 @@
105
105
  }
106
106
 
107
107
  &.js-hidden {
108
- .js-enabled & {
108
+ .govuk-frontend-supported & {
109
109
  display: none;
110
110
  }
111
111
  }
@@ -73,7 +73,7 @@
73
73
  }
74
74
  }
75
75
 
76
- .js-enabled {
76
+ .govuk-frontend-supported {
77
77
  .gem-c-reorderable-list__item {
78
78
  @include govuk-media-query($from: desktop) {
79
79
  cursor: move;
@@ -37,7 +37,7 @@ $large-input-size: 50px;
37
37
  @include govuk-font($size: 19, $line-height: $input-size);
38
38
  }
39
39
 
40
- .js-enabled & {
40
+ .govuk-frontend-supported & {
41
41
  position: absolute;
42
42
  left: 2px;
43
43
  top: 2px;
@@ -50,7 +50,7 @@ $large-input-size: 50px;
50
50
 
51
51
  // match label colour with the label component colour
52
52
  // when javascript is enabled and inline_label option is set to false
53
- .js-enabled .gem-c-search--separate-label & {
53
+ .govuk-frontend-supported .gem-c-search--separate-label & {
54
54
  color: $govuk-text-colour;
55
55
  }
56
56
  }
@@ -76,7 +76,7 @@ $large-input-size: 50px;
76
76
  -webkit-appearance: none;
77
77
  -moz-appearance: none;
78
78
  appearance: none;
79
- @include govuk-font($size: 19, $line-height: (28 / 19));
79
+ @include govuk-font($size: 19, $line-height: calc(28 / 19));
80
80
 
81
81
  @include govuk-media-query($from: tablet) {
82
82
  height: govuk-em(40, 19);
@@ -190,7 +190,7 @@ $large-input-size: 50px;
190
190
  }
191
191
  }
192
192
 
193
- .js-enabled & {
193
+ .govuk-frontend-supported & {
194
194
  .gem-c-search__label {
195
195
  color: $govuk-secondary-text-colour;
196
196
  }
@@ -246,7 +246,7 @@ $large-input-size: 50px;
246
246
  }
247
247
  }
248
248
 
249
- .js-enabled & {
249
+ .govuk-frontend-supported & {
250
250
  .gem-c-search__label {
251
251
  color: $govuk-secondary-text-colour;
252
252
  }
@@ -313,7 +313,7 @@ $large-input-size: 50px;
313
313
  }
314
314
 
315
315
  @include govuk-media-query($until: tablet) {
316
- .js-enabled & {
316
+ .govuk-frontend-supported & {
317
317
  display: block;
318
318
  }
319
319
  }
@@ -31,7 +31,7 @@
31
31
  margin-right: govuk-spacing(1);
32
32
  }
33
33
 
34
- .js-enabled .gem-c-single-page-notification-button.js-personalisation-enhancement {
34
+ .govuk-frontend-supported .gem-c-single-page-notification-button.js-personalisation-enhancement {
35
35
  opacity: 0;
36
36
 
37
37
  &.gem-c-single-page-notification-button--visible {
@@ -22,7 +22,8 @@
22
22
  @include govuk-media-query($media-type: print) {
23
23
  .gem-c-step-nav-header {
24
24
  padding: 0 0 govuk-spacing(4) 0;
25
- background: none;
25
+ background: unset;
26
+ border-color: $govuk-print-text-colour;
26
27
  }
27
28
 
28
29
  .gem-c-step-nav-header__part-of {
@@ -31,5 +32,17 @@
31
32
 
32
33
  .gem-c-step-nav-header__title {
33
34
  @include govuk-font(24, $weight: bold);
35
+
36
+ &,
37
+ &:link,
38
+ &:link:visited {
39
+ color: $govuk-print-text-colour;
40
+ }
41
+
42
+ &::after {
43
+ display: block;
44
+ margin: 1mm auto;
45
+ font-size: 12pt !important; // stylelint-disable-line declaration-no-important
46
+ }
34
47
  }
35
48
  }
@@ -44,3 +44,27 @@
44
44
  .gem-c-step-nav-related__link-item {
45
45
  margin-top: govuk-spacing(3);
46
46
  }
47
+
48
+ // stylelint-disable declaration-no-important
49
+ @include govuk-media-query($media-type: print) {
50
+ .gem-c-step-nav-related {
51
+ background: unset;
52
+ border-color: $govuk-print-text-colour;
53
+ }
54
+
55
+ .gem-c-step-nav-related__heading,
56
+ .gem-c-step-nav-related__link-item {
57
+ .govuk-link,
58
+ .govuk-link:link,
59
+ .govuk-link:link:visited {
60
+ color: $govuk-print-text-colour !important;
61
+
62
+ &::after {
63
+ display: block;
64
+ margin: 1mm auto;
65
+ font-size: 12pt !important;
66
+ }
67
+ }
68
+ }
69
+ }
70
+ // stylelint-enable declaration-no-important
@@ -17,12 +17,12 @@ $top-border: solid 1px govuk-colour("mid-grey");
17
17
 
18
18
  @mixin step-nav-line-position {
19
19
  left: 0;
20
- margin-left: govuk-em(($number-circle-size / 2) - ($stroke-width / 2), 16);
20
+ margin-left: govuk-em(calc($number-circle-size / 2) - calc($stroke-width / 2), 16);
21
21
  }
22
22
 
23
23
  @mixin step-nav-line-position-large {
24
24
  left: 0;
25
- margin-left: govuk-em(($number-circle-size-large / 2) - ($stroke-width / 2), 16);
25
+ margin-left: govuk-em(calc($number-circle-size-large / 2) - calc($stroke-width / 2), 16);
26
26
  }
27
27
 
28
28
  // custom mixin as govuk-font does undesirable things at different breakpoints
@@ -56,7 +56,7 @@ $top-border: solid 1px govuk-colour("mid-grey");
56
56
  }
57
57
  }
58
58
 
59
- .js-enabled &.js-hidden {
59
+ .govuk-frontend-supported &.js-hidden {
60
60
  display: none;
61
61
  }
62
62
  }
@@ -385,7 +385,7 @@ $top-border: solid 1px govuk-colour("mid-grey");
385
385
  padding-top: govuk-spacing(2);
386
386
  }
387
387
 
388
- .js-enabled & {
388
+ .govuk-frontend-supported & {
389
389
  padding: 0;
390
390
  }
391
391
 
@@ -425,7 +425,7 @@ $top-border: solid 1px govuk-colour("mid-grey");
425
425
  @include step-nav-font(16, $tablet-size: 19);
426
426
  }
427
427
 
428
- .js-enabled &.js-hidden {
428
+ .govuk-frontend-supported &.js-hidden {
429
429
  display: none;
430
430
  }
431
431
  }
@@ -63,7 +63,7 @@
63
63
  background-color: $gem-secondary-button-background-colour;
64
64
  @include govuk-font(19, $weight: bold);
65
65
 
66
- .js-enabled & {
66
+ .govuk-frontend-supported & {
67
67
  display: inline-block;
68
68
  }
69
69
 
@@ -98,13 +98,13 @@
98
98
  margin-bottom: govuk-spacing(3);
99
99
  background: govuk-colour("light-grey");
100
100
 
101
- .js-enabled &.js-hidden {
101
+ .govuk-frontend-supported &.js-hidden {
102
102
  display: none;
103
103
  }
104
104
  }
105
105
 
106
106
  .gem-c-subscription-links__feed-hidden-description {
107
- .js-enabled & {
107
+ .govuk-frontend-supported & {
108
108
  @include govuk-visually-hidden;
109
109
  }
110
110
  }
@@ -125,3 +125,35 @@ $table-row-even-background-colour: govuk-colour("light-grey");
125
125
  border: 0;
126
126
  }
127
127
  }
128
+
129
+ // stylelint-disable declaration-no-important
130
+ @include govuk-media-query($media-type: print) {
131
+ .govuk-table--sortable {
132
+ outline: none;
133
+
134
+ * {
135
+ color: $govuk-print-text-colour !important;
136
+ background-color: initial !important;
137
+ }
138
+
139
+ .govuk-table__header,
140
+ .govuk-table__cell {
141
+ border-bottom: 1px solid $govuk-print-text-colour !important;
142
+ }
143
+
144
+ .govuk-table__header {
145
+ font-weight: 700;
146
+ border-right: 0;
147
+ }
148
+
149
+ .app-table__sort-link {
150
+ padding: 0 !important;
151
+
152
+ &::before,
153
+ &::after {
154
+ display: none !important;
155
+ }
156
+ }
157
+ }
158
+ }
159
+ // stylelint-enable declaration-no-important
@@ -1,7 +1,7 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
  @import "govuk/components/tabs/tabs";
3
3
 
4
- .js-enabled {
4
+ .govuk-frontend-supported {
5
5
  .gem-c-tabs__panel--no-border {
6
6
  padding-right: 0;
7
7
  padding-left: 0;
@@ -24,10 +24,42 @@ li.govuk-tabs__list-item { // stylelint-disable-line selector-no-qualifying-type
24
24
  margin-left: govuk-spacing(5);
25
25
  }
26
26
 
27
- .js-enabled { // stylelint-disable-line no-duplicate-selectors
27
+ .govuk-frontend-supported { // stylelint-disable-line no-duplicate-selectors
28
28
  @include govuk-media-query($from: tablet) {
29
29
  ul.govuk-tabs__list { // stylelint-disable-line selector-no-qualifying-type
30
30
  margin-bottom: 0;
31
31
  }
32
32
  }
33
33
  }
34
+
35
+ @include govuk-media-query($media-type: print) {
36
+ .govuk-tabs__title {
37
+ display: block !important; // stylelint-disable-line declaration-no-important
38
+ }
39
+
40
+ .govuk-tabs__tab.govuk-tabs__tab {
41
+ text-decoration: none;
42
+ }
43
+
44
+ .govuk-tabs__list.govuk-tabs__list {
45
+ border: 0;
46
+ }
47
+
48
+ .govuk-tabs__list-item.govuk-tabs__list-item {
49
+ all: unset;
50
+ display: block;
51
+
52
+ &::before {
53
+ content: "—";
54
+ padding-right: 2mm;
55
+ margin: 0;
56
+ }
57
+ }
58
+
59
+ .govuk-tabs__panel.govuk-tabs__panel {
60
+ border: 0;
61
+ padding: 0;
62
+ margin: 0.75cm 0;
63
+ display: block;
64
+ }
65
+ }
@@ -31,6 +31,10 @@
31
31
  padding-top: 0;
32
32
  }
33
33
 
34
+ @include govuk-media-query($media-type: print) {
35
+ padding-left: 0;
36
+ }
37
+
34
38
  .attachment-thumb {
35
39
  position: relative;
36
40
  float: left;
@@ -52,6 +56,10 @@
52
56
  fill: govuk-colour("mid-grey");
53
57
  stroke: govuk-colour("mid-grey");
54
58
  }
59
+
60
+ @include govuk-media-query($media-type: print) {
61
+ margin-left: 0;
62
+ }
55
63
  }
56
64
 
57
65
  .attachment-details {
@@ -109,6 +117,23 @@
109
117
  .js-hidden {
110
118
  display: none;
111
119
  }
120
+
121
+ // stylelint-disable declaration-no-important
122
+ @include govuk-media-query($media-type: print) {
123
+ a,
124
+ a:link,
125
+ a:link:visited {
126
+ color: $govuk-print-text-colour !important;
127
+
128
+ &::after {
129
+ display: block;
130
+ margin: 1mm auto;
131
+ font-weight: normal;
132
+ font-size: 12pt !important;
133
+ }
134
+ }
135
+ }
136
+ // stylelint-enable declaration-no-important
112
137
  }
113
138
  }
114
139
 
@@ -24,4 +24,21 @@
24
24
  .govuk-button--start {
25
25
  @extend .govuk-button--start;
26
26
  }
27
+
28
+ @include govuk-media-query($media-type: print) {
29
+ .gem-c-button {
30
+ box-shadow: none;
31
+ border: 2pt solid $govuk-print-text-colour;
32
+
33
+ &,
34
+ & * {
35
+ background-color: unset;
36
+ color: $govuk-print-text-colour !important; // stylelint-disable-line declaration-no-important
37
+ }
38
+
39
+ &::after {
40
+ display: none;
41
+ }
42
+ }
43
+ }
27
44
  }
@@ -43,5 +43,16 @@ $highlight-answer-color: govuk-colour("white");
43
43
  }
44
44
  }
45
45
  }
46
+
47
+ // stylelint-disable declaration-no-important
48
+ @include govuk-media-query($media-type: print) {
49
+ background-color: unset;
50
+
51
+ &,
52
+ & * {
53
+ color: $govuk-print-text-colour !important;
54
+ }
55
+ }
56
+ // stylelint-enable declaration-no-important
46
57
  }
47
58
  }
@@ -25,3 +25,9 @@
25
25
  height: 100%;
26
26
  border: 0;
27
27
  }
28
+
29
+ @include govuk-media-query($media-type: print) {
30
+ .gem-c-govspeak__youtube-video {
31
+ break-inside: avoid;
32
+ }
33
+ }
@@ -48,7 +48,7 @@
48
48
  /// }
49
49
  ///
50
50
  @mixin columns($items, $columns, $selector: "*", $flow: row) {
51
- $rows: ceil($items / $columns);
51
+ $rows: ceil(calc($items / $columns));
52
52
 
53
53
  display: -ms-grid;
54
54
  display: grid;
@@ -75,6 +75,8 @@
75
75
  <%= render "govuk_publishing_components/components/attachment/thumbnail_spreadsheet" %>
76
76
  <% elsif attachment.pdf? %>
77
77
  <%= render "govuk_publishing_components/components/attachment/thumbnail_pdf" %>
78
+ <% elsif attachment.external? %>
79
+ <%= render "govuk_publishing_components/components/attachment/thumbnail_external" %>
78
80
  <% else %>
79
81
  <%= render "govuk_publishing_components/components/attachment/thumbnail_generic" %>
80
82
  <% end %>