govuk_publishing_components 23.13.0 → 24.1.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/accordion.js +286 -4
- data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +0 -4
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +44 -39
- data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/common.js +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +302 -14
- 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/_error-alert.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +35 -44
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +112 -47
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +8 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss +16 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +2 -2
- data/app/models/govuk_publishing_components/component_doc.rb +1 -1
- data/app/views/govuk_publishing_components/audit/show.html.erb +26 -26
- data/app/views/govuk_publishing_components/components/_accordion.html.erb +13 -20
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +2 -8
- data/app/views/govuk_publishing_components/components/_document_list.html.erb +12 -2
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +9 -4
- data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +21 -0
- data/app/views/govuk_publishing_components/components/docs/accordion.yml +8 -3
- data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +65 -1
- data/app/views/govuk_publishing_components/components/docs/document_list.yml +50 -7
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +3 -3
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +11 -0
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +9 -4
- data/config/initializers/assets.rb +3 -1
- data/config/locales/cy.yml +6 -1
- data/config/locales/en.yml +8 -3
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +183 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/govuk/all.js +58 -1
- data/node_modules/govuk-frontend/govuk/components/_all.scss +2 -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/breadcrumbs/template.njk +2 -2
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +74 -31
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +1 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +1 -1
- data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +85 -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/cookie-banner/_cookie-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +51 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +425 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +132 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +63 -0
- 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 +35 -15
- 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/header/template.njk +4 -4
- 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/_index.scss +21 -0
- data/node_modules/govuk-frontend/govuk/components/table/fixtures.json +92 -22
- data/node_modules/govuk-frontend/govuk/components/table/macro-options.json +2 -2
- 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/objects/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_button-group.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 +21 -18
- data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small-focus.svg +0 -4
- data/app/assets/images/govuk_publishing_components/chevron-banner/chevron-banner-small.svg +0 -4
- data/app/assets/javascripts/govuk_publishing_components/components/header.js +0 -8
- data/app/assets/javascripts/govuk_publishing_components/lib/auto-track-event.js +0 -31
- data/app/assets/stylesheets/govuk_publishing_components/components/_chevron-banner.scss +0 -138
- data/app/assets/stylesheets/govuk_publishing_components/components/_list.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss +0 -27
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_back-arrow.scss +0 -13
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_clearfix.scss +0 -8
- data/app/views/govuk_publishing_components/components/_chevron_banner.html.erb +0 -19
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +0 -85
- data/app/views/govuk_publishing_components/components/_translation-nav.html.erb +0 -33
- data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_related_links.html.erb +0 -6
- data/app/views/govuk_publishing_components/components/docs/chevron_banner.yml +0 -33
- data/app/views/govuk_publishing_components/components/docs/subscription-links.yml +0 -103
- data/app/views/govuk_publishing_components/components/docs/translation-nav.yml +0 -139
@@ -17,7 +17,6 @@
|
|
17
17
|
@import "components/button";
|
18
18
|
@import "components/character-count";
|
19
19
|
@import "components/checkboxes";
|
20
|
-
@import "components/chevron-banner";
|
21
20
|
@import "components/contents-list";
|
22
21
|
@import "components/contextual-guidance";
|
23
22
|
@import "components/contextual-sidebar";
|
@@ -6,12 +6,10 @@
|
|
6
6
|
@import "govuk/utilities/all";
|
7
7
|
@import "govuk/overrides/all";
|
8
8
|
|
9
|
-
@import "govuk_publishing_components/components/helpers/variables";
|
10
9
|
@import "govuk_publishing_components/components/helpers/brand-colours";
|
11
10
|
@import "govuk_publishing_components/components/helpers/link";
|
12
11
|
@import "govuk_publishing_components/components/helpers/px-to-em";
|
13
12
|
@import "govuk_publishing_components/components/mixins/govuk-template-link-focus-override";
|
14
13
|
@import "govuk_publishing_components/components/mixins/media-down";
|
15
14
|
@import "govuk_publishing_components/components/mixins/margins";
|
16
|
-
@import "govuk_publishing_components/components/mixins/clearfix";
|
17
15
|
@import "govuk_publishing_components/components/mixins/css3";
|
@@ -1,25 +1,313 @@
|
|
1
|
-
@import "
|
1
|
+
@import "govuk_publishing_components/component_support";
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
$gem-c-accordion-border-width: 3px;
|
4
|
+
$gem-c-accordion-bottom-border-width: 1px;
|
5
|
+
|
6
|
+
// Buttons within the sections don’t need default styling
|
7
|
+
.gem-c-accordion__section-button {
|
8
|
+
display: inline-block;
|
9
|
+
margin-bottom: 0;
|
10
|
+
padding-top: govuk-spacing(3);
|
11
|
+
font-weight: bold;
|
12
|
+
@include govuk-font($size: 24, $weight: bold);
|
13
|
+
}
|
14
|
+
|
15
|
+
.gem-c-accordion__section-header {
|
16
|
+
padding-top: govuk-spacing(2) 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
.gem-c-accordion__section-heading,
|
20
|
+
.gem-c-accordion__section-summary {
|
21
|
+
margin: govuk-spacing(1) 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
.js-enabled {
|
25
|
+
.gem-c-accordion {
|
26
|
+
border-bottom: $gem-c-accordion-bottom-border-width solid $govuk-border-colour;
|
27
|
+
}
|
28
|
+
|
29
|
+
.gem-c-accordion__controls {
|
30
|
+
text-align: left;
|
31
|
+
}
|
32
|
+
|
33
|
+
.gem-c-accordion__open-all {
|
34
|
+
position: relative;
|
35
|
+
z-index: 1;
|
36
|
+
border-width: 0;
|
37
|
+
color: $govuk-link-colour;
|
38
|
+
background: none;
|
39
|
+
-webkit-appearance: none;
|
40
|
+
cursor: pointer;
|
41
|
+
margin-bottom: govuk-spacing(4);
|
42
|
+
padding: 0 govuk-spacing(1) govuk-spacing(1) 0;
|
43
|
+
@include govuk-font($size: 16);
|
44
|
+
@include govuk-link-common;
|
45
|
+
@include govuk-link-style-default;
|
46
|
+
// Remove default button focus outline in Firefox
|
47
|
+
&::-moz-focus-inner {
|
48
|
+
padding: 0;
|
49
|
+
border: 0;
|
9
50
|
}
|
10
51
|
}
|
11
|
-
}
|
12
52
|
|
13
|
-
.
|
14
|
-
.
|
15
|
-
|
16
|
-
|
53
|
+
.gem-c-accordion__open-all:hover,
|
54
|
+
.gem-c-accordion__open-all-text:hover {
|
55
|
+
text-decoration: underline;
|
56
|
+
color: $govuk-link-colour;
|
57
|
+
}
|
58
|
+
|
59
|
+
// Focus state, also to change chervon icon to black
|
60
|
+
.gem-c-accordion__open-all:focus {
|
61
|
+
.gem-c-accordion__open-all-text,
|
62
|
+
.gem-c-accordion-nav__chevron {
|
63
|
+
color: $govuk-focus-text-colour;
|
64
|
+
text-decoration: none;
|
17
65
|
}
|
18
66
|
}
|
19
67
|
|
20
|
-
|
68
|
+
// Create Chervon icon align with text
|
69
|
+
.gem-c-accordion-nav__chevron {
|
70
|
+
vertical-align: text-top;
|
71
|
+
display: inline-block;
|
72
|
+
box-sizing: border-box;
|
73
|
+
position: relative;
|
74
|
+
width: em(20, 14);
|
75
|
+
height: em(20, 14);
|
76
|
+
margin-left: em(5, 14);
|
77
|
+
border: em(1, 14) solid;
|
78
|
+
border-radius: em(100, 14);
|
79
|
+
// Main icon size across views, yet keep responsive for zoom
|
21
80
|
@include govuk-media-query($from: tablet) {
|
22
|
-
|
81
|
+
width: em(20, 16);
|
82
|
+
height: em(20, 16);
|
83
|
+
margin-left: em(5, 16);
|
84
|
+
border: em(1, 16) solid;
|
85
|
+
}
|
86
|
+
|
87
|
+
&:after {
|
88
|
+
content: "";
|
89
|
+
display: block;
|
90
|
+
box-sizing: border-box;
|
91
|
+
position: absolute;
|
92
|
+
overflow: visible;
|
93
|
+
width: em(6, 14);
|
94
|
+
height: em(6, 14);
|
95
|
+
border-top: em(2, 14) solid;
|
96
|
+
border-right: em(2, 14) solid;
|
97
|
+
transform: rotate(-45deg);
|
98
|
+
left: em(6, 14);
|
99
|
+
bottom: em(5, 14);
|
100
|
+
@include govuk-media-query($from: tablet) {
|
101
|
+
width: em(6, 16);
|
102
|
+
height: em(6, 16);
|
103
|
+
border-top: em(2, 16) solid;
|
104
|
+
border-right: em(2, 16) solid;
|
105
|
+
left: em(6, 16);
|
106
|
+
bottom: em(5, 16);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
// Rotate icon to create "Down" version
|
112
|
+
.gem-c-accordion-nav__chevron--down {
|
113
|
+
transform: rotate(180deg);
|
114
|
+
}
|
115
|
+
|
116
|
+
.gem-c-accordion__section-heading {
|
117
|
+
// Override browser defaults to ensure consistent element height
|
118
|
+
margin-top: 0; // Override browser default
|
119
|
+
margin-bottom: 0; // Override browser default
|
120
|
+
@include govuk-font(24);
|
121
|
+
}
|
122
|
+
|
123
|
+
// Section headers have a pointer cursor as an additional affordance
|
124
|
+
.gem-c-accordion__section-header {
|
125
|
+
position: relative;
|
126
|
+
}
|
127
|
+
|
128
|
+
// For devices that can't hover such as touch devices,
|
129
|
+
// remove hover state as it can be stuck in that state (iOS).
|
130
|
+
@media (hover: none) {
|
131
|
+
.gem-c-accordion__section-header:hover {
|
132
|
+
border-top-color: $govuk-link-colour;
|
133
|
+
box-shadow: inset 0 $gem-c-accordion-border-width 0 0 $govuk-link-colour;
|
134
|
+
|
135
|
+
.gem-c-accordion__section-button {
|
136
|
+
border-top-color: $govuk-link-colour;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
// Buttons within the headers don’t need default styling
|
142
|
+
.gem-c-accordion__section-button {
|
143
|
+
padding: govuk-spacing(2) 0 govuk-spacing(5);
|
144
|
+
position: relative;
|
145
|
+
margin: 0;
|
146
|
+
border-width: $gem-c-accordion-bottom-border-width 0 0 0;
|
147
|
+
border-top: $gem-c-accordion-bottom-border-width solid $govuk-border-colour;
|
148
|
+
color: $govuk-text-colour;
|
149
|
+
background: none;
|
150
|
+
text-align: left;
|
151
|
+
cursor: pointer;
|
152
|
+
-webkit-appearance: none;
|
153
|
+
@include govuk-typography-common;
|
154
|
+
width: 100%;
|
155
|
+
|
156
|
+
&:active {
|
157
|
+
z-index: 1;
|
158
|
+
color: $govuk-link-active-colour;
|
159
|
+
background: none;
|
160
|
+
}
|
161
|
+
|
162
|
+
// Remove default button focus outline in Firefox
|
163
|
+
&::-moz-focus-inner {
|
164
|
+
padding: 0;
|
165
|
+
border: 0;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
.gem-c-accordion__section-button:hover {
|
170
|
+
color: $govuk-link-colour;
|
171
|
+
// On hover, add underline to toggle link
|
172
|
+
.gem-c-accordion__toggle-text {
|
173
|
+
text-decoration: underline;
|
174
|
+
color: $govuk-link-colour;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
.gem-c-accordion__section-button:focus {
|
179
|
+
@include govuk-focused-text;
|
180
|
+
// Overwrite focus border to top
|
181
|
+
box-shadow: 0 0, 0 -4px;
|
182
|
+
border-top: 1px solid transparent;
|
183
|
+
|
184
|
+
// Focus state to change the toggle link within individual sections
|
185
|
+
.gem-c-accordion__toggle-text {
|
186
|
+
color: $govuk-focus-text-colour;
|
187
|
+
text-decoration: none;
|
188
|
+
}
|
189
|
+
// Focus state to change chervon icon colour within individual sections
|
190
|
+
.gem-c-accordion-nav__chevron {
|
191
|
+
color: $govuk-text-colour;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
// Extend the touch area of the button to span the section header
|
196
|
+
.gem-c-accordion__section-button:after {
|
197
|
+
content: "";
|
198
|
+
position: absolute;
|
199
|
+
top: 0;
|
200
|
+
right: 0;
|
201
|
+
bottom: 0;
|
202
|
+
left: 0;
|
203
|
+
}
|
204
|
+
|
205
|
+
.gem-c-accordion__section-button:hover:not(:focus) {
|
206
|
+
text-decoration: none;
|
207
|
+
}
|
208
|
+
|
209
|
+
// For devices that can't hover such as touch devices,
|
210
|
+
// remove hover state as it can be stuck in that state (iOS).
|
211
|
+
@media (hover: none) {
|
212
|
+
.gem-c-accordion__section-button:hover {
|
213
|
+
text-decoration: none;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
// Add toggle link with Chevron icon on right.
|
218
|
+
.gem-c-accordion__toggle-link {
|
219
|
+
display: block;
|
220
|
+
color: $govuk-link-colour;
|
221
|
+
text-transform: capitalize;
|
222
|
+
margin-top: govuk-spacing(1);
|
223
|
+
margin-bottom: govuk-spacing(1);
|
224
|
+
@include govuk-font($size: 16, $line-height: 1);
|
225
|
+
|
226
|
+
&:active {
|
227
|
+
background: $govuk-link-active-colour;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
// Setting width of the text, so the icon doesn't shift (left / right) when toggled
|
232
|
+
.gem-c-accordion__toggle-text {
|
233
|
+
min-width: em(40, 16);
|
234
|
+
display: inline-block;
|
235
|
+
}
|
236
|
+
|
237
|
+
.gem-c-accordion__open-all-text {
|
238
|
+
min-width: em(120, 16);
|
239
|
+
display: inline-block;
|
240
|
+
text-align: left;
|
241
|
+
}
|
242
|
+
|
243
|
+
// Change the summary subheading size.
|
244
|
+
.gem-c-accordion__section-summary {
|
245
|
+
@include govuk-responsive-margin(2, "top");
|
246
|
+
@include govuk-responsive-margin(2, "bottom");
|
247
|
+
@include govuk-typography-common;
|
248
|
+
@include govuk-typography-responsive($size: 19);
|
249
|
+
}
|
250
|
+
|
251
|
+
// Hide body of expanded sections
|
252
|
+
.gem-c-accordion__section-content {
|
253
|
+
display: none;
|
254
|
+
@include govuk-responsive-padding(0, "top");
|
255
|
+
@include govuk-responsive-padding(8, "bottom");
|
256
|
+
}
|
257
|
+
|
258
|
+
// Show the body of expanded sections
|
259
|
+
.gem-c-accordion__section--expanded .gem-c-accordion__section-content {
|
260
|
+
display: block;
|
261
|
+
}
|
262
|
+
|
263
|
+
// Remove the bottom margin from the last item inside the content
|
264
|
+
.gem-c-accordion__section-content > :last-child {
|
265
|
+
margin-bottom: 0;
|
266
|
+
}
|
267
|
+
|
268
|
+
// Condensed layout
|
269
|
+
.gem-c-accordion--condensed {
|
270
|
+
.gem-c-accordion__open-all {
|
271
|
+
margin-bottom: govuk-spacing(5);
|
272
|
+
@include govuk-font($size: 14, $line-height: 1);
|
273
|
+
}
|
274
|
+
|
275
|
+
.gem-c-accordion__section-button {
|
276
|
+
@include govuk-typography-responsive($size: 19, $important: true);
|
277
|
+
padding-top: govuk-spacing(1);
|
278
|
+
padding-bottom: govuk-spacing(5);
|
279
|
+
}
|
280
|
+
|
281
|
+
// Reduce Chevron size
|
282
|
+
.gem-c-accordion-nav__chevron {
|
283
|
+
width: em(20, 14);
|
284
|
+
height: em(20, 14);
|
285
|
+
margin-left: em(5, 14);
|
286
|
+
border: em(1, 14) solid;
|
287
|
+
border-radius: em(100, 14);
|
288
|
+
transform: scale(.875);
|
289
|
+
|
290
|
+
&:after {
|
291
|
+
width: em(6, 14);
|
292
|
+
height: em(6, 14);
|
293
|
+
border-top: em(2, 14) solid;
|
294
|
+
border-right: em(2, 14) solid;
|
295
|
+
left: em(6, 14);
|
296
|
+
bottom: em(5, 14);
|
297
|
+
}
|
298
|
+
}
|
299
|
+
|
300
|
+
.gem-c-accordion-nav__chevron--down {
|
301
|
+
transform: scale(.875) rotate(180deg);
|
302
|
+
}
|
303
|
+
|
304
|
+
.gem-c-accordion__section-summary {
|
305
|
+
@include govuk-typography-responsive($size: 16, $important: true);
|
306
|
+
margin: govuk-spacing(1) 0;
|
307
|
+
}
|
308
|
+
|
309
|
+
.gem-c-accordion__toggle-link {
|
310
|
+
@include govuk-font($size: 14, $line-height: 1);
|
23
311
|
}
|
24
312
|
}
|
25
313
|
}
|
@@ -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
|
}
|