katalyst-govuk-formbuilder 1.5.0 → 1.6.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/builds/katalyst/govuk/formbuilder.css +534 -453
- data/app/assets/builds/katalyst/govuk/formbuilder.js +1865 -1379
- data/app/assets/builds/katalyst/govuk/formbuilder.min.js +85 -1
- data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss +5 -5
- data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_richtextarea.scss +1 -1
- data/app/assets/stylesheets/katalyst/govuk/formbuilder.scss +18 -18
- data/lib/katalyst/govuk/formbuilder/frontend.rb +2 -1
- data/lib/katalyst/govuk/formbuilder.rb +0 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/_base.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/_all.scss +8 -4
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/accordion/_accordion.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/accordion/_index.scss +19 -45
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/back-link/_back-link.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/back-link/_index.scss +18 -34
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/breadcrumbs/_index.scss +22 -35
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/button/_button.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/button/_index.scss +56 -91
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/character-count/_character-count.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/character-count/_index.scss +3 -1
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/checkboxes/_index.scss +69 -91
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/cookie-banner/_index.scss +3 -2
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/date-input/_date-input.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/date-input/_index.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/details/_details.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/details/_index.scss +134 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/error-message/_error-message.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/error-message/_index.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/error-summary/_index.scss +5 -3
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +92 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/fieldset/_index.scss +18 -11
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/file-upload/_index.scss +3 -6
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/footer/_footer.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/footer/_index.scss +16 -57
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/header/_header.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/header/_index.scss +55 -75
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/hint/_hint.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/hint/_index.scss +3 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/input/_index.scss +12 -35
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/input/_input.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/inset-text/_index.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/label/_index.scss +12 -7
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/label/_label.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/notification-banner/_index.scss +8 -5
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/pagination/_index.scss +12 -18
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/pagination/_pagination.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/panel/_index.scss +6 -8
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/panel/_panel.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/phase-banner/_index.scss +11 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/radios/_index.scss +38 -54
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/radios/_radios.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/select/_index.scss +4 -11
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/select/_select.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/skip-link/_index.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/summary-list/_index.scss +20 -19
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/table/_index.scss +10 -16
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/table/_table.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/tabs/_index.scss +13 -9
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/tabs/_tabs.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/tag/_index.scss +94 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/tag/_tag.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/task-list/_index.scss +77 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/task-list/_task-list.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/textarea/_index.scss +3 -7
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/textarea/_textarea.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/warning-text/_index.scss +7 -8
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_global-styles.scss +2 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_govuk-frontend-version.scss +3 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_links.scss +8 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_lists.scss +2 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_section-break.scss +2 -7
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_typography.scss +5 -4
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_clearfix.scss +3 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_colour.scss +12 -19
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_device-pixels.scss +4 -3
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_focused.scss +22 -6
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/helpers/_font-faces.scss +41 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_grid.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_links.scss +36 -74
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_media-queries.scss +3 -12
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_shape-arrow.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_spacing.scss +12 -10
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_typography.scss +12 -33
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_visually-hidden.scss +33 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_button-group.scss +7 -12
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_form-group.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_grid.scss +4 -2
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_main-wrapper.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_template.scss +22 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_width-container.scss +2 -9
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_display.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_spacing.scss +3 -19
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_text-align.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_typography.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_width.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_all.scss +2 -3
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_assets.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_colours-applied.scss +9 -7
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_colours-organisations.scss +4 -2
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/settings/_colours-palette.scss +37 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_global-styles.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_links.scss +3 -20
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_measurements.scss +17 -5
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_media-queries.scss +4 -2
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_spacing.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/settings/_typography-font.scss +52 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_typography-responsive.scss +2 -39
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_warnings.scss +25 -5
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_all.scss +2 -2
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_exports.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_font-url.scss +3 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_image-url.scss +3 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_px-to-em.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_px-to-rem.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/utilities/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/utilities/_clearfix.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/utilities/_visually-hidden.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/vendor/_sass-mq.scss +3 -1
- metadata +130 -133
- data/lib/katalyst/govuk/formbuilder/version.rb +0 -9
- data/vendor/assets/stylesheets/govuk-frontend/govuk/all-ie8.scss +0 -14
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_accordion.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_back-link.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_button.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_character-count.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_date-input.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_details.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_index.scss +0 -88
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_error-message.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_error-summary.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_fieldset.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_file-upload.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_footer.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_header.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_inset-text.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_pagination.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_radios.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_select.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_skip-link.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_summary-list.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_index.scss +0 -81
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_textarea.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_warning-text.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_font-faces.scss +0 -41
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-palette.scss +0 -120
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_compatibility.scss +0 -100
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_ie8.scss +0 -34
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font-families.scss +0 -32
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font.scss +0 -112
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_compatibility.scss +0 -50
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_ie8.scss +0 -87
@@ -0,0 +1,94 @@
|
|
1
|
+
@include govuk-exports("govuk/component/tag") {
|
2
|
+
$govuk-tag-max-width: if(map-has-key($govuk-breakpoints, "mobile"), map-get($govuk-breakpoints, "mobile") / 2, 160px);
|
3
|
+
|
4
|
+
.govuk-tag {
|
5
|
+
@include govuk-font($size: 19);
|
6
|
+
|
7
|
+
display: inline-block;
|
8
|
+
|
9
|
+
// set a max-width along with overflow-wrap: break-word below for instances
|
10
|
+
// where a tag has a single long word and could overflow its boundaries.
|
11
|
+
// The max-width is necessary as break-word requires a bounding box to base
|
12
|
+
// where to break off of.
|
13
|
+
max-width: $govuk-tag-max-width;
|
14
|
+
|
15
|
+
// These negative margins make sure that the tag component doesn’t increase the
|
16
|
+
// size of its container. Otherwise, for example, a table row containing a tag
|
17
|
+
// will be taller than one containing plain text.
|
18
|
+
//
|
19
|
+
// The negative margin added to the top and bottom matches the extra padding added.
|
20
|
+
margin-top: -2px;
|
21
|
+
margin-bottom: -3px;
|
22
|
+
|
23
|
+
padding-top: 2px;
|
24
|
+
padding-right: 8px;
|
25
|
+
padding-bottom: 3px;
|
26
|
+
padding-left: 8px;
|
27
|
+
color: govuk-shade(govuk-colour("blue"), 60%);
|
28
|
+
background-color: govuk-tint(govuk-colour("blue"), 70%);
|
29
|
+
text-decoration: none;
|
30
|
+
overflow-wrap: break-word;
|
31
|
+
|
32
|
+
// When forced colour mode is active, for example to provide high contrast,
|
33
|
+
// the background colour of the tag is the same as the rest of the page. To ensure
|
34
|
+
// that the tag is perceived as separate from any surround text, it is made bold.
|
35
|
+
//
|
36
|
+
// Transparent outlines are no longer added, as they make the Tag look indistinguishable
|
37
|
+
// from a button – but the tag is not interactive in the same way.
|
38
|
+
@media screen and (forced-colors: active) {
|
39
|
+
font-weight: bold;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
.govuk-tag--grey {
|
44
|
+
color: govuk-shade(govuk-colour("dark-grey"), 50%);
|
45
|
+
background-color: govuk-tint(govuk-colour("dark-grey"), 85%);
|
46
|
+
}
|
47
|
+
|
48
|
+
.govuk-tag--purple {
|
49
|
+
color: govuk-shade(govuk-colour("bright-purple"), 50%);
|
50
|
+
background-color: govuk-tint(govuk-colour("bright-purple"), 85%);
|
51
|
+
}
|
52
|
+
|
53
|
+
.govuk-tag--turquoise {
|
54
|
+
color: govuk-shade(govuk-colour("turquoise"), 60%);
|
55
|
+
background-color: govuk-tint(govuk-colour("turquoise"), 80%);
|
56
|
+
}
|
57
|
+
|
58
|
+
.govuk-tag--blue {
|
59
|
+
color: govuk-shade(govuk-colour("blue"), 60%);
|
60
|
+
background-color: govuk-tint(govuk-colour("blue"), 70%);
|
61
|
+
}
|
62
|
+
|
63
|
+
.govuk-tag--light-blue {
|
64
|
+
color: govuk-shade(govuk-colour("blue"), 60%);
|
65
|
+
background-color: govuk-tint(govuk-colour("blue"), 90%);
|
66
|
+
}
|
67
|
+
|
68
|
+
.govuk-tag--yellow {
|
69
|
+
color: govuk-shade(govuk-colour("yellow"), 65%);
|
70
|
+
background-color: govuk-tint(govuk-colour("yellow"), 75%);
|
71
|
+
}
|
72
|
+
|
73
|
+
.govuk-tag--orange {
|
74
|
+
color: govuk-shade(govuk-colour("orange"), 55%);
|
75
|
+
background-color: govuk-tint(govuk-colour("orange"), 70%);
|
76
|
+
}
|
77
|
+
|
78
|
+
.govuk-tag--red {
|
79
|
+
color: govuk-shade(govuk-colour("red"), 80%);
|
80
|
+
background-color: govuk-tint(govuk-colour("red"), 75%);
|
81
|
+
}
|
82
|
+
|
83
|
+
.govuk-tag--pink {
|
84
|
+
color: govuk-shade(govuk-colour("pink"), 50%);
|
85
|
+
background-color: govuk-tint(govuk-colour("pink"), 85%);
|
86
|
+
}
|
87
|
+
|
88
|
+
.govuk-tag--green {
|
89
|
+
color: govuk-shade(govuk-colour("green"), 20%);
|
90
|
+
background-color: govuk-tint(govuk-colour("green"), 80%);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
/*# sourceMappingURL=_index.scss.map */
|
@@ -0,0 +1,77 @@
|
|
1
|
+
@import "../tag/index";
|
2
|
+
|
3
|
+
@include govuk-exports("govuk/component/task-list") {
|
4
|
+
$govuk-task-list-hover-colour: govuk-colour("light-grey");
|
5
|
+
|
6
|
+
.govuk-task-list {
|
7
|
+
@include govuk-font($size: 19);
|
8
|
+
margin-top: 0;
|
9
|
+
@include govuk-responsive-margin(6, "bottom");
|
10
|
+
padding: 0;
|
11
|
+
list-style-type: none;
|
12
|
+
}
|
13
|
+
|
14
|
+
// This uses table layout so that the task name and status always appear side-by-side, with the width of
|
15
|
+
// each 'column' being flexible depending upon the length of the task names and statuses.
|
16
|
+
//
|
17
|
+
// The position is set to 'relative' so than an absolutely-positioned transparent element box
|
18
|
+
// can be added within the link so that the whole row can be clickable.
|
19
|
+
.govuk-task-list__item {
|
20
|
+
display: table;
|
21
|
+
position: relative;
|
22
|
+
width: 100%;
|
23
|
+
margin-bottom: 0;
|
24
|
+
padding-top: govuk-spacing(2);
|
25
|
+
padding-bottom: govuk-spacing(2);
|
26
|
+
border-bottom: 1px solid $govuk-border-colour;
|
27
|
+
}
|
28
|
+
|
29
|
+
.govuk-task-list__item:first-child {
|
30
|
+
border-top: 1px solid $govuk-border-colour;
|
31
|
+
}
|
32
|
+
|
33
|
+
// This class is added to the <li> elements where the task name is a link.
|
34
|
+
// The background hover colour is added to help indicate that the whole row is clickable, rather
|
35
|
+
// than just the visible link text.
|
36
|
+
.govuk-task-list__item--with-link:hover {
|
37
|
+
background: $govuk-task-list-hover-colour;
|
38
|
+
}
|
39
|
+
|
40
|
+
.govuk-task-list__name-and-hint {
|
41
|
+
display: table-cell;
|
42
|
+
vertical-align: top;
|
43
|
+
@include govuk-text-colour;
|
44
|
+
}
|
45
|
+
|
46
|
+
.govuk-task-list__status {
|
47
|
+
display: table-cell;
|
48
|
+
padding-left: govuk-spacing(2);
|
49
|
+
text-align: right;
|
50
|
+
vertical-align: top;
|
51
|
+
@include govuk-text-colour;
|
52
|
+
}
|
53
|
+
|
54
|
+
.govuk-task-list__status--cannot-start-yet {
|
55
|
+
color: $govuk-secondary-text-colour;
|
56
|
+
}
|
57
|
+
|
58
|
+
// This adds an empty transparent box covering the whole row, including the task status and
|
59
|
+
// any hint text. Because this is generated within the link element, this allows the whole area
|
60
|
+
// to be clickable.
|
61
|
+
.govuk-task-list__link::after {
|
62
|
+
content: "";
|
63
|
+
display: block;
|
64
|
+
position: absolute;
|
65
|
+
top: 0;
|
66
|
+
right: 0;
|
67
|
+
bottom: 0;
|
68
|
+
left: 0;
|
69
|
+
}
|
70
|
+
|
71
|
+
.govuk-task-list__hint {
|
72
|
+
margin-top: govuk-spacing(1);
|
73
|
+
color: $govuk-secondary-text-colour;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/textarea/_index.scss
RENAMED
@@ -28,16 +28,10 @@
|
|
28
28
|
// this instead of changing `border-width` (which changes element size) and
|
29
29
|
// since `outline` is already used for the yellow focus state.
|
30
30
|
box-shadow: inset 0 0 0 $govuk-border-width-form-element;
|
31
|
-
|
32
|
-
@include _govuk-if-ie8 {
|
33
|
-
// IE8 doesn't support `box-shadow` so double the border with
|
34
|
-
// `border-width`.
|
35
|
-
border-width: $govuk-border-width-form-element * 2;
|
36
|
-
}
|
37
31
|
}
|
38
32
|
|
39
33
|
&:disabled {
|
40
|
-
opacity: .5;
|
34
|
+
opacity: 0.5;
|
41
35
|
color: inherit;
|
42
36
|
background-color: transparent;
|
43
37
|
cursor: not-allowed;
|
@@ -52,3 +46,5 @@
|
|
52
46
|
}
|
53
47
|
}
|
54
48
|
}
|
49
|
+
|
50
|
+
/*# sourceMappingURL=_index.scss.map */
|
@@ -1,17 +1,15 @@
|
|
1
1
|
@include govuk-exports("govuk/component/warning-text") {
|
2
2
|
.govuk-warning-text {
|
3
|
-
|
3
|
+
@include govuk-font($size: 19);
|
4
4
|
@include govuk-responsive-margin(6, "bottom");
|
5
|
+
position: relative;
|
5
6
|
padding: govuk-spacing(2) 0;
|
6
7
|
}
|
7
8
|
|
8
|
-
.govuk-warning-text__assistive {
|
9
|
-
@include govuk-visually-hidden;
|
10
|
-
}
|
11
|
-
|
12
9
|
.govuk-warning-text__icon {
|
13
|
-
|
14
|
-
|
10
|
+
// We apply this here and not at the parent level because the actual text is
|
11
|
+
// a <strong> and so will always be bold
|
12
|
+
@include govuk-typography-weight-bold;
|
15
13
|
box-sizing: border-box;
|
16
14
|
|
17
15
|
display: inline-block;
|
@@ -58,9 +56,10 @@
|
|
58
56
|
}
|
59
57
|
|
60
58
|
.govuk-warning-text__text {
|
61
|
-
@include govuk-font($size: 19, $weight: bold);
|
62
59
|
@include govuk-text-colour;
|
63
60
|
display: block;
|
64
61
|
padding-left: 45px;
|
65
62
|
}
|
66
63
|
}
|
64
|
+
|
65
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_govuk-frontend-version.scss
RENAMED
@@ -1,5 +1,7 @@
|
|
1
1
|
:root {
|
2
2
|
// This variable is automatically overwritten during builds and releases.
|
3
3
|
// It doesn't need to be updated manually.
|
4
|
-
--govuk-frontend-version: "
|
4
|
+
--govuk-frontend-version: "5.0.0";
|
5
5
|
}
|
6
|
+
|
7
|
+
/*# sourceMappingURL=_govuk-frontend-version.scss.map */
|
@@ -1,5 +1,4 @@
|
|
1
1
|
@include govuk-exports("govuk/core/links") {
|
2
|
-
|
3
2
|
%govuk-link {
|
4
3
|
@include govuk-link-common;
|
5
4
|
@include govuk-link-style-default;
|
@@ -32,4 +31,12 @@
|
|
32
31
|
.govuk-link--no-visited-state {
|
33
32
|
@include govuk-link-style-no-visited-state;
|
34
33
|
}
|
34
|
+
|
35
|
+
// Links that only contain images
|
36
|
+
|
37
|
+
.govuk-link-image {
|
38
|
+
@include govuk-link-image;
|
39
|
+
}
|
35
40
|
}
|
41
|
+
|
42
|
+
/*# sourceMappingURL=_links.scss.map */
|
@@ -1,14 +1,7 @@
|
|
1
1
|
@include govuk-exports("govuk/core/section-break") {
|
2
|
-
|
3
2
|
%govuk-section-break {
|
4
3
|
margin: 0;
|
5
4
|
border: 0;
|
6
|
-
|
7
|
-
// fix double-width section break and forced visible section break
|
8
|
-
// when combined with styles from alphagov/elements
|
9
|
-
@include _govuk-compatibility(govuk_elements) {
|
10
|
-
height: 0;
|
11
|
-
}
|
12
5
|
}
|
13
6
|
|
14
7
|
.govuk-section-break {
|
@@ -54,3 +47,5 @@
|
|
54
47
|
@extend %govuk-section-break--visible;
|
55
48
|
}
|
56
49
|
}
|
50
|
+
|
51
|
+
/*# sourceMappingURL=_section-break.scss.map */
|
@@ -1,5 +1,4 @@
|
|
1
1
|
@include govuk-exports("govuk/core/typography") {
|
2
|
-
|
3
2
|
// Headings
|
4
3
|
|
5
4
|
%govuk-heading-xl {
|
@@ -157,7 +156,7 @@
|
|
157
156
|
// Contextual adjustments
|
158
157
|
// Add top padding to headings that appear directly after paragraphs.
|
159
158
|
|
160
|
-
%govuk-body-l
|
159
|
+
%govuk-body-l + %govuk-heading-l {
|
161
160
|
padding-top: govuk-spacing(1);
|
162
161
|
|
163
162
|
@include govuk-media-query($from: tablet) {
|
@@ -165,8 +164,8 @@
|
|
165
164
|
}
|
166
165
|
}
|
167
166
|
|
168
|
-
%govuk-body-m
|
169
|
-
%govuk-body-s
|
167
|
+
%govuk-body-m + %govuk-heading-l,
|
168
|
+
%govuk-body-s + %govuk-heading-l,
|
170
169
|
%govuk-list + %govuk-heading-l {
|
171
170
|
@include govuk-responsive-padding(4, "top");
|
172
171
|
}
|
@@ -184,3 +183,5 @@
|
|
184
183
|
}
|
185
184
|
}
|
186
185
|
}
|
186
|
+
|
187
|
+
/*# sourceMappingURL=_typography.scss.map */
|
@@ -1,6 +1,6 @@
|
|
1
|
-
@import "../settings/compatibility";
|
2
1
|
@import "../settings/colours-palette";
|
3
2
|
@import "../settings/colours-organisations";
|
3
|
+
@import "../settings/warnings";
|
4
4
|
|
5
5
|
////
|
6
6
|
/// @group helpers/colour
|
@@ -10,30 +10,21 @@
|
|
10
10
|
///
|
11
11
|
/// @param {String | Colour} $colour - Name of colour from the colour palette
|
12
12
|
/// (`$govuk-colours`)
|
13
|
-
/// @param {String
|
14
|
-
///
|
15
|
-
///
|
13
|
+
/// @param {String | Colour | Boolean} $legacy [false] - Deprecated.
|
14
|
+
/// The `$legacy` parameter is deprecated and is non-operational, as the
|
15
|
+
/// legacy colour palette has been removed. The parameter will be removed in
|
16
|
+
/// the next major version.
|
16
17
|
/// @return {Colour} Representation of named colour
|
17
18
|
///
|
18
|
-
/// @example scss - Using legacy colours from the palette
|
19
|
-
/// .foo {
|
20
|
-
/// background-colour: govuk-colour("mid-grey", $legacy: "grey-2");
|
21
|
-
/// }
|
22
|
-
///
|
23
|
-
/// @example scss - Using legacy colour literals
|
24
|
-
/// .foo {
|
25
|
-
/// background-colour: govuk-colour("green", $legacy: #BADA55);
|
26
|
-
/// }
|
27
|
-
///
|
28
19
|
/// @throw if `$colour` is not a colour from the colour palette
|
29
20
|
/// @access public
|
30
21
|
|
31
22
|
@function govuk-colour($colour, $legacy: false) {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
23
|
+
// Output a warning if $legacy is set to anything.
|
24
|
+
@if $legacy and _should-warn("legacy-colour-param") {
|
25
|
+
@warn _warning-text("legacy-colour-param", "The `$legacy` parameter of " +
|
26
|
+
"`govuk-colour` is deprecated and is non-operational. It will be " +
|
27
|
+
"removed in the next major version.");
|
37
28
|
}
|
38
29
|
|
39
30
|
@if type-of($colour) == "color" {
|
@@ -96,3 +87,5 @@
|
|
96
87
|
@function govuk-tint($colour, $percentage) {
|
97
88
|
@return mix(govuk-colour("white"), $colour, $percentage);
|
98
89
|
}
|
90
|
+
|
91
|
+
/*# sourceMappingURL=_colour.scss.map */
|
data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_device-pixels.scss
RENAMED
@@ -28,10 +28,11 @@
|
|
28
28
|
/// @access public
|
29
29
|
|
30
30
|
@mixin govuk-device-pixel-ratio($ratio: 2) {
|
31
|
-
// stylelint-disable indentation
|
32
31
|
@media only screen and (-webkit-min-device-pixel-ratio: $ratio),
|
33
32
|
only screen and (min-resolution: #{($ratio * 96)}dpi),
|
34
33
|
only screen and (min-resolution: #{$ratio}dppx) {
|
35
|
-
|
36
|
-
|
34
|
+
@content;
|
35
|
+
}
|
37
36
|
}
|
37
|
+
|
38
|
+
/*# sourceMappingURL=_device-pixels.scss.map */
|
@@ -14,14 +14,12 @@
|
|
14
14
|
// backgrounds and box-shadows disappear, so we need to ensure there's a
|
15
15
|
// transparent outline which will be set to a visible colour.
|
16
16
|
|
17
|
-
|
18
|
-
// user-agent outlines
|
19
|
-
@include _govuk-not-ie8 {
|
20
|
-
outline: $govuk-focus-width solid transparent;
|
21
|
-
}
|
17
|
+
outline: $govuk-focus-width solid transparent;
|
22
18
|
color: $govuk-focus-text-colour;
|
23
19
|
background-color: $govuk-focus-colour;
|
24
|
-
box-shadow:
|
20
|
+
box-shadow:
|
21
|
+
0 -2px $govuk-focus-colour,
|
22
|
+
0 4px $govuk-focus-text-colour;
|
25
23
|
// When link is focussed, hide the default underline since the
|
26
24
|
// box shadow adds the "underline"
|
27
25
|
text-decoration: none;
|
@@ -31,3 +29,21 @@
|
|
31
29
|
-webkit-box-decoration-break: clone;
|
32
30
|
box-decoration-break: clone;
|
33
31
|
}
|
32
|
+
|
33
|
+
/// Focused box
|
34
|
+
///
|
35
|
+
/// Provides an outline to clearly indicate when the target element is focused.
|
36
|
+
/// Unlike govuk-focused-text, which only draws an underline below the element,
|
37
|
+
/// govuk-focused-box draws an outline around all sides of the element.
|
38
|
+
/// Best used for non-text content contained within links.
|
39
|
+
///
|
40
|
+
/// @access public
|
41
|
+
|
42
|
+
@mixin govuk-focused-box {
|
43
|
+
outline: $govuk-focus-width solid transparent;
|
44
|
+
box-shadow:
|
45
|
+
0 0 0 4px $govuk-focus-colour,
|
46
|
+
0 0 0 8px $govuk-focus-text-colour;
|
47
|
+
}
|
48
|
+
|
49
|
+
/*# sourceMappingURL=_focused.scss.map */
|
@@ -0,0 +1,41 @@
|
|
1
|
+
////
|
2
|
+
/// @group helpers
|
3
|
+
////
|
4
|
+
|
5
|
+
@import "../tools/exports";
|
6
|
+
|
7
|
+
/// Font Face - GDS Transport
|
8
|
+
///
|
9
|
+
/// Outputs the font-face declaration for GDS Transport at the root of the CSS document
|
10
|
+
/// the first time it is called.
|
11
|
+
///
|
12
|
+
/// @access private
|
13
|
+
|
14
|
+
@mixin _govuk-font-face-gds-transport {
|
15
|
+
@include govuk-exports("govuk/helpers/font-faces") {
|
16
|
+
@at-root {
|
17
|
+
/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */ /* stylelint-disable-line scss/comment-no-loud */
|
18
|
+
@font-face {
|
19
|
+
font-family: "GDS Transport";
|
20
|
+
font-style: normal;
|
21
|
+
font-weight: normal;
|
22
|
+
src:
|
23
|
+
govuk-font-url("light-94a07e06a1-v2.woff2") format("woff2"),
|
24
|
+
govuk-font-url("light-f591b13f7d-v2.woff") format("woff");
|
25
|
+
font-display: fallback;
|
26
|
+
}
|
27
|
+
|
28
|
+
@font-face {
|
29
|
+
font-family: "GDS Transport";
|
30
|
+
font-style: normal;
|
31
|
+
font-weight: bold;
|
32
|
+
src:
|
33
|
+
govuk-font-url("bold-b542beb274-v2.woff2") format("woff2"),
|
34
|
+
govuk-font-url("bold-affa96571d-v2.woff") format("woff");
|
35
|
+
font-display: fallback;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
/*# sourceMappingURL=_font-faces.scss.map */
|