govuk_publishing_components 21.67.1 → 23.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.png +0 -0
- data/app/assets/images/govuk_publishing_components/action-link-arrow--simple-light.svg +4 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics.js +16 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/analytics.js +85 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/auto-track-event.js +30 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js +120 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/download-link-tracker.js +41 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/ecommerce.js +101 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/error-tracking.js +51 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/external-link-tracker.js +56 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/google-analytics-universal-tracker.js +198 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/init.js.erb +50 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/mailto-link-tracker.js +38 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js +129 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +74 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/print-intent.js +39 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +513 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics/static-analytics.js +132 -0
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +15 -3
- data/app/assets/javascripts/govuk_publishing_components/lib/track-click.js +61 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +26 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +10 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +23 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +95 -45
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_contents_list.html.erb +8 -13
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +8 -12
- data/app/views/govuk_publishing_components/components/_input.html.erb +17 -4
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +6 -5
- data/app/views/govuk_publishing_components/components/_panel.html.erb +5 -2
- data/app/views/govuk_publishing_components/components/_print_link.html.erb +12 -4
- data/app/views/govuk_publishing_components/components/_search.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +20 -9
- data/app/views/govuk_publishing_components/components/docs/action_link.yml +8 -0
- data/app/views/govuk_publishing_components/components/docs/contents_list.yml +0 -37
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +1 -6
- data/app/views/govuk_publishing_components/components/docs/input.yml +7 -3
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +0 -3
- data/app/views/govuk_publishing_components/components/docs/panel.yml +4 -0
- data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +5 -5
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +0 -1
- data/config/initializers/assets.rb +1 -0
- data/config/locales/en.yml +1 -1
- data/config/locales/et.yml +4 -0
- data/config/locales/fr.yml +4 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +24 -3
@@ -0,0 +1,132 @@
|
|
1
|
+
/* global GOVUK, $, ga */
|
2
|
+
|
3
|
+
(function () {
|
4
|
+
'use strict'
|
5
|
+
window.GOVUK = window.GOVUK || {}
|
6
|
+
var StaticAnalytics = function (config) {
|
7
|
+
// Create universal tracker
|
8
|
+
// https://github.com/alphagov/govuk_frontend_toolkit/blob/master/docs/analytics.md
|
9
|
+
// https://github.com/alphagov/govuk_frontend_toolkit/blob/master/javascripts/govuk/analytics/analytics.js
|
10
|
+
var consentCookie = window.GOVUK.getConsentCookie()
|
11
|
+
|
12
|
+
if (!consentCookie || consentCookie.usage) {
|
13
|
+
this.analytics = new GOVUK.Analytics(config)
|
14
|
+
}
|
15
|
+
|
16
|
+
var trackingOptions = getOptionsFromCookie()
|
17
|
+
|
18
|
+
// We're setting the client ID inside a callback function because
|
19
|
+
// we don't have access to the client ID until GA returns a tracker object.
|
20
|
+
ga(function (tracker) {
|
21
|
+
this.gaClientId = tracker.get('clientId')
|
22
|
+
|
23
|
+
$(window).trigger('gaClientSet')
|
24
|
+
|
25
|
+
// Start up ecommerce tracking
|
26
|
+
GOVUK.Ecommerce.start()
|
27
|
+
|
28
|
+
// Track initial pageview
|
29
|
+
this.trackPageview(null, null, trackingOptions)
|
30
|
+
|
31
|
+
// Begin error and print tracking
|
32
|
+
GOVUK.analyticsPlugins.error({ filenameMustMatch: /gov\.uk/ })
|
33
|
+
GOVUK.analyticsPlugins.printIntent()
|
34
|
+
GOVUK.analyticsPlugins.mailtoLinkTracker()
|
35
|
+
GOVUK.analyticsPlugins.externalLinkTracker({
|
36
|
+
externalLinkUploadCustomDimension: 36
|
37
|
+
})
|
38
|
+
GOVUK.analyticsPlugins.downloadLinkTracker({
|
39
|
+
selector: 'a[href*="/government/uploads"], a[href*="assets.publishing.service.gov.uk"]'
|
40
|
+
})
|
41
|
+
}.bind(this))
|
42
|
+
}
|
43
|
+
|
44
|
+
StaticAnalytics.load = function () {
|
45
|
+
GOVUK.Analytics.load()
|
46
|
+
}
|
47
|
+
|
48
|
+
StaticAnalytics.prototype.trackPageview = function (path, title, options) {
|
49
|
+
// Add the cookie banner status as a custom dimension
|
50
|
+
var cookieBannerShown = !this.getCookie('seen_cookie_message')
|
51
|
+
var cookieBannerDimension = { dimension100: cookieBannerShown ? cookieBannerShown.toString() : 'false' }
|
52
|
+
$.extend(options, cookieBannerDimension)
|
53
|
+
|
54
|
+
var trackingOptions = GOVUK.CustomDimensions.getAndExtendDefaultTrackingOptions(options)
|
55
|
+
this.analytics.trackPageview(path, title, trackingOptions)
|
56
|
+
}
|
57
|
+
|
58
|
+
StaticAnalytics.prototype.trackEvent = function (category, action, options) {
|
59
|
+
var trackingOptions = GOVUK.CustomDimensions.getAndExtendDefaultTrackingOptions(options)
|
60
|
+
this.analytics.trackEvent(category, action, trackingOptions)
|
61
|
+
}
|
62
|
+
|
63
|
+
StaticAnalytics.prototype.setDimension = function (index, value, name, scope) {
|
64
|
+
if (typeof value === 'undefined') {
|
65
|
+
return
|
66
|
+
}
|
67
|
+
this.analytics.setDimension(index, value, name, scope)
|
68
|
+
}
|
69
|
+
|
70
|
+
StaticAnalytics.prototype.trackShare = function (network) {
|
71
|
+
var trackingOptions = GOVUK.CustomDimensions.getAndExtendDefaultTrackingOptions()
|
72
|
+
this.analytics.trackShare(network, trackingOptions)
|
73
|
+
}
|
74
|
+
|
75
|
+
StaticAnalytics.prototype.addLinkedTrackerDomain = function (trackerId, name, domain, sendPageView) {
|
76
|
+
this.analytics.addLinkedTrackerDomain(trackerId, name, domain, sendPageView)
|
77
|
+
}
|
78
|
+
|
79
|
+
StaticAnalytics.prototype.setOptionsForNextPageview = function (options) {
|
80
|
+
if (typeof options !== 'object') {
|
81
|
+
return
|
82
|
+
}
|
83
|
+
|
84
|
+
var cookieOptions = getOptionsFromCookie()
|
85
|
+
|
86
|
+
$.extend(cookieOptions, options)
|
87
|
+
|
88
|
+
this.setCookie('analytics_next_page_call', cookieOptions)
|
89
|
+
}
|
90
|
+
|
91
|
+
StaticAnalytics.prototype.setCookie = function (cookieName, object) {
|
92
|
+
if (!GOVUK.cookie) {
|
93
|
+
return
|
94
|
+
}
|
95
|
+
|
96
|
+
if (!object) {
|
97
|
+
GOVUK.cookie(cookieName, null)
|
98
|
+
} else {
|
99
|
+
// Singly-stringified JSON sometimes gets escaped when put into a cookie, but inconsistently. The command-line
|
100
|
+
// tests will escape, but browser tests will not. Double-stringify in order to get consistently-escaped strings.
|
101
|
+
GOVUK.cookie(cookieName, JSON.stringify(JSON.stringify(object)))
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
StaticAnalytics.prototype.getCookie = function (cookieName) {
|
106
|
+
if (!GOVUK.cookie) {
|
107
|
+
return
|
108
|
+
}
|
109
|
+
|
110
|
+
try {
|
111
|
+
return JSON.parse(JSON.parse(GOVUK.cookie(cookieName)))
|
112
|
+
} catch (error) {
|
113
|
+
return null
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
StaticAnalytics.prototype.stripPII = function (value) {
|
118
|
+
return this.analytics.pii.stripPII(value)
|
119
|
+
}
|
120
|
+
|
121
|
+
function getOptionsFromCookie () {
|
122
|
+
try {
|
123
|
+
var cookie = StaticAnalytics.prototype.getCookie('analytics_next_page_call')
|
124
|
+
StaticAnalytics.prototype.setCookie('analytics_next_page_call', null)
|
125
|
+
return cookie || {}
|
126
|
+
} catch (e) {
|
127
|
+
return {}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
GOVUK.StaticAnalytics = StaticAnalytics
|
132
|
+
})()
|
@@ -80,9 +80,21 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
80
80
|
|
81
81
|
if (!thisel.querySelectorAll('.js-toggle-link').length) {
|
82
82
|
var span = document.createElement('span')
|
83
|
-
|
84
|
-
|
85
|
-
|
83
|
+
var showHideSpan = document.createElement('span')
|
84
|
+
var commaSpan = document.createElement('span')
|
85
|
+
var thisSectionSpan = document.createElement('span')
|
86
|
+
|
87
|
+
showHideSpan.className = 'gem-c-step-nav__toggle-link js-toggle-link'
|
88
|
+
commaSpan.className = 'govuk-visually-hidden'
|
89
|
+
thisSectionSpan.className = 'govuk-visually-hidden'
|
90
|
+
|
91
|
+
commaSpan.innerHTML = ', '
|
92
|
+
thisSectionSpan.innerHTML = ' this section'
|
93
|
+
|
94
|
+
span.appendChild(commaSpan)
|
95
|
+
span.appendChild(showHideSpan)
|
96
|
+
span.appendChild(thisSectionSpan)
|
97
|
+
|
86
98
|
thisel.querySelectorAll('.js-step-title-button')[0].appendChild(span)
|
87
99
|
}
|
88
100
|
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
//= require ../vendor/polyfills/closest.js
|
2
|
+
|
3
|
+
window.GOVUK = window.GOVUK || {}
|
4
|
+
window.GOVUK.Modules = window.GOVUK.Modules || {};
|
5
|
+
|
6
|
+
(function (Modules) {
|
7
|
+
function GemTrackClick () { }
|
8
|
+
|
9
|
+
GemTrackClick.prototype.start = function ($module) {
|
10
|
+
this.$module = $module[0]
|
11
|
+
this.$module.handleClick = this.handleClick.bind(this)
|
12
|
+
|
13
|
+
var that = this
|
14
|
+
// add a listener to the whole element
|
15
|
+
this.$module.addEventListener('click', function (e) {
|
16
|
+
that.$module.handleClick(e.target)
|
17
|
+
})
|
18
|
+
}
|
19
|
+
|
20
|
+
GemTrackClick.prototype.handleClick = function (target) {
|
21
|
+
var options = { transport: 'beacon' }
|
22
|
+
|
23
|
+
// if clicked element hasn't got the right attributes, look for a parent that matches
|
24
|
+
if (!target.hasAttribute('data-track-category') && !target.hasAttribute('data-track-action')) {
|
25
|
+
target = target.closest('[data-track-category][data-track-action]')
|
26
|
+
}
|
27
|
+
|
28
|
+
if (target) {
|
29
|
+
var category = target.getAttribute('data-track-category')
|
30
|
+
var action = target.getAttribute('data-track-action')
|
31
|
+
var label = target.getAttribute('data-track-label')
|
32
|
+
var value = target.getAttribute('data-track-value')
|
33
|
+
var dimension = target.getAttribute('data-track-dimension')
|
34
|
+
var dimensionIndex = target.getAttribute('data-track-dimension-index')
|
35
|
+
var extraOptions = target.getAttribute('data-track-options')
|
36
|
+
|
37
|
+
if (label) {
|
38
|
+
options.label = label
|
39
|
+
}
|
40
|
+
|
41
|
+
if (value) {
|
42
|
+
options.value = value
|
43
|
+
}
|
44
|
+
|
45
|
+
if (dimension && dimensionIndex) {
|
46
|
+
options['dimension' + dimensionIndex] = dimension
|
47
|
+
}
|
48
|
+
|
49
|
+
if (extraOptions) {
|
50
|
+
extraOptions = JSON.parse(extraOptions)
|
51
|
+
for (var k in extraOptions) options[k] = extraOptions[k]
|
52
|
+
}
|
53
|
+
|
54
|
+
if (window.GOVUK.analytics && window.GOVUK.analytics.trackEvent) {
|
55
|
+
window.GOVUK.analytics.trackEvent(category, action, options)
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
Modules.GemTrackClick = GemTrackClick
|
61
|
+
})(window.GOVUK.Modules)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
$gem-hover-dark-background: #dddcdb;
|
2
|
+
|
1
3
|
.gem-c-action-link {
|
2
4
|
display: table;
|
3
5
|
|
@@ -36,10 +38,9 @@
|
|
36
38
|
text-decoration: underline;
|
37
39
|
}
|
38
40
|
|
39
|
-
&:focus
|
40
|
-
&:active {
|
41
|
+
&:focus {
|
41
42
|
text-decoration: none;
|
42
|
-
color: govuk-colour
|
43
|
+
color: $govuk-focus-text-colour;
|
43
44
|
}
|
44
45
|
}
|
45
46
|
|
@@ -113,6 +114,22 @@
|
|
113
114
|
}
|
114
115
|
}
|
115
116
|
|
117
|
+
.gem-c-action-link--simple-light {
|
118
|
+
&:before {
|
119
|
+
width: 30px;
|
120
|
+
height: 30px;
|
121
|
+
background: image-url("govuk_publishing_components/action-link-arrow--simple-light.png");
|
122
|
+
background: image-url("govuk_publishing_components/action-link-arrow--simple-light.svg"), linear-gradient(transparent, transparent);
|
123
|
+
background-repeat: no-repeat;
|
124
|
+
background-size: 25px auto;
|
125
|
+
background-position: 0 2px;
|
126
|
+
}
|
127
|
+
|
128
|
+
.gem-c-action-link__link {
|
129
|
+
text-decoration: none;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
116
133
|
.gem-c-action-link--dark-icon {
|
117
134
|
&:before {
|
118
135
|
background: image-url("govuk_publishing_components/action-link-arrow--dark.png");
|
@@ -171,10 +188,13 @@
|
|
171
188
|
color: govuk-colour("white");
|
172
189
|
}
|
173
190
|
|
174
|
-
&:
|
175
|
-
|
191
|
+
&:hover {
|
192
|
+
color: $gem-hover-dark-background;
|
193
|
+
}
|
194
|
+
|
195
|
+
&:focus {
|
176
196
|
text-decoration: none;
|
177
|
-
color: govuk-colour
|
197
|
+
color: $govuk-focus-text-colour;
|
178
198
|
}
|
179
199
|
}
|
180
200
|
|
@@ -90,7 +90,7 @@
|
|
90
90
|
}
|
91
91
|
|
92
92
|
.gem-c-feedback__prompt-question {
|
93
|
-
vertical-align:
|
93
|
+
vertical-align: top;
|
94
94
|
display: inline-block;
|
95
95
|
margin: govuk-spacing(2) govuk-spacing(4);
|
96
96
|
|
@@ -113,9 +113,17 @@
|
|
113
113
|
|
114
114
|
.gem-c-feedback__prompt-link {
|
115
115
|
@include govuk-font(19);
|
116
|
-
|
116
|
+
background: transparent;
|
117
|
+
box-shadow: 0 2px 0 govuk-colour("white");
|
118
|
+
border: 1px govuk-colour("white") solid;
|
117
119
|
min-width: 100%;
|
118
120
|
|
121
|
+
&:hover {
|
122
|
+
// backup style for browsers that don't support rgba
|
123
|
+
background: govuk-colour("black");
|
124
|
+
background: rgba(govuk-colour("black"), .2);
|
125
|
+
}
|
126
|
+
|
119
127
|
@include govuk-media-query($from: mobile) {
|
120
128
|
min-width: 100px;
|
121
129
|
margin-bottom: 0;
|
@@ -1,3 +1,6 @@
|
|
1
|
+
$gem-c-print-link-background-width: 16px;
|
2
|
+
$gem-c-print-link-background-height: 18px;
|
3
|
+
|
1
4
|
.gem-c-print-link {
|
2
5
|
display: none;
|
3
6
|
margin-bottom: 2em;
|
@@ -14,39 +17,41 @@
|
|
14
17
|
}
|
15
18
|
}
|
16
19
|
|
17
|
-
.gem-c-print-link__link
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
padding:
|
20
|
+
.gem-c-print-link__link,
|
21
|
+
.gem-c-print-link__button {
|
22
|
+
background: image-url("govuk_publishing_components/icon-print.png") no-repeat govuk-spacing(2) 50%;
|
23
|
+
background-size: $gem-c-print-link-background-width $gem-c-print-link-background-height;
|
24
|
+
padding: govuk-spacing(2) govuk-spacing(2) govuk-spacing(2) (govuk-spacing(4) + $gem-c-print-link-background-width);
|
22
25
|
|
23
26
|
@include govuk-device-pixel-ratio($ratio: 2) {
|
24
27
|
background-image: image-url("govuk_publishing_components/icon-print-2x.png");
|
25
|
-
background-size: 16px 18px;
|
26
28
|
}
|
27
29
|
|
30
|
+
&:hover {
|
31
|
+
background-color: govuk-colour("light-grey");
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.gem-c-print-link__link {
|
36
|
+
box-shadow: inset 0 0 0 1px $govuk-border-colour;
|
37
|
+
text-decoration: none;
|
38
|
+
|
28
39
|
&:focus {
|
29
|
-
|
40
|
+
border: 0;
|
41
|
+
box-shadow: 0 $govuk-focus-width $govuk-text-colour;
|
30
42
|
}
|
31
43
|
}
|
32
44
|
|
33
45
|
.gem-c-print-link__button {
|
34
46
|
@extend %govuk-body-s;
|
35
|
-
|
36
|
-
border: 0;
|
47
|
+
border: 1px solid $govuk-border-colour;
|
37
48
|
color: $govuk-link-colour;
|
38
49
|
cursor: pointer;
|
39
|
-
margin: 0;
|
40
|
-
margin-left: -10px;
|
41
|
-
padding: .5em .5em .5em 38px;
|
42
|
-
text-decoration: underline;
|
43
|
-
|
44
|
-
@include govuk-device-pixel-ratio($ratio: 2) {
|
45
|
-
background-image: image-url("govuk_publishing_components/icon-print-2x.png");
|
46
|
-
background-size: 16px 18px;
|
47
|
-
}
|
50
|
+
margin: govuk-spacing(0);
|
48
51
|
|
49
52
|
&:focus {
|
50
53
|
@include govuk-focused-text;
|
54
|
+
background-color: $govuk-focus-colour;
|
55
|
+
border-color: transparent;
|
51
56
|
}
|
52
57
|
}
|
@@ -1,79 +1,129 @@
|
|
1
1
|
.gem-c-subscription-links {
|
2
2
|
@include govuk-text-colour;
|
3
3
|
@include govuk-font(19, $weight: bold);
|
4
|
+
}
|
4
5
|
|
5
|
-
|
6
|
-
|
6
|
+
.gem-c-subscription-links__hidden-header {
|
7
|
+
@include govuk-visually-hidden;
|
8
|
+
}
|
9
|
+
|
10
|
+
.gem-c-subscription-links__list {
|
11
|
+
list-style: none;
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
}
|
15
|
+
|
16
|
+
.gem-c-subscription-links__list--small {
|
17
|
+
@include govuk-font(16);
|
18
|
+
}
|
19
|
+
|
20
|
+
.gem-c-subscription-links__list-item {
|
21
|
+
display: inline-block;
|
22
|
+
vertical-align: middle;
|
23
|
+
margin-right: govuk-spacing(4);
|
24
|
+
margin-bottom: govuk-spacing(3);
|
25
|
+
|
26
|
+
&:last-child {
|
27
|
+
margin-right: 0;
|
7
28
|
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.gem-c-subscription-links__list-item--small {
|
32
|
+
display: inline-block;
|
33
|
+
margin-left: 0;
|
34
|
+
margin-right: 0;
|
35
|
+
margin-bottom: govuk-spacing(2);
|
8
36
|
|
9
|
-
|
10
|
-
|
11
|
-
margin: 0;
|
12
|
-
padding: 0;
|
37
|
+
&:first-child {
|
38
|
+
margin-right: govuk-spacing(2);
|
13
39
|
}
|
14
40
|
|
15
|
-
|
16
|
-
|
41
|
+
&:only-child {
|
42
|
+
margin-right: 0;
|
17
43
|
}
|
44
|
+
}
|
18
45
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
46
|
+
.gem-c-subscription-links__item {
|
47
|
+
@extend %govuk-link;
|
48
|
+
display: inline-block;
|
49
|
+
text-decoration: none;
|
50
|
+
background-repeat: no-repeat;
|
51
|
+
background-position: 0 20%;
|
23
52
|
|
24
|
-
|
25
|
-
|
26
|
-
}
|
53
|
+
@include govuk-media-query($from: tablet) {
|
54
|
+
background-position: 0 35%;
|
27
55
|
}
|
56
|
+
}
|
28
57
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
58
|
+
.gem-c-subscription-links__item--button {
|
59
|
+
display: none;
|
60
|
+
font-size: inherit;
|
61
|
+
font-weight: inherit;
|
62
|
+
line-height: inherit;
|
63
|
+
padding: govuk-spacing(2);
|
64
|
+
border: 1px solid $gem-quiet-button-colour;
|
65
|
+
background-color: $gem-secondary-button-background-colour;
|
34
66
|
|
35
|
-
|
36
|
-
|
37
|
-
|
67
|
+
.js-enabled & {
|
68
|
+
display: inline-block;
|
69
|
+
}
|
38
70
|
|
39
|
-
|
40
|
-
|
41
|
-
}
|
71
|
+
&:not(.brand__color) {
|
72
|
+
color: $govuk-link-colour;
|
42
73
|
}
|
43
74
|
|
44
|
-
|
45
|
-
|
75
|
+
&:visited,
|
76
|
+
&:active,
|
77
|
+
&:focus {
|
46
78
|
text-decoration: none;
|
47
|
-
|
48
|
-
background-position: 0 20%;
|
79
|
+
}
|
49
80
|
|
50
|
-
|
51
|
-
|
52
|
-
|
81
|
+
&:focus {
|
82
|
+
color: $govuk-focus-text-colour;
|
83
|
+
border: 1px solid $govuk-focus-colour;
|
84
|
+
outline: 3px solid transparent;
|
85
|
+
}
|
86
|
+
|
87
|
+
&:hover:not(:focus) {
|
88
|
+
background-color: $gem-secondary-button-hover-background-colour;
|
89
|
+
text-decoration: none;
|
53
90
|
}
|
91
|
+
}
|
54
92
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
93
|
+
.gem-c-subscription-links__feed-box {
|
94
|
+
padding: govuk-spacing(3);
|
95
|
+
margin-bottom: govuk-spacing(3);
|
96
|
+
background: govuk-colour("light-grey", $legacy: "grey-3");
|
59
97
|
|
60
|
-
|
61
|
-
|
62
|
-
}
|
98
|
+
.js-enabled &.js-hidden {
|
99
|
+
display: none;
|
63
100
|
}
|
101
|
+
}
|
64
102
|
|
65
|
-
|
103
|
+
.gem-c-subscription-links__feed-hidden-description {
|
104
|
+
.js-enabled & {
|
66
105
|
@include govuk-visually-hidden;
|
67
106
|
}
|
68
107
|
}
|
69
108
|
|
70
109
|
.gem-c-subscription-links__icon {
|
71
110
|
margin-right: .1em;
|
111
|
+
color: govuk-colour("black");
|
72
112
|
}
|
73
113
|
|
74
|
-
.gem-c-subscription-links__list-item--small {
|
75
|
-
.
|
76
|
-
|
77
|
-
|
114
|
+
.gem-c-subscription-links__list-item--small .gem-c-subscription-links__icon {
|
115
|
+
@include scale(.9);
|
116
|
+
transform-origin: bottom left;
|
117
|
+
}
|
118
|
+
|
119
|
+
.gem-c-subscription-links--with-feed-box {
|
120
|
+
.gem-c-subscription-links__item--link {
|
121
|
+
padding: govuk-spacing(2) govuk-spacing(2) govuk-spacing(2) 0;
|
122
|
+
border: 1px solid transparent;
|
123
|
+
border-bottom: 1px solid govuk-colour("dark-grey", $legacy: "grey-1");
|
124
|
+
|
125
|
+
&:focus {
|
126
|
+
border-bottom-color: transparent;
|
127
|
+
}
|
78
128
|
}
|
79
129
|
}
|