govuk_publishing_components 24.9.4 → 24.11.0
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/pii.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +6 -248
- data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +2 -3
- data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +1 -0
- 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/show-password.js +12 -0
- 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 +18 -0
- data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +0 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +34 -34
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +15 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +4 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +20 -20
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +27 -24
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +19 -16
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +30 -27
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +26 -21
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +19 -16
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_summary.scss +21 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss +2 -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/_attachment.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/_feedback.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +7 -7
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_machine_readable_metadata.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +9 -8
- data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_phase_banner.html.erb +1 -5
- data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_print_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_radio.html.erb +6 -11
- data/app/views/govuk_publishing_components/components/_search.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_show_password.html.erb +2 -0
- 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 +2 -2
- data/app/views/govuk_publishing_components/components/_success_alert.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/phase_banner.yml +2 -2
- data/app/views/govuk_publishing_components/components/docs/show_password.yml +10 -0
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +2 -2
- 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 +2 -2
- data/config/locales/ar.yml +123 -0
- data/config/locales/az.yml +123 -0
- data/config/locales/be.yml +123 -0
- data/config/locales/bg.yml +123 -0
- data/config/locales/bn.yml +123 -0
- data/config/locales/cs.yml +123 -0
- data/config/locales/cy.yml +115 -6
- data/config/locales/da.yml +123 -0
- data/config/locales/de.yml +123 -0
- data/config/locales/dr.yml +123 -0
- data/config/locales/el.yml +123 -0
- data/config/locales/en.yml +111 -103
- data/config/locales/es-419.yml +123 -0
- data/config/locales/es.yml +123 -0
- data/config/locales/et.yml +120 -0
- data/config/locales/fa.yml +123 -0
- data/config/locales/fi.yml +123 -0
- data/config/locales/fr.yml +120 -0
- data/config/locales/gd.yml +123 -0
- data/config/locales/gu.yml +123 -0
- data/config/locales/he.yml +123 -0
- data/config/locales/hi.yml +123 -0
- data/config/locales/hr.yml +123 -0
- data/config/locales/hu.yml +123 -0
- data/config/locales/hy.yml +123 -0
- data/config/locales/id.yml +123 -0
- data/config/locales/is.yml +123 -0
- data/config/locales/it.yml +123 -0
- data/config/locales/ja.yml +123 -0
- data/config/locales/ka.yml +123 -0
- data/config/locales/kk.yml +123 -0
- data/config/locales/ko.yml +123 -0
- data/config/locales/lt.yml +123 -0
- data/config/locales/lv.yml +123 -0
- data/config/locales/ms.yml +123 -0
- data/config/locales/mt.yml +123 -0
- data/config/locales/nl.yml +123 -0
- data/config/locales/no.yml +124 -1
- data/config/locales/pa-pk.yml +123 -0
- data/config/locales/pa.yml +123 -0
- data/config/locales/pl.yml +123 -0
- data/config/locales/ps.yml +123 -0
- data/config/locales/pt.yml +123 -0
- data/config/locales/ro.yml +123 -0
- data/config/locales/ru.yml +123 -0
- data/config/locales/si.yml +123 -0
- data/config/locales/sk.yml +123 -0
- data/config/locales/sl.yml +123 -0
- data/config/locales/so.yml +123 -0
- data/config/locales/sq.yml +123 -0
- data/config/locales/sr.yml +123 -0
- data/config/locales/sv.yml +123 -0
- data/config/locales/sw.yml +123 -0
- data/config/locales/ta.yml +123 -0
- data/config/locales/th.yml +123 -0
- data/config/locales/tk.yml +123 -0
- data/config/locales/tr.yml +123 -0
- data/config/locales/uk.yml +123 -0
- data/config/locales/ur.yml +123 -0
- data/config/locales/uz.yml +123 -0
- data/config/locales/vi.yml +123 -0
- data/config/locales/zh-hk.yml +123 -0
- data/config/locales/zh-tw.yml +123 -0
- data/config/locales/zh.yml +123 -0
- data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +5 -0
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb +1 -2
- data/lib/govuk_publishing_components/presenters/content_item.rb +4 -0
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +4 -0
- data/lib/govuk_publishing_components/presenters/machine_readable/page.rb +4 -0
- 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 +20 -4
- data/app/assets/javascripts/component_guide/visual-regression.js +0 -71
@@ -98,7 +98,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
98
98
|
event = new window.CustomEvent(eventName, params)
|
99
99
|
} else {
|
100
100
|
event = document.createEvent('CustomEvent')
|
101
|
-
event.initCustomEvent(eventName, params.bubbles, params.cancelable)
|
101
|
+
event.initCustomEvent(eventName, params.bubbles, params.cancelable, null)
|
102
102
|
}
|
103
103
|
|
104
104
|
element.dispatchEvent(event)
|
@@ -41,6 +41,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
41
41
|
this.wrapper.insertBefore(this.statusText, this.showHide.nextSibling)
|
42
42
|
|
43
43
|
this.showHide.addEventListener('click', this.$module.togglePassword)
|
44
|
+
this.moveDataAttributesToButton()
|
44
45
|
|
45
46
|
this.parentForm = this.input.form
|
46
47
|
var disableFormSubmitCheck = this.$module.getAttribute('data-disable-form-submit-check')
|
@@ -65,5 +66,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
65
66
|
this.input.setAttribute('type', 'password')
|
66
67
|
}
|
67
68
|
|
69
|
+
ShowPassword.prototype.moveDataAttributesToButton = function () {
|
70
|
+
var attrs = this.input.attributes
|
71
|
+
for (var i = attrs.length; i >= 0; i--) {
|
72
|
+
var attr = attrs[i]
|
73
|
+
if (attr && /^data-button/.test(attr.name)) {
|
74
|
+
this.showHide.setAttribute(attr.name.replace('-button', ''), attr.value)
|
75
|
+
this.input.removeAttribute(attr.name)
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
68
80
|
Modules.ShowPassword = ShowPassword
|
69
81
|
})(window.GOVUK.Modules)
|
@@ -74,7 +74,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
74
74
|
|
75
75
|
Gemstepnav.prototype.addShowHideAllButton = function () {
|
76
76
|
var showall = document.createElement('div')
|
77
|
-
showall.className = 'gem-c-step-nav__controls'
|
77
|
+
showall.className = 'gem-c-step-nav__controls govuk-!-display-none-print'
|
78
78
|
showall.innerHTML = '<button aria-expanded="false" class="gem-c-step-nav__button gem-c-step-nav__button--controls js-step-controls-button">' +
|
79
79
|
'<span class="gem-c-step-nav__button-text gem-c-step-nav__button-text--all js-step-controls-button-text">' + this.$module.actions.showAllText + '</span>' +
|
80
80
|
'<span class="gem-c-step-nav__chevron js-step-controls-button-icon">' + this.$module.downChevronSvg + '</span>' +
|
@@ -98,7 +98,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
98
98
|
var commaSpan = document.createElement('span')
|
99
99
|
var thisSectionSpan = document.createElement('span')
|
100
100
|
|
101
|
-
showHideSpan.className = 'gem-c-step-nav__toggle-link js-toggle-link'
|
101
|
+
showHideSpan.className = 'gem-c-step-nav__toggle-link js-toggle-link govuk-!-display-none-print'
|
102
102
|
showHideSpanText.className = 'gem-c-step-nav__button-text js-toggle-link-text'
|
103
103
|
showHideSpanIcon.className = 'gem-c-step-nav__chevron js-toggle-link-icon'
|
104
104
|
commaSpan.className = 'govuk-visually-hidden'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
(function (root) {
|
2
|
+
'use strict'
|
3
|
+
window.GOVUK = window.GOVUK || {}
|
4
|
+
|
5
|
+
window.GOVUK.triggerEvent = function (element, eventName) {
|
6
|
+
var params = { bubbles: true, cancelable: true }
|
7
|
+
var event
|
8
|
+
|
9
|
+
if (typeof window.CustomEvent === 'function') {
|
10
|
+
event = new window.CustomEvent(eventName, params)
|
11
|
+
} else {
|
12
|
+
event = document.createEvent('CustomEvent')
|
13
|
+
event.initCustomEvent(eventName, params.bubbles, params.cancelable, null)
|
14
|
+
}
|
15
|
+
|
16
|
+
element.dispatchEvent(event)
|
17
|
+
}
|
18
|
+
}(window))
|
@@ -4,22 +4,11 @@
|
|
4
4
|
@import "govuk_frontend_support";
|
5
5
|
|
6
6
|
@import "components/print/accordion";
|
7
|
-
@import "components/print/attachment";
|
8
|
-
@import "components/print/back-link";
|
9
7
|
@import "components/print/button";
|
10
8
|
@import "components/print/contents-list";
|
11
|
-
@import "components/print/feedback";
|
12
9
|
@import "components/print/govspeak-html-publication";
|
13
10
|
@import "components/print/govspeak";
|
14
|
-
@import "components/print/layout-header";
|
15
|
-
@import "components/print/layout-footer";
|
16
|
-
@import "components/print/metadata";
|
17
|
-
@import "components/print/search";
|
18
|
-
@import "components/print/share-links";
|
19
|
-
@import "components/print/skip-link";
|
20
11
|
@import "components/print/step-by-step-nav-header";
|
21
12
|
@import "components/print/step-by-step-nav";
|
22
|
-
@import "components/print/subscription-links";
|
23
13
|
@import "components/print/textarea";
|
24
14
|
@import "components/print/title";
|
25
|
-
@import "components/print/translation-nav";
|
@@ -68,17 +68,17 @@ $gem-c-accordion-bottom-border-width: 1px;
|
|
68
68
|
display: inline-block;
|
69
69
|
box-sizing: border-box;
|
70
70
|
position: relative;
|
71
|
-
width: em(20, 14);
|
72
|
-
height: em(20, 14);
|
73
|
-
margin-left: em(5, 14);
|
74
|
-
border: em(1, 14) solid;
|
75
|
-
border-radius: em(100, 14);
|
71
|
+
width: govuk-em(20, 14);
|
72
|
+
height: govuk-em(20, 14);
|
73
|
+
margin-left: govuk-em(5, 14);
|
74
|
+
border: govuk-em(1, 14) solid;
|
75
|
+
border-radius: govuk-em(100, 14);
|
76
76
|
// Main icon size across views, yet keep responsive for zoom
|
77
77
|
@include govuk-media-query($from: tablet) {
|
78
|
-
width: em(20, 16);
|
79
|
-
height: em(20, 16);
|
80
|
-
margin-left: em(5, 16);
|
81
|
-
border: em(1, 16) solid;
|
78
|
+
width: govuk-em(20, 16);
|
79
|
+
height: govuk-em(20, 16);
|
80
|
+
margin-left: govuk-em(5, 16);
|
81
|
+
border: govuk-em(1, 16) solid;
|
82
82
|
}
|
83
83
|
|
84
84
|
&:after {
|
@@ -87,20 +87,20 @@ $gem-c-accordion-bottom-border-width: 1px;
|
|
87
87
|
box-sizing: border-box;
|
88
88
|
position: absolute;
|
89
89
|
overflow: visible;
|
90
|
-
width: em(6, 14);
|
91
|
-
height: em(6, 14);
|
92
|
-
border-top: em(2, 14) solid;
|
93
|
-
border-right: em(2, 14) solid;
|
90
|
+
width: govuk-em(6, 14);
|
91
|
+
height: govuk-em(6, 14);
|
92
|
+
border-top: govuk-em(2, 14) solid;
|
93
|
+
border-right: govuk-em(2, 14) solid;
|
94
94
|
transform: rotate(-45deg);
|
95
|
-
left: em(6, 14);
|
96
|
-
bottom: em(5, 14);
|
95
|
+
left: govuk-em(6, 14);
|
96
|
+
bottom: govuk-em(5, 14);
|
97
97
|
@include govuk-media-query($from: tablet) {
|
98
|
-
width: em(6, 16);
|
99
|
-
height: em(6, 16);
|
100
|
-
border-top: em(2, 16) solid;
|
101
|
-
border-right: em(2, 16) solid;
|
102
|
-
left: em(6, 16);
|
103
|
-
bottom: em(5, 16);
|
98
|
+
width: govuk-em(6, 16);
|
99
|
+
height: govuk-em(6, 16);
|
100
|
+
border-top: govuk-em(2, 16) solid;
|
101
|
+
border-right: govuk-em(2, 16) solid;
|
102
|
+
left: govuk-em(6, 16);
|
103
|
+
bottom: govuk-em(5, 16);
|
104
104
|
}
|
105
105
|
}
|
106
106
|
}
|
@@ -227,12 +227,12 @@ $gem-c-accordion-bottom-border-width: 1px;
|
|
227
227
|
|
228
228
|
// Setting width of the text, so the icon doesn't shift (left / right) when toggled
|
229
229
|
.gem-c-accordion__toggle-text {
|
230
|
-
min-width: em(40, 16);
|
230
|
+
min-width: govuk-em(40, 16);
|
231
231
|
display: inline-block;
|
232
232
|
}
|
233
233
|
|
234
234
|
.gem-c-accordion__open-all-text {
|
235
|
-
min-width: em(120, 16);
|
235
|
+
min-width: govuk-em(120, 16);
|
236
236
|
display: inline-block;
|
237
237
|
text-align: left;
|
238
238
|
}
|
@@ -277,20 +277,20 @@ $gem-c-accordion-bottom-border-width: 1px;
|
|
277
277
|
|
278
278
|
// Reduce Chevron size
|
279
279
|
.gem-c-accordion-nav__chevron {
|
280
|
-
width: em(20, 14);
|
281
|
-
height: em(20, 14);
|
282
|
-
margin-left: em(5, 14);
|
283
|
-
border: em(1, 14) solid;
|
284
|
-
border-radius: em(100, 14);
|
280
|
+
width: govuk-em(20, 14);
|
281
|
+
height: govuk-em(20, 14);
|
282
|
+
margin-left: govuk-em(5, 14);
|
283
|
+
border: govuk-em(1, 14) solid;
|
284
|
+
border-radius: govuk-em(100, 14);
|
285
285
|
transform: scale(.875);
|
286
286
|
|
287
287
|
&:after {
|
288
|
-
width: em(6, 14);
|
289
|
-
height: em(6, 14);
|
290
|
-
border-top: em(2, 14) solid;
|
291
|
-
border-right: em(2, 14) solid;
|
292
|
-
left: em(6, 14);
|
293
|
-
bottom: em(5, 14);
|
288
|
+
width: govuk-em(6, 14);
|
289
|
+
height: govuk-em(6, 14);
|
290
|
+
border-top: govuk-em(2, 14) solid;
|
291
|
+
border-right: govuk-em(2, 14) solid;
|
292
|
+
left: govuk-em(6, 14);
|
293
|
+
bottom: govuk-em(5, 14);
|
294
294
|
}
|
295
295
|
}
|
296
296
|
|
@@ -21,6 +21,7 @@
|
|
21
21
|
@import "govspeak/typography";
|
22
22
|
@import "govspeak/warning-callout";
|
23
23
|
|
24
|
+
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
24
25
|
.gem-c-govspeak {
|
25
26
|
&.direction-rtl {
|
26
27
|
direction: rtl;
|
@@ -7,6 +7,11 @@
|
|
7
7
|
a {
|
8
8
|
@include govuk-link-common;
|
9
9
|
@include govuk-link-style-default;
|
10
|
+
font-weight: bold;
|
11
|
+
}
|
12
|
+
|
13
|
+
.gem-c-metadata__definition-link {
|
14
|
+
font-weight: normal;
|
10
15
|
}
|
11
16
|
}
|
12
17
|
|
@@ -29,17 +34,19 @@
|
|
29
34
|
}
|
30
35
|
}
|
31
36
|
|
37
|
+
.gem-c-metadata__term,
|
38
|
+
.gem-c-metadata__definition {
|
39
|
+
line-height: 1.4;
|
40
|
+
}
|
41
|
+
|
32
42
|
.gem-c-metadata__term {
|
33
43
|
margin-top: .5em;
|
34
|
-
line-height: 1.4;
|
35
44
|
|
36
45
|
@include govuk-media-query($from: tablet) {
|
37
46
|
box-sizing: border-box;
|
38
47
|
float: left;
|
39
48
|
clear: left;
|
40
|
-
|
41
|
-
max-width: 11em;
|
42
|
-
padding-right: govuk-spacing(2);
|
49
|
+
padding-right: govuk-spacing(1);
|
43
50
|
margin-top: 0;
|
44
51
|
}
|
45
52
|
}
|
@@ -49,31 +56,21 @@
|
|
49
56
|
clear: right;
|
50
57
|
|
51
58
|
@include govuk-media-query($from: tablet) {
|
52
|
-
padding-left: govuk-spacing(
|
59
|
+
padding-left: govuk-spacing(1);
|
53
60
|
padding-right: 0;
|
54
61
|
}
|
55
62
|
}
|
56
63
|
|
57
64
|
.gem-c-metadata__definition {
|
58
65
|
margin: 0;
|
59
|
-
line-height: 1.4;
|
60
66
|
|
61
67
|
@include govuk-media-query($from: tablet) {
|
62
|
-
|
63
|
-
|
68
|
+
&:not(:last-of-type) {
|
69
|
+
margin-bottom: govuk-spacing(1);
|
70
|
+
}
|
64
71
|
}
|
65
72
|
}
|
66
73
|
|
67
|
-
.gem-c-metadata__definition-link {
|
68
|
-
text-decoration: none;
|
69
|
-
}
|
70
|
-
|
71
|
-
.gem-c-metadata__definition-link:focus,
|
72
|
-
.gem-c-metadata__definition-link:active,
|
73
|
-
.gem-c-metadata__definition-link:hover {
|
74
|
-
text-decoration: underline;
|
75
|
-
}
|
76
|
-
|
77
74
|
.gem-c-metadata.direction-rtl .gem-c-metadata__definition {
|
78
75
|
float: right;
|
79
76
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
clear: both;
|
7
7
|
border: $govuk-border-width solid govuk-colour("blue");
|
8
8
|
|
9
|
-
.govuk-govspeak
|
9
|
+
.govuk-govspeak {
|
10
10
|
p:last-child {
|
11
11
|
margin-bottom: 0;
|
12
12
|
}
|
@@ -27,7 +27,9 @@
|
|
27
27
|
}
|
28
28
|
|
29
29
|
a {
|
30
|
-
@
|
30
|
+
@include govuk-link-common;
|
31
|
+
@include govuk-link-style-default;
|
32
|
+
@include govuk-link-print-friendly;
|
31
33
|
}
|
32
34
|
}
|
33
35
|
|
@@ -53,8 +53,8 @@ $large-input-size: 50px;
|
|
53
53
|
@include govuk-font($size: 19, $line-height: (28 / 19));
|
54
54
|
margin: 0;
|
55
55
|
width: 100%;
|
56
|
-
height: em(40, 16);
|
57
|
-
padding: em(6, 16);
|
56
|
+
height: govuk-em(40, 16);
|
57
|
+
padding: govuk-em(6, 16);
|
58
58
|
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
59
59
|
background: govuk-colour("white");
|
60
60
|
border-radius: 0; //otherwise iphones apply an automatic border radius
|
@@ -63,8 +63,8 @@ $large-input-size: 50px;
|
|
63
63
|
-moz-appearance: none;
|
64
64
|
appearance: none;
|
65
65
|
@include govuk-media-query($from: tablet) {
|
66
|
-
height: em(40, 19);
|
67
|
-
padding: em(6, 19);
|
66
|
+
height: govuk-em(40, 19);
|
67
|
+
padding: govuk-em(6, 19);
|
68
68
|
}
|
69
69
|
|
70
70
|
// the .focus class is added by JS and ensures that the input remains above the label once clicked/filled in
|
@@ -15,12 +15,12 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
15
15
|
|
16
16
|
@mixin step-nav-line-position {
|
17
17
|
left: 0;
|
18
|
-
margin-left: em(($number-circle-size / 2) - ($stroke-width / 2), 16);
|
18
|
+
margin-left: govuk-em(($number-circle-size / 2) - ($stroke-width / 2), 16);
|
19
19
|
}
|
20
20
|
|
21
21
|
@mixin step-nav-line-position-large {
|
22
22
|
left: 0;
|
23
|
-
margin-left: em(($number-circle-size-large / 2) - ($stroke-width / 2), 16);
|
23
|
+
margin-left: govuk-em(($number-circle-size-large / 2) - ($stroke-width / 2), 16);
|
24
24
|
}
|
25
25
|
|
26
26
|
// custom mixin as govuk-font does undesirable things at different breakpoints
|
@@ -136,10 +136,10 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
136
136
|
.gem-c-step-nav__chevron {
|
137
137
|
display: inline-block;
|
138
138
|
vertical-align: middle;
|
139
|
-
margin-left: em(5, 14);
|
139
|
+
margin-left: govuk-em(5, 14);
|
140
140
|
|
141
141
|
.gem-c-step-nav--large & {
|
142
|
-
margin-left: em(5, 16);
|
142
|
+
margin-left: govuk-em(5, 16);
|
143
143
|
}
|
144
144
|
|
145
145
|
svg {
|
@@ -150,18 +150,18 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
150
150
|
.gem-c-step-nav__button-text {
|
151
151
|
display: inline-block;
|
152
152
|
text-align: left;
|
153
|
-
min-width: em(35, 14);
|
153
|
+
min-width: govuk-em(35, 14);
|
154
154
|
|
155
155
|
.gem-c-step-nav--large & {
|
156
|
-
min-width: em(40, 16);
|
156
|
+
min-width: govuk-em(40, 16);
|
157
157
|
}
|
158
158
|
}
|
159
159
|
|
160
160
|
.gem-c-step-nav__button-text--all {
|
161
|
-
min-width: em(87, 14);
|
161
|
+
min-width: govuk-em(87, 14);
|
162
162
|
|
163
163
|
.gem-c-step-nav--large & {
|
164
|
-
min-width: em(100, 16);
|
164
|
+
min-width: govuk-em(100, 16);
|
165
165
|
}
|
166
166
|
}
|
167
167
|
|
@@ -172,23 +172,23 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
172
172
|
|
173
173
|
.gem-c-step-nav__step {
|
174
174
|
position: relative;
|
175
|
-
padding-left: em(govuk-spacing(6) + govuk-spacing(3), 16);
|
175
|
+
padding-left: govuk-em(govuk-spacing(6) + govuk-spacing(3), 16);
|
176
176
|
list-style: none;
|
177
177
|
|
178
178
|
// line down the side of a step
|
179
179
|
&:after {
|
180
180
|
@include step-nav-vertical-line;
|
181
181
|
@include step-nav-line-position;
|
182
|
-
top: em(govuk-spacing(3), 16);
|
182
|
+
top: govuk-em(govuk-spacing(3), 16);
|
183
183
|
}
|
184
184
|
|
185
185
|
.gem-c-step-nav--large & {
|
186
186
|
@include govuk-media-query($from: tablet) {
|
187
|
-
padding-left: em(govuk-spacing(9), 16);
|
187
|
+
padding-left: govuk-em(govuk-spacing(9), 16);
|
188
188
|
|
189
189
|
&:after { // stylelint-disable-line max-nesting-depth
|
190
190
|
@include step-nav-line-position-large;
|
191
|
-
top: em(govuk-spacing(6), 16);
|
191
|
+
top: govuk-em(govuk-spacing(6), 16);
|
192
192
|
}
|
193
193
|
}
|
194
194
|
}
|
@@ -246,8 +246,8 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
246
246
|
z-index: 5;
|
247
247
|
top: 3px;
|
248
248
|
left: 0;
|
249
|
-
width: em($number-circle-size, 16);
|
250
|
-
height: em($number-circle-size, 16);
|
249
|
+
width: govuk-em($number-circle-size, 16);
|
250
|
+
height: govuk-em($number-circle-size, 16);
|
251
251
|
color: govuk-colour("black");
|
252
252
|
background: govuk-colour("white");
|
253
253
|
border-radius: 100px;
|
@@ -256,8 +256,8 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
256
256
|
.gem-c-step-nav--large & {
|
257
257
|
@include govuk-media-query($from: tablet) {
|
258
258
|
top: 11px;
|
259
|
-
width: em($number-circle-size-large, 19);
|
260
|
-
height: em($number-circle-size-large, 19);
|
259
|
+
width: govuk-em($number-circle-size-large, 19);
|
260
|
+
height: govuk-em($number-circle-size-large, 19);
|
261
261
|
}
|
262
262
|
}
|
263
263
|
}
|
@@ -283,15 +283,15 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
283
283
|
.gem-c-step-nav__circle--logic {
|
284
284
|
@include step-nav-font(19, $weight: bold, $line-height: 28px);
|
285
285
|
left: 3px;
|
286
|
-
width: em($number-circle-size, 19);
|
287
|
-
height: em($number-circle-size, 19);
|
286
|
+
width: govuk-em($number-circle-size, 19);
|
287
|
+
height: govuk-em($number-circle-size, 19);
|
288
288
|
|
289
289
|
.gem-c-step-nav--large & {
|
290
290
|
@include step-nav-font(19, $tablet-size: 24, $weight: bold, $line-height: 28px, $tablet-line-height: 34px);
|
291
291
|
|
292
292
|
@include govuk-media-query($from: tablet) {
|
293
|
-
width: em($number-circle-size-large, 24);
|
294
|
-
height: em($number-circle-size-large, 24);
|
293
|
+
width: govuk-em($number-circle-size-large, 24);
|
294
|
+
height: govuk-em($number-circle-size-large, 24);
|
295
295
|
}
|
296
296
|
}
|
297
297
|
}
|
@@ -1,33 +1,36 @@
|
|
1
1
|
$info-background: #d5e8f3;
|
2
2
|
$high-alert-border: #cc0000;
|
3
3
|
|
4
|
-
.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
5
|
+
.gem-c-govspeak {
|
6
|
+
.advisory {
|
7
|
+
background-image: image-url("govuk_publishing_components/icon-important.svg");
|
8
|
+
background-repeat: no-repeat;
|
9
|
+
background-size: 30px 30px;
|
10
|
+
background-position: 98% center;
|
11
|
+
background-color: $info-background;
|
12
|
+
line-height: 1.3em;
|
13
|
+
margin: 0 -1em 1em;
|
14
|
+
padding: govuk-spacing(3) govuk-spacing(8) govuk-spacing(3) govuk-spacing(3);
|
15
|
+
text-align: left;
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
p {
|
18
|
+
margin: 0 .75em 0 0;
|
19
|
+
min-height: 1.75em;
|
20
|
+
padding-right: 3em;
|
21
|
+
}
|
20
22
|
|
21
|
-
|
22
|
-
|
23
|
-
|
23
|
+
strong {
|
24
|
+
font-weight: 400;
|
25
|
+
}
|
24
26
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
27
|
+
&.high-alert {
|
28
|
+
background-color: govuk-colour("light-grey", $legacy: "grey-3");
|
29
|
+
border: 1px solid $high-alert-border;
|
30
|
+
}
|
29
31
|
|
30
|
-
|
31
|
-
|
32
|
+
@include govuk-media-query($until: tablet) {
|
33
|
+
margin: 0 0 1em;
|
34
|
+
}
|
32
35
|
}
|
33
36
|
}
|