govuk_tech_docs 3.4.0 → 3.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/assets/stylesheets/_govuk_tech_docs.scss +13 -0
- data/lib/govuk_tech_docs/version.rb +1 -1
- data/lib/source/favicon.ico +0 -0
- data/lib/source/layouts/_header.erb +13 -15
- data/node_modules/govuk-frontend/govuk/all-ie8.scss +8 -0
- data/node_modules/govuk-frontend/govuk/all.js +4918 -3796
- data/node_modules/govuk-frontend/govuk/common/closest-attribute-value.js +54 -49
- data/node_modules/govuk-frontend/govuk/common/govuk-frontend-version.js +17 -0
- data/node_modules/govuk-frontend/govuk/common/index.js +172 -152
- data/node_modules/govuk-frontend/govuk/common/normalise-dataset.js +334 -321
- data/node_modules/govuk-frontend/govuk/common.js +171 -151
- data/node_modules/govuk-frontend/govuk/components/_all.scss +3 -2
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +26 -7
- data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +2203 -1650
- data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +24 -16
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +34 -11
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +49 -9
- data/node_modules/govuk-frontend/govuk/components/button/button.js +961 -916
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +2142 -2038
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +6 -6
- data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +1204 -1145
- data/node_modules/govuk-frontend/govuk/components/details/details.js +826 -799
- data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +1097 -1044
- data/node_modules/govuk-frontend/govuk/components/exit-this-page/_exit-this-page.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/exit-this-page/_index.scss +97 -0
- data/node_modules/govuk-frontend/govuk/components/exit-this-page/exit-this-page.js +2120 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +6 -1
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +0 -7
- data/node_modules/govuk-frontend/govuk/components/header/_index.scss +6 -0
- data/node_modules/govuk-frontend/govuk/components/header/header.js +683 -1003
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss +15 -3
- data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +786 -751
- data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +5 -5
- data/node_modules/govuk-frontend/govuk/components/radios/radios.js +1151 -1105
- data/node_modules/govuk-frontend/govuk/components/select/_index.scss +7 -1
- data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +1045 -1014
- data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +107 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +1514 -1268
- data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +18 -18
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +8 -1
- data/node_modules/govuk-frontend/govuk/core/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/core/_govuk-frontend-version.scss +5 -0
- data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +5 -2
- data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +12 -0
- data/node_modules/govuk-frontend/govuk/i18n.js +371 -364
- data/node_modules/govuk-frontend/govuk/objects/_template.scss +20 -0
- data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +1 -1
- data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +4 -0
- data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +16 -0
- data/node_modules/govuk-frontend/govuk/settings/_links.scss +5 -1
- data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +5 -5
- data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +38 -2
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/DOMTokenList.js +243 -241
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Date/now.js +14 -12
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Document.js +18 -16
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/classList.js +553 -545
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/closest.js +40 -36
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/dataset.js +257 -250
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js +22 -20
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +204 -197
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +204 -197
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element.js +109 -105
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Event.js +407 -399
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind.js +242 -238
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Object/defineProperty.js +73 -71
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js +15 -13
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Window.js +18 -16
- data/node_modules/govuk-frontend/govuk-prototype-kit/init.js +1 -0
- data/package-lock.json +7 -7
- data/package.json +1 -1
- metadata +8 -3
@@ -166,4 +166,111 @@
|
|
166
166
|
}
|
167
167
|
}
|
168
168
|
}
|
169
|
+
|
170
|
+
// Additional block for the summary card
|
171
|
+
.govuk-summary-card {
|
172
|
+
@include govuk-responsive-margin(6, "bottom");
|
173
|
+
border: 1px solid $govuk-border-colour;
|
174
|
+
}
|
175
|
+
|
176
|
+
.govuk-summary-card__title-wrapper {
|
177
|
+
padding: govuk-spacing(3);
|
178
|
+
|
179
|
+
// Ensures the card header appears separate to the summary list in forced colours mode
|
180
|
+
border-bottom: 1px solid transparent;
|
181
|
+
background-color: govuk-colour("light-grey", $legacy: "grey-3");
|
182
|
+
|
183
|
+
@include govuk-media-query($from: "tablet") {
|
184
|
+
display: -ms-flexbox;
|
185
|
+
display: flex;
|
186
|
+
-ms-flex-pack: justify;
|
187
|
+
justify-content: space-between;
|
188
|
+
-ms-flex-wrap: nowrap;
|
189
|
+
flex-wrap: nowrap;
|
190
|
+
padding: govuk-spacing(3) govuk-spacing(4);
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
.govuk-summary-card__title {
|
195
|
+
@include govuk-font($size: 19, $weight: bold);
|
196
|
+
margin: govuk-spacing(1) govuk-spacing(4) govuk-spacing(2) 0;
|
197
|
+
|
198
|
+
@include govuk-media-query($from: "tablet") {
|
199
|
+
margin-bottom: govuk-spacing(1);
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
.govuk-summary-card__actions {
|
204
|
+
@include govuk-font($size: 19, $weight: bold);
|
205
|
+
display: -ms-flexbox;
|
206
|
+
display: flex;
|
207
|
+
-ms-flex-wrap: wrap;
|
208
|
+
flex-wrap: wrap;
|
209
|
+
row-gap: 10px;
|
210
|
+
margin: govuk-spacing(1) 0;
|
211
|
+
padding: 0;
|
212
|
+
list-style: none;
|
213
|
+
|
214
|
+
@include govuk-media-query($from: "tablet") {
|
215
|
+
-ms-flex-pack: right;
|
216
|
+
justify-content: right;
|
217
|
+
text-align: right;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
.govuk-summary-card__action {
|
222
|
+
display: inline;
|
223
|
+
margin: 0 govuk-spacing(2) 0 0;
|
224
|
+
padding-right: govuk-spacing(2);
|
225
|
+
border-right: 1px solid $govuk-border-colour;
|
226
|
+
|
227
|
+
@include govuk-media-query($from: "tablet") {
|
228
|
+
margin-right: 0;
|
229
|
+
}
|
230
|
+
|
231
|
+
// We use the following media query to target IE11 and 10 only to add margin
|
232
|
+
// between actions.
|
233
|
+
//
|
234
|
+
// We do this because we're using row-gap to create space between actions on
|
235
|
+
// more evergreen browsers which IE doesn't support. @supports currently isn't
|
236
|
+
// a viable solution, see https://github.com/w3c/csswg-drafts/issues/3559.
|
237
|
+
//
|
238
|
+
// Solution taken from https://stackoverflow.com/questions/11173106/apply-style-only-on-ie#answer-36448860
|
239
|
+
// which also includes an explanation of why this works
|
240
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
241
|
+
margin-bottom: govuk-spacing(1);
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
.govuk-summary-card__action:last-child {
|
246
|
+
margin: 0;
|
247
|
+
padding-right: 0;
|
248
|
+
border-right: none;
|
249
|
+
|
250
|
+
@include govuk-media-query($from: "tablet") {
|
251
|
+
padding-left: govuk-spacing(2);
|
252
|
+
}
|
253
|
+
|
254
|
+
// See above comment for why this is here
|
255
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
256
|
+
margin-bottom: 0;
|
257
|
+
}
|
258
|
+
}
|
259
|
+
|
260
|
+
.govuk-summary-card__content {
|
261
|
+
padding: govuk-spacing(3) govuk-spacing(3) 0;
|
262
|
+
|
263
|
+
@include govuk-media-query($from: "tablet") {
|
264
|
+
padding: govuk-spacing(3) govuk-spacing(4);
|
265
|
+
}
|
266
|
+
|
267
|
+
.govuk-summary-list {
|
268
|
+
margin-bottom: 0;
|
269
|
+
}
|
270
|
+
|
271
|
+
.govuk-summary-list__row:last-of-type {
|
272
|
+
margin-bottom: 0;
|
273
|
+
border-bottom: none;
|
274
|
+
}
|
275
|
+
}
|
169
276
|
}
|