govuk_publishing_components 17.19.0 → 17.19.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/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +17 -27
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_css3.scss +5 -0
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +4 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/accessible-autocomplete/package.json +1 -1
- metadata +3 -5
- data/app/assets/images/govuk_publishing_components/feed-icon-black.png +0 -0
- data/app/assets/images/govuk_publishing_components/mail-icon-x2.png +0 -0
- data/app/assets/images/govuk_publishing_components/mail-icon.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bc03b90d15a06be416d97da477bdc561d00691e0b70cbdf2f41a57bf7274dd9
|
4
|
+
data.tar.gz: ff4c4691b82937a44fec3d991cf071594440a6266e29ff27167ed6adc332a3bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee5a85f79f8d9d54cada3a5851d7e881109201aaa47373852d0d94bd378014efbc5ed0199a28ea22b45123e3adcce08045877efb42adaea77ae082935a2b558c
|
7
|
+
data.tar.gz: 3b99cdfcfbf67fca119969c076c461bb04acbbe39b4e5119704eb702c2956bd64262d7c91b9ffb7b0970ebfee2d2f6d2779ec66665813f4186cb028561bd035d
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
.gem-c-subscription-links__list {
|
10
10
|
list-style: none;
|
11
|
-
margin: 0
|
11
|
+
margin: 0;
|
12
12
|
padding: 0;
|
13
13
|
}
|
14
14
|
|
@@ -18,9 +18,12 @@
|
|
18
18
|
|
19
19
|
.gem-c-subscription-links__list-item {
|
20
20
|
display: inline-block;
|
21
|
-
margin-
|
22
|
-
margin-right: govuk-spacing(2);
|
21
|
+
margin-right: govuk-spacing(4);
|
23
22
|
margin-bottom: govuk-spacing(3);
|
23
|
+
|
24
|
+
&:last-child {
|
25
|
+
margin-right: 0;
|
26
|
+
}
|
24
27
|
}
|
25
28
|
|
26
29
|
.gem-c-subscription-links__list-item--small {
|
@@ -49,30 +52,6 @@
|
|
49
52
|
}
|
50
53
|
}
|
51
54
|
|
52
|
-
.gem-c-subscription-links__link--feed {
|
53
|
-
background-image: image-url("govuk_publishing_components/feed-icon-black.png");
|
54
|
-
padding-left: govuk-spacing(4);
|
55
|
-
|
56
|
-
// if this is a toggle, only show if js is enabled
|
57
|
-
&[data-controls] {
|
58
|
-
display: none;
|
59
|
-
|
60
|
-
.js-enabled & {
|
61
|
-
display: block;
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
|
-
.gem-c-subscription-links__link--email-alerts {
|
67
|
-
background-image: image-url("govuk_publishing_components/mail-icon.png");
|
68
|
-
padding-left: govuk-spacing(5);
|
69
|
-
|
70
|
-
@include govuk-device-pixel-ratio {
|
71
|
-
background-image: image-url("govuk_publishing_components/mail-icon-x2.png");
|
72
|
-
background-size: govuk-spacing(4) govuk-spacing(3);
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
55
|
.gem-c-subscription-links__feed-box {
|
77
56
|
padding: govuk-spacing(3);
|
78
57
|
margin-bottom: govuk-spacing(3);
|
@@ -87,3 +66,14 @@
|
|
87
66
|
@include govuk-visually-hidden;
|
88
67
|
}
|
89
68
|
}
|
69
|
+
|
70
|
+
.gem-c-subscription-links__icon {
|
71
|
+
margin-right: .1em;
|
72
|
+
}
|
73
|
+
|
74
|
+
.gem-c-subscription-links__list-item--small {
|
75
|
+
.gem-c-subscription-links__icon {
|
76
|
+
@include scale(.9);
|
77
|
+
transform-origin: bottom left;
|
78
|
+
}
|
79
|
+
}
|
@@ -24,8 +24,9 @@
|
|
24
24
|
>
|
25
25
|
<% if sl_helper.email_signup_link.present? %>
|
26
26
|
<li class="gem-c-subscription-links__list-item<%= ' gem-c-subscription-links__list-item--small' if local_assigns[:small_form] == true %>" >
|
27
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="21" height="15.75" class="gem-c-subscription-links__icon" focusable="false" fill="currentColor" aria-hidden="true"><path d="M19.687 0H1.312C.589 0 0 .587 0 1.313v13.124c0 .726.588 1.313 1.313 1.313h18.374c.725 0 1.313-.587 1.313-1.313V1.313C21 .587 20.412 0 19.687 0zm-2.625 2.625L10.5 7.875l-6.563-5.25h13.126zm1.313 10.5H2.625V3.937L10.5 10.5l7.875-6.563v9.188z"/></svg>
|
27
28
|
<%= link_to sl_helper.email_signup_link_text, sl_helper.email_signup_link,
|
28
|
-
class: "gem-c-subscription-links__link
|
29
|
+
class: "gem-c-subscription-links__link #{brand_helper.color_class}",
|
29
30
|
data: sl_helper.email_signup_link_data_attributes
|
30
31
|
%>
|
31
32
|
</li>
|
@@ -33,8 +34,9 @@
|
|
33
34
|
|
34
35
|
<% if sl_helper.feed_link_box_value || sl_helper.feed_link %>
|
35
36
|
<li class="gem-c-subscription-links__list-item<%= ' gem-c-subscription-links__list-item--small' if local_assigns[:small_form] == true %>">
|
37
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" class="gem-c-subscription-links__icon" focusable="false" fill="currentColor" aria-hidden="true"><path d="M1.996 11A2 2 0 0 0 0 12.993c0 1.101.895 1.99 1.996 1.99 1.106 0 2-.889 2-1.99a2 2 0 0 0-2-1.993zM.002 5.097V7.97c1.872 0 3.632.733 4.958 2.059A6.984 6.984 0 0 1 7.015 15h2.888c0-5.461-4.443-9.903-9.9-9.903zM.006 0v2.876c6.676 0 12.11 5.44 12.11 12.124H15C15 6.731 8.273 0 .006 0z"/></svg>
|
36
38
|
<%= link_to sl_helper.feed_link_text, sl_helper.feed_link,
|
37
|
-
class: "gem-c-subscription-links__link
|
39
|
+
class: "gem-c-subscription-links__link #{brand_helper.color_class}",
|
38
40
|
data: sl_helper.feed_link_data_attributes
|
39
41
|
%>
|
40
42
|
</li>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"/"
|
50
50
|
],
|
51
51
|
"_resolved": "git://github.com/alphagov/accessible-autocomplete.git#3523dd9fffc70cbd9f6f555f75863c33a709f49e",
|
52
|
-
"_shasum": "
|
52
|
+
"_shasum": "1d93f03b4482013721e98063044521ea5751d413",
|
53
53
|
"_shrinkwrap": null,
|
54
54
|
"_spec": "accessible-autocomplete@git://github.com/alphagov/accessible-autocomplete.git#add-multiselect-support",
|
55
55
|
"_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
|
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: 17.19.
|
4
|
+
version: 17.19.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: 2019-07-
|
11
|
+
date: 2019-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gds-api-adapters
|
@@ -320,15 +320,12 @@ files:
|
|
320
320
|
- app/assets/images/govuk_publishing_components/favicon-integration.png
|
321
321
|
- app/assets/images/govuk_publishing_components/favicon-production.png
|
322
322
|
- app/assets/images/govuk_publishing_components/favicon-staging.png
|
323
|
-
- app/assets/images/govuk_publishing_components/feed-icon-black.png
|
324
323
|
- app/assets/images/govuk_publishing_components/govuk-logo.png
|
325
324
|
- app/assets/images/govuk_publishing_components/govuk-schema-placeholder-16x9.png
|
326
325
|
- app/assets/images/govuk_publishing_components/govuk-schema-placeholder-1x1.png
|
327
326
|
- app/assets/images/govuk_publishing_components/govuk-schema-placeholder-4x3.png
|
328
327
|
- app/assets/images/govuk_publishing_components/icon-pointer-2x.png
|
329
328
|
- app/assets/images/govuk_publishing_components/icon-pointer.png
|
330
|
-
- app/assets/images/govuk_publishing_components/mail-icon-x2.png
|
331
|
-
- app/assets/images/govuk_publishing_components/mail-icon.png
|
332
329
|
- app/assets/images/govuk_publishing_components/search-button.png
|
333
330
|
- app/assets/javascripts/component_guide/accessibility-test.js
|
334
331
|
- app/assets/javascripts/component_guide/application.js
|
@@ -454,6 +451,7 @@ files:
|
|
454
451
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss
|
455
452
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_back-arrow.scss
|
456
453
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_clearfix.scss
|
454
|
+
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_css3.scss
|
457
455
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss
|
458
456
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
|
459
457
|
- app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss
|
Binary file
|
Binary file
|
Binary file
|