govuk_publishing_components 24.21.1 → 25.2.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.js +2 -0
- data/app/assets/javascripts/govuk_publishing_components/{lib → analytics}/track-click.js +0 -0
- data/app/assets/javascripts/govuk_publishing_components/{lib/select.js → analytics/track-select-change.js} +0 -0
- data/app/assets/javascripts/govuk_publishing_components/components/intervention.js +16 -0
- data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +234 -40
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +6 -0
- data/app/assets/javascripts/govuk_publishing_components/lib/header-navigation.js +34 -5
- data/app/assets/javascripts/govuk_publishing_components/modules.js +11 -17
- data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +12 -10
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +606 -41
- data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +2 -17
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +5 -0
- data/app/views/govuk_publishing_components/components/_fieldset.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_input.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_intervention.html.erb +26 -8
- data/app/views/govuk_publishing_components/components/_label.html.erb +6 -4
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +265 -63
- data/app/views/govuk_publishing_components/components/_notice.html.erb +19 -13
- data/app/views/govuk_publishing_components/components/_radio.html.erb +5 -6
- data/app/views/govuk_publishing_components/components/_search.html.erb +11 -3
- data/app/views/govuk_publishing_components/components/_select.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_summary_list.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_title.html.erb +14 -7
- data/app/views/govuk_publishing_components/components/docs/notice.yml +15 -0
- data/app/views/govuk_publishing_components/components/docs/radio.yml +4 -15
- data/app/views/govuk_publishing_components/components/docs/search.yml +5 -0
- data/app/views/govuk_publishing_components/components/docs/title.yml +7 -12
- data/config/locales/ar.yml +5 -3
- data/config/locales/az.yml +5 -3
- data/config/locales/be.yml +5 -3
- data/config/locales/bg.yml +5 -3
- data/config/locales/bn.yml +5 -3
- data/config/locales/cs.yml +5 -3
- data/config/locales/cy.yml +8 -6
- data/config/locales/da.yml +5 -3
- data/config/locales/de.yml +5 -3
- data/config/locales/dr.yml +5 -3
- data/config/locales/el.yml +5 -3
- data/config/locales/en.yml +91 -84
- data/config/locales/es-419.yml +5 -3
- data/config/locales/es.yml +5 -3
- data/config/locales/et.yml +5 -3
- data/config/locales/fa.yml +5 -3
- data/config/locales/fi.yml +5 -3
- data/config/locales/fr.yml +5 -3
- data/config/locales/gd.yml +5 -3
- data/config/locales/gu.yml +5 -3
- data/config/locales/he.yml +5 -3
- data/config/locales/hi.yml +5 -3
- data/config/locales/hr.yml +5 -3
- data/config/locales/hu.yml +5 -3
- data/config/locales/hy.yml +5 -3
- data/config/locales/id.yml +5 -3
- data/config/locales/is.yml +5 -3
- data/config/locales/it.yml +5 -3
- data/config/locales/ja.yml +5 -3
- data/config/locales/ka.yml +5 -3
- data/config/locales/kk.yml +5 -3
- data/config/locales/ko.yml +5 -3
- data/config/locales/lt.yml +5 -3
- data/config/locales/lv.yml +5 -3
- data/config/locales/ms.yml +5 -3
- data/config/locales/mt.yml +5 -3
- data/config/locales/nl.yml +5 -3
- data/config/locales/no.yml +5 -3
- data/config/locales/pa-pk.yml +5 -3
- data/config/locales/pa.yml +5 -3
- data/config/locales/pl.yml +5 -3
- data/config/locales/ps.yml +5 -3
- data/config/locales/pt.yml +5 -3
- data/config/locales/ro.yml +5 -3
- data/config/locales/ru.yml +5 -3
- data/config/locales/si.yml +5 -3
- data/config/locales/sk.yml +5 -3
- data/config/locales/sl.yml +5 -3
- data/config/locales/so.yml +5 -3
- data/config/locales/sq.yml +5 -3
- data/config/locales/sr.yml +5 -3
- data/config/locales/sv.yml +5 -3
- data/config/locales/sw.yml +5 -3
- data/config/locales/ta.yml +5 -3
- data/config/locales/th.yml +5 -3
- data/config/locales/tk.yml +5 -3
- data/config/locales/tr.yml +5 -3
- data/config/locales/uk.yml +5 -3
- data/config/locales/ur.yml +5 -3
- data/config/locales/uz.yml +5 -3
- data/config/locales/vi.yml +5 -3
- data/config/locales/zh-hk.yml +5 -3
- data/config/locales/zh-tw.yml +5 -3
- data/config/locales/zh.yml +5 -3
- data/lib/govuk_publishing_components/presenters/shared_helper.rb +5 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +5 -16
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss +0 -12
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_attachment.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_back-link.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_feedback.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-footer.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-header.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_metadata.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_search.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_share-links.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_skip-link.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_subscription-links.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_translation-nav.scss +0 -2
data/config/locales/so.yml
CHANGED
@@ -82,11 +82,13 @@ so:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/sq.yml
CHANGED
@@ -82,11 +82,13 @@ sq:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/sr.yml
CHANGED
@@ -82,11 +82,13 @@ sr:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/sv.yml
CHANGED
@@ -82,11 +82,13 @@ sv:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/sw.yml
CHANGED
@@ -82,11 +82,13 @@ sw:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/ta.yml
CHANGED
@@ -82,11 +82,13 @@ ta:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/th.yml
CHANGED
@@ -82,11 +82,13 @@ th:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/tk.yml
CHANGED
@@ -82,11 +82,13 @@ tk:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/tr.yml
CHANGED
@@ -82,11 +82,13 @@ tr:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/uk.yml
CHANGED
@@ -82,11 +82,13 @@ uk:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/ur.yml
CHANGED
@@ -82,11 +82,13 @@ ur:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/uz.yml
CHANGED
@@ -82,11 +82,13 @@ uz:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/vi.yml
CHANGED
@@ -82,11 +82,13 @@ vi:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/zh-hk.yml
CHANGED
@@ -82,11 +82,13 @@ zh-hk:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/zh-tw.yml
CHANGED
@@ -82,11 +82,13 @@ zh-tw:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
data/config/locales/zh.yml
CHANGED
@@ -82,11 +82,13 @@ zh:
|
|
82
82
|
layout_super_navigation_header:
|
83
83
|
logo_link_title:
|
84
84
|
logo_text:
|
85
|
+
navigation_links:
|
85
86
|
navigation_menu_heading:
|
86
|
-
|
87
|
-
|
87
|
+
navigation_search_heading:
|
88
|
+
navigation_search_subheading:
|
88
89
|
popular_links:
|
89
|
-
|
90
|
+
popular_links_heading:
|
91
|
+
search_text:
|
90
92
|
metadata:
|
91
93
|
from:
|
92
94
|
history:
|
@@ -31,10 +31,14 @@ module GovukPublishingComponents
|
|
31
31
|
"span"
|
32
32
|
end
|
33
33
|
|
34
|
+
def valid_heading_size?(size)
|
35
|
+
%w[xl l m s].include?(size)
|
36
|
+
end
|
37
|
+
|
34
38
|
def get_heading_size(option, fallback)
|
35
39
|
govuk_class = "govuk-heading-"
|
36
40
|
|
37
|
-
if
|
41
|
+
if valid_heading_size?(option)
|
38
42
|
"#{govuk_class}#{option}"
|
39
43
|
else
|
40
44
|
"#{govuk_class}#{fallback}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 25.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|
@@ -463,6 +463,8 @@ files:
|
|
463
463
|
- app/assets/javascripts/govuk_publishing_components/analytics/print-intent.js
|
464
464
|
- app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js
|
465
465
|
- app/assets/javascripts/govuk_publishing_components/analytics/static-analytics.js
|
466
|
+
- app/assets/javascripts/govuk_publishing_components/analytics/track-click.js
|
467
|
+
- app/assets/javascripts/govuk_publishing_components/analytics/track-select-change.js
|
466
468
|
- app/assets/javascripts/govuk_publishing_components/components/accordion.js
|
467
469
|
- app/assets/javascripts/govuk_publishing_components/components/button.js
|
468
470
|
- app/assets/javascripts/govuk_publishing_components/components/character-count.js
|
@@ -474,6 +476,7 @@ files:
|
|
474
476
|
- app/assets/javascripts/govuk_publishing_components/components/error-summary.js
|
475
477
|
- app/assets/javascripts/govuk_publishing_components/components/feedback.js
|
476
478
|
- app/assets/javascripts/govuk_publishing_components/components/govspeak.js
|
479
|
+
- app/assets/javascripts/govuk_publishing_components/components/intervention.js
|
477
480
|
- app/assets/javascripts/govuk_publishing_components/components/layout-header.js
|
478
481
|
- app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js
|
479
482
|
- app/assets/javascripts/govuk_publishing_components/components/modal-dialogue.js
|
@@ -495,10 +498,8 @@ files:
|
|
495
498
|
- app/assets/javascripts/govuk_publishing_components/lib/header-navigation.js
|
496
499
|
- app/assets/javascripts/govuk_publishing_components/lib/initial-focus.js
|
497
500
|
- app/assets/javascripts/govuk_publishing_components/lib/primary-links.js
|
498
|
-
- app/assets/javascripts/govuk_publishing_components/lib/select.js
|
499
501
|
- app/assets/javascripts/govuk_publishing_components/lib/toggle-input-class-on-focus.js
|
500
502
|
- app/assets/javascripts/govuk_publishing_components/lib/toggle.js
|
501
|
-
- app/assets/javascripts/govuk_publishing_components/lib/track-click.js
|
502
503
|
- app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js
|
503
504
|
- app/assets/javascripts/govuk_publishing_components/modules.js
|
504
505
|
- app/assets/javascripts/govuk_publishing_components/rum-loader.js.erb
|
@@ -612,32 +613,20 @@ files:
|
|
612
613
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss
|
613
614
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_link.scss
|
614
615
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss
|
615
|
-
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss
|
616
616
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_css3.scss
|
617
617
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_govuk-template-link-focus-override.scss
|
618
618
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss
|
619
619
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
|
620
620
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss
|
621
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_attachment.scss
|
622
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_back-link.scss
|
623
621
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_button.scss
|
624
622
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_contents-list.scss
|
625
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_feedback.scss
|
626
623
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak-html-publication.scss
|
627
624
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss
|
628
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_layout-footer.scss
|
629
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_layout-header.scss
|
630
625
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss
|
631
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_metadata.scss
|
632
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_search.scss
|
633
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_share-links.scss
|
634
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_skip-link.scss
|
635
626
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss
|
636
627
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss
|
637
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_subscription-links.scss
|
638
628
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_textarea.scss
|
639
629
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_title.scss
|
640
|
-
- app/assets/stylesheets/govuk_publishing_components/components/print/_translation-nav.scss
|
641
630
|
- app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss
|
642
631
|
- app/controllers/govuk_publishing_components/application_controller.rb
|
643
632
|
- app/controllers/govuk_publishing_components/audit_controller.rb
|
@@ -1,12 +0,0 @@
|
|
1
|
-
// Convert pixels to em
|
2
|
-
@function em($value, $gem-context-font-size) {
|
3
|
-
@warn "This function is deprecated and will be removed in the next major version release - use GOV.UK Frontend's `govuk-em()` instead.";
|
4
|
-
|
5
|
-
@if (unitless($value)) {
|
6
|
-
$value: $value * 1px;
|
7
|
-
}
|
8
|
-
@if (unitless($gem-context-font-size)) {
|
9
|
-
$gem-context-font-size: $gem-context-font-size * 1px;
|
10
|
-
}
|
11
|
-
@return $value / $gem-context-font-size * 1em;
|
12
|
-
}
|
@@ -1,2 +0,0 @@
|
|
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
|
data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-footer.scss
DELETED
@@ -1,2 +0,0 @@
|
|
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
DELETED
@@ -1,2 +0,0 @@
|
|
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,2 +0,0 @@
|
|
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,2 +0,0 @@
|
|
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
|