govuk_publishing_components 21.59.0 → 21.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -6
- data/app/assets/javascripts/component_guide/accessibility-test.js +21 -21
- data/app/assets/javascripts/component_guide/filter-components.js +19 -19
- data/app/assets/javascripts/component_guide/visual-regression.js +38 -37
- data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +102 -73
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +4 -4
- data/app/assets/javascripts/govuk_publishing_components/ie.js +2 -0
- data/app/assets/javascripts/govuk_publishing_components/lib/auto-track-event.js +31 -0
- data/app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js +24 -24
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +17 -17
- data/app/assets/javascripts/govuk_publishing_components/vendor/html5shiv-printshiv.js +4 -0
- data/app/assets/javascripts/govuk_publishing_components/vendor/json2.js +487 -0
- data/app/assets/stylesheets/component_guide/application.scss +19 -15
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +0 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +1 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +4 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +3 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +5 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +87 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +46 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +1 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +8 -12
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +21 -24
- data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +4 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +2 -10
- data/app/controllers/govuk_publishing_components/audit_controller.rb +2 -2
- data/app/controllers/govuk_publishing_components/component_guide_controller.rb +2 -2
- data/app/models/govuk_publishing_components/audit_applications.rb +45 -27
- data/app/models/govuk_publishing_components/audit_comparer.rb +77 -51
- data/app/models/govuk_publishing_components/audit_components.rb +25 -6
- data/app/models/govuk_publishing_components/component_example.rb +4 -0
- data/app/views/govuk_publishing_components/audit/show.html.erb +227 -190
- data/app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb +1 -0
- data/app/views/govuk_publishing_components/component_guide/index.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +32 -21
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +76 -0
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +39 -51
- data/app/views/govuk_publishing_components/components/_machine_readable_metadata.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_radio.html.erb +13 -5
- data/app/views/govuk_publishing_components/components/_search.html.erb +10 -5
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +9 -9
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +4 -0
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +45 -0
- data/app/views/govuk_publishing_components/components/docs/heading.yml +6 -3
- data/app/views/govuk_publishing_components/components/docs/image_card.yml +13 -1
- data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +17 -0
- data/app/views/govuk_publishing_components/components/docs/layout_for_admin.yml +5 -1
- data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +29 -0
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +34 -0
- data/app/views/govuk_publishing_components/components/docs/radio.yml +4 -0
- data/app/views/govuk_publishing_components/components/docs/search.yml +6 -0
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +23 -0
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +17 -0
- data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +9 -0
- data/config/initializers/assets.rb +8 -0
- data/lib/govuk_publishing_components.rb +1 -0
- data/lib/govuk_publishing_components/presenters/checkboxes_helper.rb +15 -7
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +1 -0
- data/lib/govuk_publishing_components/presenters/heading_helper.rb +21 -1
- data/lib/govuk_publishing_components/presenters/image_card_helper.rb +3 -2
- data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +380 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/package.json +145 -220
- data/node_modules/govuk-frontend/govuk/all.js +160 -57
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +0 -4
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +16 -8
- data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/template.njk +1 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +6 -5
- data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +68 -21
- data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +0 -27
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +0 -3
- data/node_modules/govuk-frontend/govuk/components/footer/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +2 -2
- data/node_modules/govuk-frontend/govuk/components/hint/template.njk +2 -2
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss +0 -3
- data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/input/template.njk +1 -0
- data/node_modules/govuk-frontend/govuk/components/radios/radios.js +76 -28
- data/node_modules/govuk-frontend/govuk/components/select/_index.scss +0 -3
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +1 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +0 -3
- data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/template.njk +1 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +4 -2
- data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +1 -1
- data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss +2 -2
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +33 -33
- data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +4 -1
- data/node_modules/govuk-frontend/package.json +14 -81
- data/node_modules/jquery/package.json +44 -116
- metadata +34 -66
- data/Rakefile +0 -37
@@ -160,7 +160,6 @@ $large-input-size: 50px;
|
|
160
160
|
}
|
161
161
|
|
162
162
|
.gem-c-search--on-white {
|
163
|
-
|
164
163
|
.gem-c-search__submit {
|
165
164
|
background-color: govuk-colour("blue");
|
166
165
|
color: govuk-colour("white");
|
@@ -180,6 +179,12 @@ $large-input-size: 50px;
|
|
180
179
|
}
|
181
180
|
}
|
182
181
|
|
182
|
+
.gem-c-search--no-border {
|
183
|
+
.gem-c-search__input[type="search"] {
|
184
|
+
border: 0;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
183
188
|
.gem-c-search--large {
|
184
189
|
.gem-c-search__label {
|
185
190
|
@include govuk-font($size: 19, $line-height: $large-input-size);
|
@@ -209,3 +214,43 @@ $large-input-size: 50px;
|
|
209
214
|
padding-left: 0;
|
210
215
|
}
|
211
216
|
}
|
217
|
+
|
218
|
+
.search-toggle {
|
219
|
+
background-color: govuk-colour("blue");
|
220
|
+
background-image: image-url("govuk_publishing_components/search-button.png");
|
221
|
+
background-position: 0 50%;
|
222
|
+
background-repeat: no-repeat;
|
223
|
+
display: block;
|
224
|
+
float: right;
|
225
|
+
height: 30px;
|
226
|
+
margin: -46px 0;
|
227
|
+
overflow: hidden;
|
228
|
+
padding: 0;
|
229
|
+
text-indent: -5000px;
|
230
|
+
width: 36px;
|
231
|
+
|
232
|
+
&:focus {
|
233
|
+
border-width: 0;
|
234
|
+
box-shadow: inset 0 0 0 4px $govuk-input-border-colour;
|
235
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
236
|
+
outline-offset: 0;
|
237
|
+
}
|
238
|
+
|
239
|
+
&:focus,
|
240
|
+
&:hover {
|
241
|
+
background-color: lighten(govuk-colour("blue"), 5%);
|
242
|
+
}
|
243
|
+
|
244
|
+
&.js-hidden {
|
245
|
+
display: none;
|
246
|
+
}
|
247
|
+
|
248
|
+
@include govuk-device-pixel-ratio {
|
249
|
+
background-size: 52.5px 35px;
|
250
|
+
background-position: 100% 50%;
|
251
|
+
}
|
252
|
+
|
253
|
+
@include govuk-media-query($from: tablet) {
|
254
|
+
display: none;
|
255
|
+
}
|
256
|
+
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss
CHANGED
@@ -11,16 +11,11 @@
|
|
11
11
|
}
|
12
12
|
}
|
13
13
|
|
14
|
-
// scss-lint:disable SelectorFormat
|
15
|
-
|
16
14
|
.gem-c-step-nav-header__part-of {
|
17
15
|
@include govuk-font(19, $weight: bold);
|
18
16
|
display: block;
|
19
17
|
}
|
20
18
|
|
21
19
|
.gem-c-step-nav-header__title {
|
22
|
-
@extend %govuk-link;
|
23
20
|
@include govuk-font(24, $weight: bold, $line-height: 1);
|
24
21
|
}
|
25
|
-
|
26
|
-
// scss-lint:enable SelectorFormat
|
data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
|
13
13
|
.gem-c-step-nav-related__links {
|
14
14
|
@include govuk-font(16);
|
15
|
+
list-style: none;
|
15
16
|
margin: 0;
|
16
17
|
padding: 0;
|
17
18
|
}
|
@@ -42,10 +43,6 @@
|
|
42
43
|
}
|
43
44
|
}
|
44
45
|
|
45
|
-
.gem-c-step-nav-related__links {
|
46
|
-
list-style: none;
|
47
|
-
}
|
48
|
-
|
49
46
|
.gem-c-step-nav-related__link-item {
|
50
47
|
margin-top: govuk-spacing(3);
|
51
48
|
}
|
@@ -29,7 +29,7 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
29
29
|
// we want to ensure that both large and small step navs have the same size font on mobile
|
30
30
|
// this will stop text resizing if compatibility mode is turned off
|
31
31
|
@mixin step-nav-font($size, $tablet-size: $size, $weight: normal, $line-height: 1.3, $tablet-line-height: $line-height) {
|
32
|
-
@include govuk-typography-common
|
32
|
+
@include govuk-typography-common;
|
33
33
|
font-size: $size + px;
|
34
34
|
font-weight: $weight;
|
35
35
|
line-height: $line-height;
|
@@ -122,7 +122,7 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
122
122
|
@include govuk-media-query($from: tablet) {
|
123
123
|
padding-left: govuk-spacing(9);
|
124
124
|
|
125
|
-
&:after {
|
125
|
+
&:after { // stylelint-disable-line max-nesting-depth
|
126
126
|
@include step-nav-line-position-large;
|
127
127
|
top: govuk-spacing(6);
|
128
128
|
}
|
@@ -145,12 +145,8 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
145
145
|
}
|
146
146
|
|
147
147
|
&:after {
|
148
|
-
// scss-lint:disable DuplicateProperty
|
149
|
-
// sass-lint:disable no-duplicate-properties
|
150
148
|
height: -webkit-calc(100% - #{govuk-spacing(3)}); // fallback for iphone 4
|
151
149
|
height: calc(100% - #{govuk-spacing(3)});
|
152
|
-
// sass-lint:enable no-duplicate-properties
|
153
|
-
// scss-lint:enable DuplicateProperty
|
154
150
|
}
|
155
151
|
|
156
152
|
.gem-c-step-nav__help:after {
|
@@ -322,12 +318,6 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
322
318
|
|
323
319
|
+ .gem-c-step-nav__list {
|
324
320
|
margin-top: -5px;
|
325
|
-
|
326
|
-
.gem-c-step-nav--large & {
|
327
|
-
@include govuk-media-query($from: tablet) {
|
328
|
-
margin-top: -govuk-spacing(3);
|
329
|
-
}
|
330
|
-
}
|
331
321
|
}
|
332
322
|
|
333
323
|
.gem-c-step-nav--large & {
|
@@ -335,6 +325,12 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
|
|
335
325
|
padding-bottom: govuk-spacing(6);
|
336
326
|
}
|
337
327
|
}
|
328
|
+
|
329
|
+
.gem-c-step-nav--large & + .gem-c-step-nav__list {
|
330
|
+
@include govuk-media-query($from: tablet) {
|
331
|
+
margin-top: -govuk-spacing(3);
|
332
|
+
}
|
333
|
+
}
|
338
334
|
}
|
339
335
|
|
340
336
|
.gem-c-step-nav__list {
|
@@ -37,28 +37,26 @@ $table-row-even-background-colour: govuk-colour("light-grey", $legacy: "grey-4")
|
|
37
37
|
padding-right: $sort-link-arrow-size;
|
38
38
|
color: $govuk-link-colour;
|
39
39
|
text-decoration: none;
|
40
|
+
}
|
40
41
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
&::after {
|
46
|
-
content: "";
|
47
|
-
position: absolute;
|
48
|
-
top: 5px;
|
49
|
-
right: 0;
|
50
|
-
|
51
|
-
@include govuk-shape-arrow($direction: up, $base: $sort-link-arrow-size-small, $display: block);
|
52
|
-
}
|
42
|
+
.app-table__sort-link:focus {
|
43
|
+
@include govuk-focused-text;
|
44
|
+
}
|
53
45
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
46
|
+
.app-table__sort-link:after {
|
47
|
+
content: "";
|
48
|
+
position: absolute;
|
49
|
+
top: 5px;
|
50
|
+
right: 0;
|
51
|
+
@include govuk-shape-arrow($direction: up, $base: $sort-link-arrow-size-small, $display: block);
|
52
|
+
}
|
59
53
|
|
60
|
-
|
61
|
-
|
54
|
+
.app-table__sort-link:before {
|
55
|
+
content: "";
|
56
|
+
position: absolute;
|
57
|
+
top: 13px;
|
58
|
+
right: 0;
|
59
|
+
@include govuk-shape-arrow($direction: down, $base: $sort-link-arrow-size-small, $display: block);
|
62
60
|
}
|
63
61
|
}
|
64
62
|
|
@@ -81,12 +79,12 @@ $table-row-even-background-colour: govuk-colour("light-grey", $legacy: "grey-4")
|
|
81
79
|
}
|
82
80
|
}
|
83
81
|
|
84
|
-
.app-table__sort-link--ascending
|
85
|
-
.app-table__sort-link--descending
|
82
|
+
.app-table__sort-link--ascending:before,
|
83
|
+
.app-table__sort-link--descending:before {
|
86
84
|
content: none;
|
87
85
|
}
|
88
86
|
|
89
|
-
.app-table__sort-link--ascending
|
87
|
+
.app-table__sort-link--ascending:after {
|
90
88
|
content: "";
|
91
89
|
position: absolute;
|
92
90
|
top: $sort-link-arrow-spacing;
|
@@ -96,7 +94,7 @@ $table-row-even-background-colour: govuk-colour("light-grey", $legacy: "grey-4")
|
|
96
94
|
@include govuk-shape-arrow($direction: up, $base: $sort-link-arrow-size, $display: inline-block);
|
97
95
|
}
|
98
96
|
|
99
|
-
.app-table__sort-link--descending
|
97
|
+
.app-table__sort-link--descending:after {
|
100
98
|
content: "";
|
101
99
|
position: absolute;
|
102
100
|
top: $sort-link-arrow-spacing;
|
@@ -105,7 +103,6 @@ $table-row-even-background-colour: govuk-colour("light-grey", $legacy: "grey-4")
|
|
105
103
|
|
106
104
|
@include govuk-shape-arrow($direction: down, $base: $sort-link-arrow-size, $display: inline-block);
|
107
105
|
}
|
108
|
-
|
109
106
|
}
|
110
107
|
|
111
108
|
.govuk-table__row {
|
@@ -11,25 +11,21 @@
|
|
11
11
|
// We have some styles within GOVUK (.content-block) which can leak into the list styles for this component.
|
12
12
|
// These styles are defined in Static: https://github.com/alphagov/static/blob/a815620cada7ea1c65428c1c3b3ac4dbe28977bf/app/assets/stylesheets/helpers/_text.scss
|
13
13
|
// This sets more specific selectors so those unwanted styles are overidden
|
14
|
-
//
|
15
|
-
// sass-lint:disable no-qualifying-elements
|
16
|
-
ul.govuk-tabs__list {
|
14
|
+
ul.govuk-tabs__list { // stylelint-disable-line selector-no-qualifying-type
|
17
15
|
margin: 0;
|
18
16
|
padding: 0;
|
19
17
|
list-style: none;
|
20
18
|
@include govuk-responsive-margin(6, "bottom");
|
21
19
|
}
|
22
20
|
|
23
|
-
li.govuk-tabs__list-item {
|
21
|
+
li.govuk-tabs__list-item { // stylelint-disable-line selector-no-qualifying-type
|
24
22
|
margin-left: govuk-spacing(5);
|
25
23
|
}
|
26
24
|
|
27
|
-
.js-enabled {
|
25
|
+
.js-enabled { // stylelint-disable-line no-duplicate-selectors
|
28
26
|
@include govuk-media-query($from: tablet) {
|
29
|
-
ul.govuk-tabs__list {
|
27
|
+
ul.govuk-tabs__list { // stylelint-disable-line selector-no-qualifying-type
|
30
28
|
margin-bottom: 0;
|
31
29
|
}
|
32
30
|
}
|
33
31
|
}
|
34
|
-
// scss-lint:enable QualifyingElement
|
35
|
-
// sass-lint:enable no-qualifying-elements
|
@@ -1,7 +1,6 @@
|
|
1
1
|
@import "govuk/components/button/button";
|
2
2
|
|
3
|
-
//
|
4
|
-
// sass-lint:disable placeholder-in-extend
|
3
|
+
// stylelint-disable scss/at-extend-no-missing-placeholder
|
5
4
|
.gem-c-govspeak {
|
6
5
|
.gem-c-button {
|
7
6
|
@extend .govuk-button;
|
@@ -11,5 +10,3 @@
|
|
11
10
|
@extend .govuk-button--start;
|
12
11
|
}
|
13
12
|
}
|
14
|
-
// sass-lint:enable placeholder-in-extend
|
15
|
-
// scss-lint:enable PlaceholderInExtend
|
@@ -9,6 +9,8 @@
|
|
9
9
|
// adapted from magna-charta example stylesheet
|
10
10
|
// https://github.com/alphagov/magna-charta/blob/master/demo/stylesheets/magna-charta.css
|
11
11
|
|
12
|
+
// stylelint-disable max-nesting-depth
|
13
|
+
|
12
14
|
.gem-c-govspeak {
|
13
15
|
// DEFAULT CHART STYLES
|
14
16
|
|
@@ -27,8 +29,9 @@
|
|
27
29
|
$chart-border: govuk-colour("white"); // Chart border colour
|
28
30
|
$key-border: govuk-colour("white"); // Key border colour
|
29
31
|
$bar-colours: govuk-colour("blue"), govuk-colour("turquoise"), govuk-colour("green"), govuk-colour("light-green"), govuk-colour("yellow"), govuk-colour("orange"), govuk-colour("red"), govuk-colour("bright-purple", $legacy: "bright-red");
|
30
|
-
$bar-
|
31
|
-
$bar-
|
32
|
+
$bar-text-colours: govuk-colour("white"), govuk-colour("black"), govuk-colour("white"), govuk-colour("black"), govuk-colour("black"), govuk-colour("black"), govuk-colour("white"), govuk-colour("white");
|
33
|
+
$bar-cell-colour: govuk-colour("black");
|
34
|
+
$bar-outdented-colour: govuk-colour("black");
|
32
35
|
|
33
36
|
// CHART STYLES
|
34
37
|
.mc-chart {
|
@@ -138,6 +141,7 @@
|
|
138
141
|
@for $i from 0 to length($bar-colours) {
|
139
142
|
.mc-bar-#{$i + 1} {
|
140
143
|
background-color: nth($bar-colours, $i + 1);
|
144
|
+
color: nth($bar-text-colours, $i + 1);
|
141
145
|
}
|
142
146
|
}
|
143
147
|
|
@@ -266,10 +270,6 @@
|
|
266
270
|
text-align: left;
|
267
271
|
}
|
268
272
|
|
269
|
-
.mc-chart.mc-negative .mc-td.mc-key-cell {
|
270
|
-
padding-right: 25px;
|
271
|
-
}
|
272
|
-
|
273
273
|
.mc-toggle-link {
|
274
274
|
display: block;
|
275
275
|
margin-top: 30px;
|
data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
// scss-lint:disable SelectorFormat
|
2
|
-
|
3
1
|
$grey-2: #bfc1c3;
|
4
2
|
$white: #ffffff;
|
5
3
|
$number-circle-size: 35px;
|
@@ -40,6 +38,7 @@ $stroke-width: 3px;
|
|
40
38
|
}
|
41
39
|
|
42
40
|
.gem-c-step-nav__step {
|
41
|
+
padding-left: 60px;
|
43
42
|
position: relative;
|
44
43
|
}
|
45
44
|
|
@@ -74,14 +73,9 @@ $stroke-width: 3px;
|
|
74
73
|
padding-bottom: 1em;
|
75
74
|
}
|
76
75
|
|
77
|
-
.gem-c-step-nav__step {
|
78
|
-
position: relative;
|
79
|
-
padding-left: 60px;
|
80
|
-
}
|
81
|
-
|
82
76
|
.gem-c-step-nav__title {
|
83
77
|
@include govuk-font(19, $weight: bold);
|
84
|
-
margin: 0 0 .5em
|
78
|
+
margin: 0 0 .5em;
|
85
79
|
padding: 0;
|
86
80
|
}
|
87
81
|
|
@@ -120,5 +114,3 @@ $stroke-width: 3px;
|
|
120
114
|
.gem-c-step-nav__circle-step-colon {
|
121
115
|
display: none;
|
122
116
|
}
|
123
|
-
|
124
|
-
// scss-lint:enable SelectorFormat
|
@@ -7,8 +7,8 @@ module GovukPublishingComponents
|
|
7
7
|
applications = analyse_applications(File.expand_path("..", path))
|
8
8
|
compared_data = AuditComparer.new(components.data, applications)
|
9
9
|
|
10
|
-
@applications = compared_data.
|
11
|
-
@components = compared_data.gem_data
|
10
|
+
@applications = compared_data.applications_data || []
|
11
|
+
@components = compared_data.gem_data || []
|
12
12
|
end
|
13
13
|
|
14
14
|
private
|