govuk_publishing_components 23.12.2 → 23.15.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/images/govuk_publishing_components/take-action-amber.svg +4 -0
- data/app/assets/images/govuk_publishing_components/take-action-green.svg +4 -0
- data/app/assets/images/govuk_publishing_components/take-action-red.svg +4 -0
- data/app/assets/javascripts/govuk_publishing_components/components/header.js +3 -0
- data/app/assets/javascripts/govuk_publishing_components/components/layout-header.js +5 -0
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +32 -36
- data/app/assets/javascripts/govuk_publishing_components/modules.js +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +34 -17
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +14 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +35 -44
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +5 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +19 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +5 -0
- data/app/models/govuk_publishing_components/component_doc.rb +1 -1
- data/app/views/govuk_publishing_components/components/_button.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +2 -8
- data/app/views/govuk_publishing_components/components/_document_list.html.erb +2 -1
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +9 -4
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +3 -2
- data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +3 -0
- data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +82 -0
- data/app/views/govuk_publishing_components/components/_translation-nav.html.erb +3 -0
- data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +30 -0
- data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +21 -0
- data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +60 -1
- data/app/views/govuk_publishing_components/components/docs/document_list.yml +32 -7
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +32 -0
- data/app/views/govuk_publishing_components/components/docs/meta_tags.yml +99 -1
- data/app/views/govuk_publishing_components/components/docs/subscription-links.yml +3 -0
- data/app/views/govuk_publishing_components/components/docs/subscription_links.yml +100 -0
- data/app/views/govuk_publishing_components/components/docs/translation-nav.yml +3 -1
- data/app/views/govuk_publishing_components/components/docs/translation_nav.yml +137 -0
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +11 -6
- data/config/initializers/assets.rb +3 -0
- data/config/locales/cy.yml +6 -1
- data/config/locales/en.yml +8 -3
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +124 -2
- data/lib/govuk_publishing_components/presenters/meta_tags.rb +2 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/govuk/all.js +57 -0
- data/node_modules/govuk-frontend/govuk/components/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/fixtures.json +25 -10
- data/node_modules/govuk-frontend/govuk/components/back-link/fixtures.json +12 -6
- data/node_modules/govuk-frontend/govuk/components/back-link/macro-options.json +4 -4
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +34 -13
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +1 -0
- data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +74 -31
- data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +72 -15
- data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +145 -52
- data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/date-input/fixtures.json +84 -34
- data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/date-input/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +34 -14
- data/node_modules/govuk-frontend/govuk/components/error-message/fixtures.json +21 -10
- data/node_modules/govuk-frontend/govuk/components/error-message/macro-options.json +1 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +2 -12
- data/node_modules/govuk-frontend/govuk/components/error-summary/fixtures.json +86 -25
- data/node_modules/govuk-frontend/govuk/components/fieldset/fixtures.json +20 -10
- data/node_modules/govuk-frontend/govuk/components/file-upload/fixtures.json +60 -13
- data/node_modules/govuk-frontend/govuk/components/footer/fixtures.json +37 -18
- data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +8 -5
- data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +36 -18
- data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/hint/fixtures.json +17 -8
- data/node_modules/govuk-frontend/govuk/components/input/fixtures.json +130 -40
- data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/inset-text/fixtures.json +17 -8
- data/node_modules/govuk-frontend/govuk/components/label/fixtures.json +20 -11
- data/node_modules/govuk-frontend/govuk/components/label/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/notification-banner/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_index.scss +89 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/fixtures.json +212 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/macro-options.json +68 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +61 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/template.njk +47 -0
- data/node_modules/govuk-frontend/govuk/components/panel/fixtures.json +30 -13
- data/node_modules/govuk-frontend/govuk/components/phase-banner/fixtures.json +20 -9
- data/node_modules/govuk-frontend/govuk/components/radios/fixtures.json +167 -50
- data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +97 -18
- data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/skip-link/fixtures.json +21 -9
- data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +118 -25
- data/node_modules/govuk-frontend/govuk/components/table/fixtures.json +92 -22
- data/node_modules/govuk-frontend/govuk/components/tabs/fixtures.json +75 -18
- data/node_modules/govuk-frontend/govuk/components/tabs/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/tag/fixtures.json +28 -14
- data/node_modules/govuk-frontend/govuk/components/textarea/fixtures.json +68 -17
- data/node_modules/govuk-frontend/govuk/components/warning-text/fixtures.json +19 -14
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss +94 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss +9 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-font.scss +3 -0
- data/node_modules/govuk-frontend/package.json +1 -1
- metadata +18 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_transition-countdown.scss +0 -125
- data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_related_links.html.erb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcb27613b799a95856f3a2125b6e5a95a0a6ef79dbb0b51b3c96abbcafbcc8ae
|
4
|
+
data.tar.gz: ce5e6a4c647af7b0260ad3e3258d1edae02607a129d1de4153cb89b8fdc24eb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c581512609cf6841314030d6d2ad34a930208b84cd769561b80913579e788b6b964f2b1c4feec07087ee8f5075cbda98b31dda749fc21606315ba34d0b46200d
|
7
|
+
data.tar.gz: 5b11f1c74f5045f23afc9e393b77892eb2089953dfc402157cd39efbcf72b876b491a6897c51d08d54e3575f7651b7e4ef63dec194bf50975532b3c1868fc35c
|
@@ -40,6 +40,15 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
40
40
|
this.$module.sessionStoreLink = this.$module.sessionStoreLink + '_' + this.$module.uniqueId
|
41
41
|
}
|
42
42
|
|
43
|
+
this.$module.upChevronSvg = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" class="gem-c-step-nav__chevron">' +
|
44
|
+
'<path d="M19.5 10C19.5 15.2467 15.2467 19.5 10 19.5C4.75329 19.5 0.499997 15.2467 0.499998 10C0.499999 4.7533 4.7533 0.500001 10 0.500002C15.2467 0.500003 19.5 4.7533 19.5 10Z" stroke="#1D70B8"/>' +
|
45
|
+
'<path d="M6.32617 12.3262L10 8.65234L13.6738 12.3262" stroke="#1D70B8" stroke-width="2"/>' +
|
46
|
+
'</svg>'
|
47
|
+
this.$module.downChevronSvg = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" class="gem-c-step-nav__chevron">' +
|
48
|
+
'<path d="M0.499997 10C0.499998 4.75329 4.75329 0.499999 10 0.499999C15.2467 0.5 19.5 4.75329 19.5 10C19.5 15.2467 15.2467 19.5 10 19.5C4.75329 19.5 0.499997 15.2467 0.499997 10Z" stroke="#1D70B8"/>' +
|
49
|
+
'<path d="M13.6738 8.67383L10 12.3477L6.32617 8.67383" stroke="#1D70B8" stroke-width="2"/>' +
|
50
|
+
'</svg>'
|
51
|
+
|
43
52
|
var stepNavTracker = new this.StepNavTracker(this.$module.uniqueId, this.$module.totalSteps, this.$module.totalLinks)
|
44
53
|
|
45
54
|
this.getTextForInsertedElements()
|
@@ -66,7 +75,10 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
66
75
|
Gemstepnav.prototype.addShowHideAllButton = function () {
|
67
76
|
var showall = document.createElement('div')
|
68
77
|
showall.className = 'gem-c-step-nav__controls'
|
69
|
-
showall.innerHTML = '<button aria-expanded="false" class="gem-c-step-nav__button gem-c-step-nav__button--controls js-step-controls-button">' +
|
78
|
+
showall.innerHTML = '<button aria-expanded="false" class="gem-c-step-nav__button gem-c-step-nav__button--controls js-step-controls-button">' +
|
79
|
+
this.$module.downChevronSvg +
|
80
|
+
this.$module.actions.showAllText +
|
81
|
+
'</button>'
|
70
82
|
|
71
83
|
var steps = this.$module.querySelectorAll('.gem-c-step-nav__steps')[0]
|
72
84
|
this.$module.insertBefore(showall, steps)
|
@@ -114,7 +126,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
114
126
|
var data = []
|
115
127
|
|
116
128
|
for (var i = 0; i < this.$module.steps.length; i++) {
|
117
|
-
var stepView = new this.StepView(this.$module.steps[i], this.$module
|
129
|
+
var stepView = new this.StepView(this.$module.steps[i], this.$module)
|
118
130
|
stepView.setIsShown(isShown)
|
119
131
|
|
120
132
|
if (isShown) {
|
@@ -136,7 +148,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
136
148
|
for (var i = 0; i < this.$module.steps.length; i++) {
|
137
149
|
var thisel = this.$module.steps[i]
|
138
150
|
var id = thisel.getAttribute('id')
|
139
|
-
var stepView = new this.StepView(thisel, this.$module
|
151
|
+
var stepView = new this.StepView(thisel, this.$module)
|
140
152
|
var shouldBeShown = thisel.hasAttribute('data-show')
|
141
153
|
|
142
154
|
// show the step if it has been remembered or if it has the 'data-show' attribute
|
@@ -165,7 +177,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
165
177
|
'<button ' +
|
166
178
|
'class="gem-c-step-nav__button gem-c-step-nav__button--title js-step-title-button" ' +
|
167
179
|
'aria-expanded="false" aria-controls="' + contentId + '">' +
|
168
|
-
'<span class="js-step-title-text">' + titleText + '</span>' +
|
180
|
+
'<span class="gem-c-step-nav__title-text js-step-title-text">' + titleText + '</span>' +
|
169
181
|
'</button>' +
|
170
182
|
'</span>'
|
171
183
|
}
|
@@ -177,7 +189,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
177
189
|
|
178
190
|
for (var i = 0; i < togglePanels.length; i++) {
|
179
191
|
togglePanels[i].addEventListener('click', function (event) {
|
180
|
-
var stepView = new that.StepView(this.parentNode, that.$module
|
192
|
+
var stepView = new that.StepView(this.parentNode, that.$module)
|
181
193
|
stepView.toggle()
|
182
194
|
|
183
195
|
var stepIsOptional = this.parentNode.hasAttribute('data-optional')
|
@@ -321,34 +333,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
321
333
|
var that = this
|
322
334
|
|
323
335
|
this.$module.showOrHideAllButton.addEventListener('click', function (event) {
|
324
|
-
var shouldshowAll
|
325
|
-
var showHideTexts = that.$module.querySelectorAll('.js-toggle-link')
|
326
336
|
var textContent = this.textContent || this.innerText
|
337
|
+
var shouldShowAll = textContent === that.$module.actions.showAllText
|
327
338
|
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
}
|
333
|
-
shouldshowAll = true
|
334
|
-
|
335
|
-
stepNavTracker.trackClick('pageElementInteraction', 'stepNavAllShown', {
|
336
|
-
label: that.$module.actions.showAllText + ': ' + that.$module.stepNavSize
|
337
|
-
})
|
338
|
-
} else {
|
339
|
-
that.$module.showOrHideAllButton.textContent = that.$module.actions.showAllText
|
340
|
-
for (var j = 0; j < showHideTexts.length; j++) {
|
341
|
-
showHideTexts[j].innerHTML = that.$module.actions.showText
|
342
|
-
}
|
343
|
-
shouldshowAll = false
|
344
|
-
|
345
|
-
stepNavTracker.trackClick('pageElementInteraction', 'stepNavAllHidden', {
|
346
|
-
label: that.$module.actions.hideAllText + ': ' + that.$module.stepNavSize
|
347
|
-
})
|
348
|
-
}
|
339
|
+
// Fire GA click tracking
|
340
|
+
stepNavTracker.trackClick('pageElementInteraction', (shouldShowAll ? 'stepNavAllShown' : 'stepNavAllHidden'), {
|
341
|
+
label: (shouldShowAll ? that.$module.actions.showAllText : that.$module.actions.hideAllText) + ': ' + that.$module.stepNavSize
|
342
|
+
})
|
349
343
|
|
350
|
-
that.setAllStepsShownState(
|
351
|
-
that.$module.showOrHideAllButton.setAttribute('aria-expanded',
|
344
|
+
that.setAllStepsShownState(shouldShowAll)
|
345
|
+
that.$module.showOrHideAllButton.setAttribute('aria-expanded', shouldShowAll)
|
352
346
|
that.setShowHideAllText()
|
353
347
|
|
354
348
|
return false
|
@@ -359,21 +353,23 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
359
353
|
var shownSteps = this.$module.querySelectorAll('.step-is-shown').length
|
360
354
|
// Find out if the number of is-opens == total number of steps
|
361
355
|
if (shownSteps === this.$module.totalSteps) {
|
362
|
-
this.$module.showOrHideAllButton.
|
356
|
+
this.$module.showOrHideAllButton.innerHTML = this.$module.upChevronSvg + this.$module.actions.hideAllText
|
363
357
|
} else {
|
364
|
-
this.$module.showOrHideAllButton.
|
358
|
+
this.$module.showOrHideAllButton.innerHTML = this.$module.downChevronSvg + this.$module.actions.showAllText
|
365
359
|
}
|
366
360
|
}
|
367
361
|
|
368
|
-
Gemstepnav.prototype.StepView = function (stepElement,
|
362
|
+
Gemstepnav.prototype.StepView = function (stepElement, $module) {
|
369
363
|
this.stepElement = stepElement
|
370
364
|
this.stepContent = this.stepElement.querySelectorAll('.js-panel')[0]
|
371
365
|
this.titleButton = this.stepElement.querySelectorAll('.js-step-title-button')[0]
|
372
366
|
var textElement = this.stepElement.querySelectorAll('.js-step-title-text')[0]
|
373
367
|
this.title = textElement.textContent || textElement.innerText
|
374
368
|
this.title = this.title.replace(/^\s+|\s+$/g, '') // this is 'trim' but supporting IE8
|
375
|
-
this.showText = showText
|
376
|
-
this.hideText = hideText
|
369
|
+
this.showText = $module.actions.showText
|
370
|
+
this.hideText = $module.actions.hideText
|
371
|
+
this.upChevronSvg = $module.upChevronSvg
|
372
|
+
this.downChevronSvg = $module.downChevronSvg
|
377
373
|
|
378
374
|
this.show = function () {
|
379
375
|
this.setIsShown(true)
|
@@ -398,7 +394,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
398
394
|
|
399
395
|
this.titleButton.setAttribute('aria-expanded', isShown)
|
400
396
|
var showHideText = this.stepElement.querySelectorAll('.js-toggle-link')[0]
|
401
|
-
showHideText.innerHTML = isShown ? this.hideText : this.showText
|
397
|
+
showHideText.innerHTML = isShown ? this.upChevronSvg + this.hideText : this.downChevronSvg + this.showText
|
402
398
|
}
|
403
399
|
|
404
400
|
this.isShown = function () {
|
@@ -3,45 +3,38 @@ $transition-campaign-dark-blue: #1e1348;
|
|
3
3
|
|
4
4
|
.gem-c-contextual-sidebar__brexit-related-links {
|
5
5
|
border-top: 2px solid $govuk-brand-colour;
|
6
|
+
}
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
8
|
+
.gem-c-contextual-sidebar__brexit-heading {
|
9
|
+
@extend %govuk-heading-s;
|
10
|
+
margin-top: govuk-spacing(3);
|
11
|
+
margin-bottom: govuk-spacing(2);
|
12
12
|
}
|
13
13
|
|
14
14
|
.gem-c-contextual-sidebar__brexit-cta {
|
15
|
-
@include govuk-font(19);
|
16
15
|
margin-bottom: govuk-spacing(6);
|
17
16
|
background-color: govuk-colour('light-grey', $legacy: 'grey-4');
|
18
|
-
border-top:
|
17
|
+
border-top: 2px solid $transition-campaign-red;
|
19
18
|
display: block;
|
20
|
-
padding: govuk-spacing(3);
|
19
|
+
padding: 0 govuk-spacing(3) govuk-spacing(3);
|
21
20
|
text-decoration: none;
|
22
21
|
|
23
22
|
.gem-c-contextual-sidebar__brexit-heading {
|
24
|
-
|
25
|
-
color: $transition-campaign-dark-blue;
|
23
|
+
color: $govuk-text-colour;
|
26
24
|
}
|
27
25
|
|
28
26
|
.gem-c-contextual-sidebar__brexit-text {
|
29
27
|
@extend %govuk-link;
|
28
|
+
@include govuk-font(16);
|
30
29
|
|
31
30
|
margin-top: 0;
|
32
|
-
margin-bottom:
|
31
|
+
margin-bottom: govuk-spacing(1);
|
33
32
|
text-decoration: underline;
|
34
33
|
|
35
34
|
@include govuk-media-query($from: tablet) {
|
36
35
|
margin-bottom: govuk-spacing(2);
|
37
36
|
}
|
38
37
|
}
|
39
|
-
|
40
|
-
@include govuk-compatibility(govuk_template) {
|
41
|
-
.gem-c-contextual-sidebar__brexit-title {
|
42
|
-
margin-bottom: govuk-spacing(3);
|
43
|
-
}
|
44
|
-
}
|
45
38
|
}
|
46
39
|
|
47
40
|
.gem-c-contextual-sidebar__brexit-cta:focus {
|
@@ -49,3 +42,27 @@ $transition-campaign-dark-blue: #1e1348;
|
|
49
42
|
text-decoration: none;
|
50
43
|
}
|
51
44
|
}
|
45
|
+
|
46
|
+
.gem-c-contextual-sidebar__take-action-traffic-lights {
|
47
|
+
text-align: left;
|
48
|
+
margin-bottom: govuk-spacing(2);
|
49
|
+
}
|
50
|
+
|
51
|
+
.gem-c-contextual-sidebar__take-action-traffic-lights > li {
|
52
|
+
white-space: nowrap;
|
53
|
+
display: inline;
|
54
|
+
margin-right: 7px;
|
55
|
+
margin-bottom: govuk-spacing(1);
|
56
|
+
}
|
57
|
+
|
58
|
+
.gem-c-contextual-sidebar__take-action-traffic-lists-icon {
|
59
|
+
vertical-align: middle;
|
60
|
+
margin-top: -2px;
|
61
|
+
width: 22px;
|
62
|
+
margin-right: 2px;
|
63
|
+
}
|
64
|
+
|
65
|
+
.gem-c-contextual-sidebar__take-action-traffic-lists-text {
|
66
|
+
@include govuk-font($size: 19, $weight: bold, $line-height: 2);
|
67
|
+
vertical-align: middle;
|
68
|
+
}
|
@@ -7,14 +7,10 @@
|
|
7
7
|
|
8
8
|
.gem-c-document-list__item {
|
9
9
|
overflow: hidden;
|
10
|
-
margin-bottom: govuk-spacing(
|
11
|
-
padding-
|
12
|
-
border-
|
10
|
+
margin-bottom: govuk-spacing(5);
|
11
|
+
padding-top: govuk-spacing(2);
|
12
|
+
border-top: 1px solid $govuk-border-colour;
|
13
13
|
list-style: none;
|
14
|
-
|
15
|
-
&:last-child {
|
16
|
-
border-bottom: 0;
|
17
|
-
}
|
18
14
|
}
|
19
15
|
|
20
16
|
.gem-c-document-list__item-title {
|
@@ -33,6 +29,12 @@
|
|
33
29
|
}
|
34
30
|
}
|
35
31
|
|
32
|
+
.gem-c-document-list--no-top-border {
|
33
|
+
.gem-c-document-list__item {
|
34
|
+
border-top: none;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
36
38
|
.gem-c-document-list__item-title--context {
|
37
39
|
margin-right: govuk-spacing(2);
|
38
40
|
|
@@ -52,7 +54,7 @@
|
|
52
54
|
}
|
53
55
|
|
54
56
|
.gem-c-document-list__subtext {
|
55
|
-
margin:
|
57
|
+
margin: 0;
|
56
58
|
}
|
57
59
|
|
58
60
|
.gem-c-document-list__item-description,
|
@@ -60,6 +62,10 @@
|
|
60
62
|
@include govuk-font($size: 16, $line-height: 1.5);
|
61
63
|
}
|
62
64
|
|
65
|
+
.gem-c-document-list__item-description--full-size {
|
66
|
+
@include govuk-font($size: 19);
|
67
|
+
}
|
68
|
+
|
63
69
|
.gem-c-document-list__item-metadata {
|
64
70
|
padding: 0;
|
65
71
|
}
|
@@ -8,41 +8,6 @@
|
|
8
8
|
}
|
9
9
|
}
|
10
10
|
|
11
|
-
// hide without js
|
12
|
-
// show with js, unless also has the js-hidden class
|
13
|
-
.gem-c-feedback__js-show,
|
14
|
-
.gem-c-feedback__prompt-success,
|
15
|
-
.gem-c-feedback__prompt-questions,
|
16
|
-
.gem-c-feedback__error-summary {
|
17
|
-
display: none;
|
18
|
-
|
19
|
-
.js-enabled & {
|
20
|
-
display: block;
|
21
|
-
|
22
|
-
&.js-hidden {
|
23
|
-
display: none;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
// maintain table display for prompt and prompt-questions
|
29
|
-
.js-enabled .gem-c-feedback__prompt {
|
30
|
-
@include govuk-media-query($from: tablet) {
|
31
|
-
display: table;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
.js-enabled .gem-c-feedback__prompt-questions {
|
36
|
-
@include govuk-media-query($from: tablet) {
|
37
|
-
display: table-cell;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
// show the default feedback form without js
|
42
|
-
.js-enabled .gem-c-feedback__form.js-hidden {
|
43
|
-
display: none;
|
44
|
-
}
|
45
|
-
|
46
11
|
.gem-c-feedback__prompt-questions {
|
47
12
|
text-align: center;
|
48
13
|
border-bottom: 1px solid govuk-colour("white");
|
@@ -137,15 +102,6 @@
|
|
137
102
|
.gem-c-feedback__email-link,
|
138
103
|
.gem-c-feedback__prompt-link {
|
139
104
|
position: relative;
|
140
|
-
|
141
|
-
&:after {
|
142
|
-
content: "";
|
143
|
-
position: absolute;
|
144
|
-
top: -14px;
|
145
|
-
right: -14px;
|
146
|
-
left: -14px;
|
147
|
-
bottom: -14px;
|
148
|
-
}
|
149
105
|
}
|
150
106
|
|
151
107
|
.gem-c-feedback__prompt-link:link,
|
@@ -282,3 +238,38 @@
|
|
282
238
|
outline: $govuk-focus-width solid $govuk-focus-colour;
|
283
239
|
}
|
284
240
|
}
|
241
|
+
|
242
|
+
// hide without js
|
243
|
+
// show with js, unless also has the js-hidden class
|
244
|
+
.gem-c-feedback__js-show,
|
245
|
+
.gem-c-feedback__prompt-success,
|
246
|
+
.gem-c-feedback__prompt-questions,
|
247
|
+
.gem-c-feedback__error-summary {
|
248
|
+
display: none;
|
249
|
+
|
250
|
+
.js-enabled & {
|
251
|
+
display: block;
|
252
|
+
|
253
|
+
&.js-hidden {
|
254
|
+
display: none;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
// maintain table display for prompt and prompt-questions
|
260
|
+
.js-enabled .gem-c-feedback__prompt {
|
261
|
+
@include govuk-media-query($from: tablet) {
|
262
|
+
display: table;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
.js-enabled .gem-c-feedback__prompt-questions {
|
267
|
+
@include govuk-media-query($from: tablet) {
|
268
|
+
display: table-cell;
|
269
|
+
}
|
270
|
+
}
|
271
|
+
|
272
|
+
// show the default feedback form without js
|
273
|
+
.js-enabled .gem-c-feedback__form.js-hidden {
|
274
|
+
display: none;
|
275
|
+
}
|