govuk_publishing_components 24.10.3 → 24.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +142 -104
- data/app/assets/javascripts/govuk_publishing_components/components/reorderable-list.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +2 -2
- data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +3 -0
- data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +0 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +50 -31
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +0 -35
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +0 -13
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +0 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +10 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +11 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +8 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +6 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_attachment.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_back-link.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_button.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_feedback.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-footer.scss +2 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-header.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_metadata.scss +2 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_search.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_share-links.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_skip-link.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_subscription-links.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_translation-nav.scss +2 -3
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -1
- data/app/views/govuk_publishing_components/components/_attachment.html.erb +4 -4
- data/app/views/govuk_publishing_components/components/_attachment_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_back_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_button.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_character_count.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_contents_list.html.erb +10 -3
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +16 -6
- data/app/views/govuk_publishing_components/components/_feedback.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +14 -14
- data/app/views/govuk_publishing_components/components/_image_card.html.erb +15 -2
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +8 -11
- data/app/views/govuk_publishing_components/components/_machine_readable_metadata.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +7 -7
- data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_organisation_logo.html.erb +13 -13
- data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +11 -7
- data/app/views/govuk_publishing_components/components/_print_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_search.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_skip_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +10 -10
- data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_tabs.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/feedback.yml +2 -0
- data/app/views/govuk_publishing_components/components/docs/government_navigation.yml +2 -0
- data/app/views/govuk_publishing_components/components/docs/inset_text.yml +2 -2
- data/app/views/govuk_publishing_components/components/docs/inverse_header.yml +18 -15
- data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +5 -5
- data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +4 -4
- data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +1 -1
- data/config/locales/ar.yml +153 -0
- data/config/locales/az.yml +153 -0
- data/config/locales/be.yml +153 -0
- data/config/locales/bg.yml +153 -0
- data/config/locales/bn.yml +153 -0
- data/config/locales/cs.yml +153 -0
- data/config/locales/cy.yml +146 -7
- data/config/locales/da.yml +153 -0
- data/config/locales/de.yml +153 -0
- data/config/locales/dr.yml +153 -0
- data/config/locales/el.yml +153 -0
- data/config/locales/en.yml +143 -110
- data/config/locales/es-419.yml +153 -0
- data/config/locales/es.yml +153 -0
- data/config/locales/et.yml +150 -0
- data/config/locales/fa.yml +153 -0
- data/config/locales/fi.yml +153 -0
- data/config/locales/fr.yml +150 -0
- data/config/locales/gd.yml +153 -0
- data/config/locales/gu.yml +153 -0
- data/config/locales/he.yml +153 -0
- data/config/locales/hi.yml +153 -0
- data/config/locales/hr.yml +153 -0
- data/config/locales/hu.yml +153 -0
- data/config/locales/hy.yml +153 -0
- data/config/locales/id.yml +153 -0
- data/config/locales/is.yml +153 -0
- data/config/locales/it.yml +153 -0
- data/config/locales/ja.yml +153 -0
- data/config/locales/ka.yml +153 -0
- data/config/locales/kk.yml +153 -0
- data/config/locales/ko.yml +153 -0
- data/config/locales/lt.yml +153 -0
- data/config/locales/lv.yml +153 -0
- data/config/locales/ms.yml +153 -0
- data/config/locales/mt.yml +153 -0
- data/config/locales/nl.yml +153 -0
- data/config/locales/no.yml +154 -1
- data/config/locales/pa-pk.yml +153 -0
- data/config/locales/pa.yml +153 -0
- data/config/locales/pl.yml +153 -0
- data/config/locales/ps.yml +153 -0
- data/config/locales/pt.yml +153 -0
- data/config/locales/ro.yml +153 -0
- data/config/locales/ru.yml +153 -0
- data/config/locales/si.yml +153 -0
- data/config/locales/sk.yml +153 -0
- data/config/locales/sl.yml +153 -0
- data/config/locales/so.yml +153 -0
- data/config/locales/sq.yml +153 -0
- data/config/locales/sr.yml +153 -0
- data/config/locales/sv.yml +153 -0
- data/config/locales/sw.yml +153 -0
- data/config/locales/ta.yml +153 -0
- data/config/locales/th.yml +153 -0
- data/config/locales/tk.yml +153 -0
- data/config/locales/tr.yml +153 -0
- data/config/locales/uk.yml +153 -0
- data/config/locales/ur.yml +153 -0
- data/config/locales/uz.yml +153 -0
- data/config/locales/vi.yml +153 -0
- data/config/locales/zh-hk.yml +153 -0
- data/config/locales/zh-tw.yml +153 -0
- data/config/locales/zh.yml +153 -0
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb +1 -2
- data/lib/govuk_publishing_components/presenters/content_item.rb +5 -3
- data/lib/govuk_publishing_components/presenters/contents_list_helper.rb +0 -3
- data/lib/govuk_publishing_components/presenters/machine_readable/page.rb +4 -0
- data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +1 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +7 -16
- data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +4 -15
- data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +3 -3
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +40 -22
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +6 -6
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +15 -5
- data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/details/_index.scss +5 -1
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +13 -14
- data/node_modules/govuk-frontend/govuk/components/file-upload/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +14 -19
- data/node_modules/govuk-frontend/govuk/components/header/_index.scss +39 -21
- data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +1 -1
- data/node_modules/govuk-frontend/govuk/components/radios/macro-options.json +3 -3
- data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +1 -1
- data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +1 -6
- data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +10 -0
- data/node_modules/govuk-frontend/govuk/core/_links.scss +8 -0
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss +153 -38
- data/node_modules/govuk-frontend/govuk/settings/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_links.scss +62 -0
- data/node_modules/govuk-frontend/package.json +1 -1
- metadata +9 -7
@@ -32,10 +32,6 @@
|
|
32
32
|
.gem-c-action-link__link {
|
33
33
|
color: inherit;
|
34
34
|
|
35
|
-
&:hover {
|
36
|
-
text-decoration: underline;
|
37
|
-
}
|
38
|
-
|
39
35
|
&:focus {
|
40
36
|
text-decoration: none;
|
41
37
|
color: $govuk-focus-text-colour;
|
@@ -106,10 +102,6 @@
|
|
106
102
|
background-size: 25px auto;
|
107
103
|
background-position: 0 2px;
|
108
104
|
}
|
109
|
-
|
110
|
-
.gem-c-action-link__link {
|
111
|
-
text-decoration: none;
|
112
|
-
}
|
113
105
|
}
|
114
106
|
|
115
107
|
.gem-c-action-link--simple-light {
|
@@ -122,10 +114,6 @@
|
|
122
114
|
background-size: 25px auto;
|
123
115
|
background-position: 0 2px;
|
124
116
|
}
|
125
|
-
|
126
|
-
.gem-c-action-link__link {
|
127
|
-
text-decoration: none;
|
128
|
-
}
|
129
117
|
}
|
130
118
|
|
131
119
|
.gem-c-action-link--dark-icon {
|
@@ -150,10 +138,6 @@
|
|
150
138
|
background-size: 25px auto;
|
151
139
|
background-position: 0 2px;
|
152
140
|
}
|
153
|
-
|
154
|
-
.gem-c-action-link__link {
|
155
|
-
text-decoration: none;
|
156
|
-
}
|
157
141
|
}
|
158
142
|
|
159
143
|
.gem-c-action-link--transparent-icon {
|
@@ -177,25 +161,6 @@
|
|
177
161
|
.gem-c-action-link--light-text {
|
178
162
|
color: govuk-colour("white");
|
179
163
|
|
180
|
-
.gem-c-action-link__link,
|
181
|
-
.gem-c-action-link__subtext-link {
|
182
|
-
text-decoration: underline;
|
183
|
-
|
184
|
-
&:link,
|
185
|
-
&:visited {
|
186
|
-
color: govuk-colour("white");
|
187
|
-
}
|
188
|
-
|
189
|
-
&:hover {
|
190
|
-
color: $gem-hover-dark-background;
|
191
|
-
}
|
192
|
-
|
193
|
-
&:focus {
|
194
|
-
text-decoration: none;
|
195
|
-
color: $govuk-focus-text-colour;
|
196
|
-
}
|
197
|
-
}
|
198
|
-
|
199
164
|
.gem-c-action-link__subtext {
|
200
165
|
&:before {
|
201
166
|
border-color: govuk-colour("white");
|
@@ -25,19 +25,6 @@
|
|
25
25
|
list-style-type: none;
|
26
26
|
}
|
27
27
|
|
28
|
-
.gem-c-contents-list--no-underline {
|
29
|
-
.gem-c-contents-list__link {
|
30
|
-
text-decoration: none;
|
31
|
-
|
32
|
-
&:hover,
|
33
|
-
&:active {
|
34
|
-
text-decoration: underline;
|
35
|
-
}
|
36
|
-
|
37
|
-
@include govuk-template-link-focus-override;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
28
|
.gem-c-contents-list__link {
|
42
29
|
.gem-c-contents-list__list-item--parent > & {
|
43
30
|
font-weight: bold;
|
@@ -7,10 +7,6 @@
|
|
7
7
|
box-sizing: border-box;
|
8
8
|
}
|
9
9
|
|
10
|
-
.gem-c-inverse-header a {
|
11
|
-
color: govuk-colour("white");
|
12
|
-
}
|
13
|
-
|
14
10
|
.gem-c-inverse-header .gem-c-inverse-header__supplement,
|
15
11
|
.gem-c-inverse-header .publication-header__last-changed {
|
16
12
|
// This publication-header class is injected on publication pages, really
|
@@ -1,12 +1,14 @@
|
|
1
1
|
// Default logo corresponds with the "medium stacked" Whitehall equivalent
|
2
2
|
.gem-c-organisation-logo {
|
3
3
|
font-size: 13px;
|
4
|
-
line-height: (15 / 13);
|
5
4
|
font-weight: 400;
|
5
|
+
line-height: 1.35;
|
6
|
+
// When this is a heading the margin needs to be set to stop it from
|
7
|
+
// inheriting the browser's default margin:
|
8
|
+
margin: 0;
|
6
9
|
|
7
10
|
@include govuk-media-query($from: tablet) {
|
8
11
|
font-size: 18px;
|
9
|
-
line-height: 20px;
|
10
12
|
}
|
11
13
|
}
|
12
14
|
|
@@ -62,7 +64,12 @@
|
|
62
64
|
font-family: "HelveticaNeue", "Helvetica Neue", "Arial", "Helvetica", sans-serif;
|
63
65
|
|
64
66
|
&:hover {
|
65
|
-
|
67
|
+
color: $govuk-link-hover-colour;
|
68
|
+
}
|
69
|
+
|
70
|
+
&:active {
|
71
|
+
color: govuk-colour("black");
|
72
|
+
@include govuk-link-hover-decoration;
|
66
73
|
}
|
67
74
|
|
68
75
|
&:focus {
|
@@ -31,6 +31,16 @@
|
|
31
31
|
&:hover,
|
32
32
|
&:active {
|
33
33
|
background-color: govuk-colour("light-grey", $legacy: "grey-4");
|
34
|
+
|
35
|
+
// Add govuk-link hover decoration to title if no label present
|
36
|
+
.gem-c-pagination__link-text--decorated {
|
37
|
+
@include govuk-link-decoration;
|
38
|
+
}
|
39
|
+
|
40
|
+
.gem-c-pagination__link-label,
|
41
|
+
.gem-c-pagination__link-text--decorated {
|
42
|
+
@include govuk-link-hover-decoration;
|
43
|
+
}
|
34
44
|
}
|
35
45
|
|
36
46
|
&:focus {
|
@@ -73,8 +83,8 @@
|
|
73
83
|
.gem-c-pagination__link-label {
|
74
84
|
display: inline-block;
|
75
85
|
margin-top: .1em;
|
76
|
-
text-decoration: underline;
|
77
86
|
margin-left: govuk-spacing(5);
|
87
|
+
@include govuk-link-decoration;
|
78
88
|
|
79
89
|
@include govuk-media-query($from: tablet) {
|
80
90
|
margin-left: govuk-spacing(6);
|
@@ -20,6 +20,7 @@ $gem-c-print-link-background-height: 18px;
|
|
20
20
|
background: image-url("govuk_publishing_components/icon-print.png") no-repeat govuk-spacing(2) 50%;
|
21
21
|
background-size: $gem-c-print-link-background-width $gem-c-print-link-background-height;
|
22
22
|
padding: govuk-spacing(2) govuk-spacing(2) govuk-spacing(2) (govuk-spacing(4) + $gem-c-print-link-background-width);
|
23
|
+
text-decoration: none;
|
23
24
|
|
24
25
|
@include govuk-device-pixel-ratio($ratio: 2) {
|
25
26
|
background-image: image-url("govuk_publishing_components/icon-print-2x.png");
|
@@ -32,7 +33,6 @@ $gem-c-print-link-background-height: 18px;
|
|
32
33
|
|
33
34
|
.gem-c-print-link__link {
|
34
35
|
box-shadow: inset 0 0 0 1px $govuk-border-colour;
|
35
|
-
text-decoration: none;
|
36
36
|
|
37
37
|
&:focus {
|
38
38
|
border: 0;
|
@@ -116,7 +116,8 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
116
116
|
padding: 0 0 govuk-spacing(1);
|
117
117
|
|
118
118
|
&:hover .gem-c-step-nav__button-text {
|
119
|
-
|
119
|
+
@include govuk-link-decoration;
|
120
|
+
@include govuk-link-hover-decoration;
|
120
121
|
}
|
121
122
|
|
122
123
|
.gem-c-step-nav--large & {
|
@@ -125,6 +126,10 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
125
126
|
|
126
127
|
&:focus {
|
127
128
|
@include step-nav-chevron-focus-state;
|
129
|
+
|
130
|
+
.gem-c-step-nav__button-text {
|
131
|
+
text-decoration: none;
|
132
|
+
}
|
128
133
|
}
|
129
134
|
}
|
130
135
|
|
@@ -338,7 +343,8 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
338
343
|
}
|
339
344
|
|
340
345
|
.gem-c-step-nav__button-text {
|
341
|
-
|
346
|
+
@include govuk-link-decoration;
|
347
|
+
@include govuk-link-hover-decoration;
|
342
348
|
}
|
343
349
|
}
|
344
350
|
}
|
@@ -45,7 +45,6 @@
|
|
45
45
|
|
46
46
|
.gem-c-subscription-links__item {
|
47
47
|
display: inline-block;
|
48
|
-
text-decoration: none;
|
49
48
|
background-repeat: no-repeat;
|
50
49
|
background-position: 0 20%;
|
51
50
|
|
@@ -55,6 +54,7 @@
|
|
55
54
|
}
|
56
55
|
|
57
56
|
.gem-c-subscription-links__item--button {
|
57
|
+
cursor: pointer;
|
58
58
|
display: none;
|
59
59
|
font-size: inherit;
|
60
60
|
font-weight: inherit;
|
@@ -71,6 +71,10 @@
|
|
71
71
|
color: $govuk-link-colour;
|
72
72
|
}
|
73
73
|
|
74
|
+
&:hover {
|
75
|
+
color: $govuk-link-hover-colour;
|
76
|
+
}
|
77
|
+
|
74
78
|
&:visited,
|
75
79
|
&:active,
|
76
80
|
&:focus {
|
@@ -106,7 +110,7 @@
|
|
106
110
|
}
|
107
111
|
|
108
112
|
.gem-c-subscription-links__icon {
|
109
|
-
margin-right:
|
113
|
+
margin-right: govuk-spacing(1);
|
110
114
|
color: govuk-colour("black");
|
111
115
|
}
|
112
116
|
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/government-frontend/blob/7a0b068a0faa1da07f58acf0b1d3a0aa3e1daf56/app/assets/stylesheets/print.scss#L2
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/govuk-account-manager-prototype/blob/7858b55afcddc2f855d909abd051838d95f21f13/app/assets/stylesheets/print.scss#L2
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/government-frontend/blob/7a0b068a0faa1da07f58acf0b1d3a0aa3e1daf56/app/assets/stylesheets/print.scss#L6
|
data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-footer.scss
CHANGED
@@ -1,6 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
.govuk-footer__section {
|
4
|
-
display: none;
|
5
|
-
}
|
6
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/govuk-account-manager-prototype/blob/7858b55afcddc2f855d909abd051838d95f21f13/app/assets/stylesheets/print.scss#L5
|
data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-header.scss
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/govuk-account-manager-prototype/blob/7858b55afcddc2f855d909abd051838d95f21f13/app/assets/stylesheets/print.scss#L6
|
@@ -1,6 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
.gem-c-metadata__toggle-wrap {
|
4
|
-
display: none;
|
5
|
-
}
|
6
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/manuals-frontend/blob/466b4c7a6507a3d76818e26612f174616f5cdf94/app/assets/stylesheets/print.scss#L15
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/govuk-account-manager-prototype/blob/7858b55afcddc2f855d909abd051838d95f21f13/app/assets/stylesheets/print.scss#L7
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/collections/blob/fc9db4ef6d87ad52d0ac795d1dd05d5fa116dde1/app/assets/stylesheets/print.scss#L9
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/govuk-account-manager-prototype/blob/7858b55afcddc2f855d909abd051838d95f21f13/app/assets/stylesheets/print.scss#L8
|
data/app/assets/stylesheets/govuk_publishing_components/components/print/_subscription-links.scss
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/frontend/blob/34e84c7d6dc22bd4b06ce4c18a3d00b29fdcee83/app/assets/stylesheets/print.scss#L12
|
data/app/assets/stylesheets/govuk_publishing_components/components/print/_translation-nav.scss
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
// Left this as an empty file as opposed to deleting it because it is @imported in application print stylesheets for example here:
|
2
|
+
// https://github.com/alphagov/government-frontend/blob/7a0b068a0faa1da07f58acf0b1d3a0aa3e1daf56/app/assets/stylesheets/print.scss#L16
|
@@ -32,6 +32,7 @@
|
|
32
32
|
|
33
33
|
link_classes = %w(govuk-link gem-c-action-link__link)
|
34
34
|
link_classes << shared_helper.classes if classes
|
35
|
+
link_classes << "govuk-link--inverse" if light_text
|
35
36
|
%>
|
36
37
|
<% if text.present? %>
|
37
38
|
<div class="<%= css_classes.join(' ') %>">
|
@@ -55,7 +56,7 @@
|
|
55
56
|
<span class="gem-c-action-link__subtext-wrapper">
|
56
57
|
<% if subtext_href %>
|
57
58
|
<%= content_tag(:span, subtext, class: "gem-c-action-link__subtext") do %>
|
58
|
-
<%= link_to subtext, subtext_href, class:
|
59
|
+
<%= link_to subtext, subtext_href, class: link_classes, data: data %>
|
59
60
|
<% end %>
|
60
61
|
<% else %>
|
61
62
|
<%= content_tag(:span, subtext, class: "gem-c-action-link__subtext") %>
|
@@ -27,12 +27,12 @@
|
|
27
27
|
|
28
28
|
if attachment.number_of_pages
|
29
29
|
attributes << tag.span(
|
30
|
-
|
30
|
+
t("components.attachment.page", count: attachment.number_of_pages),
|
31
31
|
class: "gem-c-attachment__attribute",
|
32
32
|
)
|
33
33
|
end
|
34
34
|
%>
|
35
|
-
<%= tag.section class: "gem-c-attachment" do %>
|
35
|
+
<%= tag.section class: "gem-c-attachment govuk-!-display-none-print" do %>
|
36
36
|
<%= tag.div class: "gem-c-attachment__thumbnail" do %>
|
37
37
|
<%= link_to attachment.url,
|
38
38
|
class: "govuk-link",
|
@@ -59,7 +59,7 @@
|
|
59
59
|
<% end %>
|
60
60
|
|
61
61
|
<% if attachment.reference.present? %>
|
62
|
-
<%= tag.p "
|
62
|
+
<%= tag.p t("components.attachment.reference", reference: attachment.reference), class: "gem-c-attachment__metadata gem-c-attachment__metadata--compact" %>
|
63
63
|
<% end %>
|
64
64
|
|
65
65
|
<% if attachment.unnumbered_reference.present? %>
|
@@ -71,7 +71,7 @@
|
|
71
71
|
<% end %>
|
72
72
|
|
73
73
|
<% if attachment.is_official_document && !hide_order_copy_link %>
|
74
|
-
<%= tag.p link_to("
|
74
|
+
<%= tag.p link_to(t("components.attachment.order_a_copy"), "https://www.gov.uk/guidance/how-to-buy-printed-copies-of-official-documents", class: "govuk-link govuk-link--no-visited-state", target: "_blank"),
|
75
75
|
class: "gem-c-attachment__metadata" %>
|
76
76
|
<% end %>
|
77
77
|
|