govuk_publishing_components 41.0.0 → 41.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +192 -171
- data/app/assets/stylesheets/component_guide/application.scss +10 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +60 -23
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +1 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +2 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +19 -19
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +14 -10
- data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +8 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +16 -10
- data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +33 -35
- data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +13 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +4 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +3 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +10 -10
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +5 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +5 -5
- data/app/views/govuk_publishing_components/components/_cards.html.erb +11 -3
- data/app/views/govuk_publishing_components/components/docs/cards.yml +40 -29
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/axe.d.ts +18 -5
- data/node_modules/axe-core/axe.js +757 -716
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/locales/_template.json +101 -96
- data/node_modules/axe-core/locales/de.json +12 -5
- data/node_modules/axe-core/locales/ja.json +15 -7
- data/node_modules/axe-core/package.json +14 -10
- data/node_modules/axe-core/sri-history.json +4 -0
- metadata +4 -4
@@ -31,11 +31,11 @@
|
|
31
31
|
}
|
32
32
|
|
33
33
|
.gem-c-button__info-text {
|
34
|
-
@include govuk-text-colour;
|
35
|
-
@include govuk-font($size: 16);
|
36
34
|
display: block;
|
37
35
|
max-width: 14em;
|
38
36
|
margin-top: .5em;
|
37
|
+
@include govuk-text-colour;
|
38
|
+
@include govuk-font($size: 16);
|
39
39
|
}
|
40
40
|
|
41
41
|
.gem-c-button--secondary {
|
@@ -3,29 +3,22 @@
|
|
3
3
|
@import "mixins/prefixed-transform";
|
4
4
|
|
5
5
|
.gem-c-cards__heading {
|
6
|
-
|
6
|
+
@include govuk-responsive-margin(6, "bottom");
|
7
|
+
}
|
8
|
+
|
9
|
+
.gem-c-cards__heading--underline + .gem-c-cards__list {
|
10
|
+
border-top: 1px solid $govuk-border-colour;
|
7
11
|
}
|
8
12
|
|
9
13
|
.gem-c-cards__list {
|
10
14
|
list-style: none;
|
11
15
|
padding: 0;
|
12
|
-
|
13
|
-
margin: 0 govuk-spacing(-3);
|
14
|
-
|
16
|
+
margin: 0;
|
15
17
|
display: grid;
|
16
|
-
grid-
|
17
|
-
|
18
|
-
grid-template-columns: fractions(1);
|
19
|
-
|
20
|
-
@include govuk-media-query($from: "tablet") {
|
21
|
-
grid-template-columns: fractions(2);
|
22
|
-
}
|
18
|
+
grid-column-gap: govuk-spacing(6); // Use deprecated grid-column-gap for Grade C browser support
|
19
|
+
column-gap: govuk-spacing(6);
|
23
20
|
|
24
21
|
@include govuk-media-query($from: "desktop") {
|
25
|
-
// Note that browsers that don't support CSS grid display the component as one column on all
|
26
|
-
// breakpoints
|
27
|
-
grid-template-columns: fractions(3);
|
28
|
-
|
29
22
|
// For browsers that don't support CSS grid, constrain the width to 50% to improve usability
|
30
23
|
// especially for screen magnifier users
|
31
24
|
width: 50%;
|
@@ -37,17 +30,30 @@
|
|
37
30
|
}
|
38
31
|
}
|
39
32
|
|
33
|
+
.gem-c-cards__list--one-column {
|
34
|
+
.gem-c-cards__list-item {
|
35
|
+
&:first-child {
|
36
|
+
border-top: 0;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
40
41
|
.gem-c-cards__list--two-column-desktop {
|
42
|
+
@include govuk-media-query($from: "tablet") {
|
43
|
+
grid-auto-rows: fractions(1); // Set all rows to same fractional height of the complete grid
|
44
|
+
grid-template-columns: fractions(2); // Note that browsers that don't support CSS grid display the component as one column on all breakpoints
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.gem-c-cards__list--three-column-desktop {
|
41
49
|
@include govuk-media-query($from: "desktop") {
|
42
|
-
grid-
|
50
|
+
grid-auto-rows: fractions(1); // Set all rows to same fractional height of the complete grid
|
51
|
+
grid-template-columns: fractions(3); // Note that browsers that don't support CSS grid display the component as one column on all breakpoints
|
43
52
|
}
|
44
53
|
}
|
45
54
|
|
46
55
|
.gem-c-cards__list-item {
|
47
56
|
border-top: 1px solid $govuk-border-colour;
|
48
|
-
// We use grid to split the container into column widths, so manage the horizontal spacing with
|
49
|
-
// internal margins.
|
50
|
-
margin: 0 govuk-spacing(3);
|
51
57
|
padding: govuk-spacing(1) 0 govuk-spacing(4) 0;
|
52
58
|
}
|
53
59
|
|
@@ -55,12 +61,17 @@
|
|
55
61
|
// this wrapper ensures that the clickable area of the card only
|
56
62
|
// covers the area of the card containing text so in a grid of cards
|
57
63
|
// there is space above and below each link
|
58
|
-
padding:
|
64
|
+
padding: 19px 0 4px;
|
59
65
|
position: relative;
|
60
66
|
}
|
61
67
|
|
62
68
|
.gem-c-cards__sub-heading {
|
63
|
-
margin
|
69
|
+
margin: 0 govuk-spacing(6) govuk-spacing(2) 0;
|
70
|
+
|
71
|
+
// Ensure card content width is constrained to two thirds on desktop
|
72
|
+
@include govuk-media-query($from: "desktop") {
|
73
|
+
max-width: 66.6667%;
|
74
|
+
}
|
64
75
|
}
|
65
76
|
|
66
77
|
.gem-c-cards__link {
|
@@ -81,10 +92,12 @@
|
|
81
92
|
border-right: $width solid $govuk-brand-colour;
|
82
93
|
border-top: $width solid $govuk-brand-colour;
|
83
94
|
content: "";
|
95
|
+
display: block;
|
84
96
|
height: $dimension;
|
85
97
|
position: absolute;
|
86
98
|
right: govuk-spacing(1);
|
87
|
-
top:
|
99
|
+
top: 50%;
|
100
|
+
margin-top: 5px;
|
88
101
|
@include prefixed-transform($rotate: 45deg);
|
89
102
|
width: $dimension;
|
90
103
|
}
|
@@ -103,7 +116,31 @@
|
|
103
116
|
}
|
104
117
|
|
105
118
|
.gem-c-cards__description {
|
106
|
-
margin: 0 govuk-spacing(
|
119
|
+
margin: 0 govuk-spacing(6) 0 0;
|
120
|
+
|
121
|
+
// Ensure card content width is constrained to two thirds on desktop
|
122
|
+
@include govuk-media-query($from: "desktop") {
|
123
|
+
max-width: 66.6667%;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
.gem-c-cards__list--two-column-desktop,
|
128
|
+
.gem-c-cards__list--three-column-desktop {
|
129
|
+
.gem-c-cards__sub-heading {
|
130
|
+
max-width: 100%;
|
131
|
+
}
|
132
|
+
|
133
|
+
.gem-c-cards__description {
|
134
|
+
margin: 0;
|
135
|
+
max-width: 100%;
|
136
|
+
}
|
137
|
+
|
138
|
+
.gem-c-cards__link {
|
139
|
+
&::before {
|
140
|
+
top: 27px;
|
141
|
+
margin: 0;
|
142
|
+
}
|
143
|
+
}
|
107
144
|
}
|
108
145
|
|
109
146
|
@include govuk-media-query($media-type: print) {
|
@@ -12,18 +12,18 @@
|
|
12
12
|
}
|
13
13
|
|
14
14
|
.gem-c-contents-list__title {
|
15
|
+
margin: 0;
|
15
16
|
@include govuk-text-colour;
|
16
17
|
@include govuk-font($size: 16, $weight: regular, $line-height: 1.5);
|
17
|
-
margin: 0;
|
18
18
|
}
|
19
19
|
|
20
20
|
.gem-c-contents-list__list,
|
21
21
|
.gem-c-contents-list__nested-list {
|
22
|
-
@include govuk-text-colour;
|
23
|
-
@include govuk-font($size: 16);
|
24
22
|
margin: 0;
|
25
23
|
padding: 0;
|
26
24
|
list-style-type: none;
|
25
|
+
@include govuk-text-colour;
|
26
|
+
@include govuk-font($size: 16);
|
27
27
|
}
|
28
28
|
|
29
29
|
.gem-c-contents-list__link {
|
data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss
CHANGED
@@ -47,17 +47,6 @@ $govuk-header-link-underline-thickness: 3px;
|
|
47
47
|
|
48
48
|
.gem-c-cross-service-header__button {
|
49
49
|
display: none;
|
50
|
-
|
51
|
-
.toggle-enabled & {
|
52
|
-
display: inline;
|
53
|
-
display: flex;
|
54
|
-
|
55
|
-
@include govuk-media-query($from: tablet) {
|
56
|
-
display: none;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
@include govuk-font($size: 19, $weight: bold);
|
61
50
|
position: relative;
|
62
51
|
align-items: center;
|
63
52
|
cursor: pointer;
|
@@ -68,6 +57,17 @@ $govuk-header-link-underline-thickness: 3px;
|
|
68
57
|
padding: govuk-spacing(2) 0 govuk-spacing(1) govuk-spacing(4);
|
69
58
|
background: none;
|
70
59
|
|
60
|
+
@include govuk-font($size: 19, $weight: bold);
|
61
|
+
|
62
|
+
.toggle-enabled & {
|
63
|
+
display: inline;
|
64
|
+
display: flex;
|
65
|
+
|
66
|
+
@include govuk-media-query($from: tablet) {
|
67
|
+
display: none;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
71
|
&::before {
|
72
72
|
content: "";
|
73
73
|
position: absolute;
|
@@ -141,11 +141,11 @@ $govuk-header-link-underline-thickness: 3px;
|
|
141
141
|
|
142
142
|
// start One Login header styles
|
143
143
|
.gem-c-one-login-header {
|
144
|
-
@include govuk-font($size: 19);
|
145
144
|
color: govuk-colour("white");
|
146
145
|
background: govuk-colour("black");
|
147
146
|
border-bottom: govuk-spacing(2) solid $govuk-link-colour;
|
148
147
|
position: relative;
|
148
|
+
@include govuk-font($size: 19);
|
149
149
|
}
|
150
150
|
|
151
151
|
.gem-c-one-login-header__container {
|
@@ -171,9 +171,9 @@ $govuk-header-link-underline-thickness: 3px;
|
|
171
171
|
.gem-c-one-login-header__nav__link {
|
172
172
|
&:link,
|
173
173
|
&:visited {
|
174
|
+
text-decoration: none;
|
174
175
|
@include govuk-typography-common;
|
175
176
|
@include govuk-link-style-inverse;
|
176
|
-
text-decoration: none;
|
177
177
|
|
178
178
|
&:hover {
|
179
179
|
text-decoration: underline;
|
@@ -235,15 +235,15 @@ $govuk-header-link-underline-thickness: 3px;
|
|
235
235
|
}
|
236
236
|
|
237
237
|
.gem-c-one-login-header__link--homepage {
|
238
|
-
// Font size needs to be set on the link so that the box sizing is correct
|
239
|
-
// in Firefox
|
240
|
-
@include govuk-font($size: false, $weight: bold);
|
241
|
-
|
242
238
|
display: inline-block;
|
243
239
|
margin-right: govuk-spacing(2);
|
244
240
|
font-size: 30px; // We don't have a mixin that produces 30px font size
|
245
241
|
line-height: 1;
|
246
242
|
|
243
|
+
// Font size needs to be set on the link so that the box sizing is correct
|
244
|
+
// in Firefox
|
245
|
+
@include govuk-font($size: false, $weight: bold);
|
246
|
+
|
247
247
|
@include govuk-media-query($from: tablet) {
|
248
248
|
display: inline;
|
249
249
|
|
@@ -366,11 +366,11 @@ $govuk-header-link-underline-thickness: 3px;
|
|
366
366
|
}
|
367
367
|
|
368
368
|
.gem-c-service-header__heading {
|
369
|
-
@include govuk-font($size: 24, $weight: bold);
|
370
369
|
color: $govuk-text-colour;
|
371
370
|
padding: govuk-spacing(3) 0;
|
372
371
|
margin: 0;
|
373
372
|
flex-grow: 1;
|
373
|
+
@include govuk-font($size: 24, $weight: bold);
|
374
374
|
|
375
375
|
@include govuk-media-query($until: tablet) {
|
376
376
|
padding: govuk-spacing(1) 0;
|
@@ -382,10 +382,10 @@ $govuk-header-link-underline-thickness: 3px;
|
|
382
382
|
}
|
383
383
|
|
384
384
|
.gem-c-service-header__nav-list {
|
385
|
-
@include govuk-font($size: 19, $weight: bold);
|
386
385
|
list-style: none;
|
387
386
|
margin: 0;
|
388
387
|
padding: 0;
|
388
|
+
@include govuk-font($size: 19, $weight: bold);
|
389
389
|
|
390
390
|
@include govuk-media-query($from: tablet) {
|
391
391
|
@include govuk-font($size: 19, $weight: bold);
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@import "govuk_publishing_components/individual_component_support";
|
2
2
|
|
3
3
|
.gem-c-document-list {
|
4
|
-
@include govuk-text-colour;
|
5
|
-
@include govuk-font(19);
|
6
4
|
margin: 0;
|
7
5
|
padding: 0;
|
6
|
+
@include govuk-text-colour;
|
7
|
+
@include govuk-font(19);
|
8
8
|
}
|
9
9
|
|
10
10
|
.gem-c-document-list__item {
|
@@ -19,8 +19,8 @@
|
|
19
19
|
}
|
20
20
|
|
21
21
|
.gem-c-document-list__item-title {
|
22
|
-
@include govuk-font($size: 19, $weight: bold);
|
23
22
|
display: inline-block;
|
23
|
+
@include govuk-font($size: 19, $weight: bold);
|
24
24
|
}
|
25
25
|
|
26
26
|
.gem-c-document-list--no-underline {
|
@@ -57,8 +57,8 @@
|
|
57
57
|
}
|
58
58
|
|
59
59
|
.gem-c-document-list__item-description {
|
60
|
-
@include govuk-text-colour;
|
61
60
|
margin: govuk-spacing(1) 0;
|
61
|
+
@include govuk-text-colour;
|
62
62
|
}
|
63
63
|
|
64
64
|
.gem-c-document-list__subtext {
|
@@ -79,12 +79,16 @@
|
|
79
79
|
}
|
80
80
|
|
81
81
|
.gem-c-document-list__attribute {
|
82
|
-
@include govuk-text-colour;
|
83
|
-
@include govuk-font(16);
|
84
|
-
color: $govuk-secondary-text-colour;
|
85
82
|
display: inline-block;
|
86
83
|
list-style: none;
|
87
84
|
padding-right: govuk-spacing(4);
|
85
|
+
@include govuk-text-colour;
|
86
|
+
@include govuk-font(16);
|
87
|
+
|
88
|
+
& { // stylelint-disable-line no-duplicate-selectors
|
89
|
+
// overriding govuk-text-colour mixin
|
90
|
+
color: $govuk-secondary-text-colour;
|
91
|
+
}
|
88
92
|
|
89
93
|
.direction-rtl & {
|
90
94
|
padding-right: 0;
|
@@ -103,8 +107,8 @@
|
|
103
107
|
}
|
104
108
|
|
105
109
|
.gem-c-document-list__highlight-text {
|
106
|
-
@include govuk-font(16, bold);
|
107
110
|
margin: 0 0 govuk-spacing(3) 0;
|
111
|
+
@include govuk-font(16, bold);
|
108
112
|
}
|
109
113
|
|
110
114
|
.gem-c-document-list__children {
|
@@ -125,10 +129,10 @@
|
|
125
129
|
}
|
126
130
|
|
127
131
|
.gem-c-document-list-child {
|
128
|
-
@include govuk-font($size: 16);
|
129
132
|
position: relative;
|
130
133
|
padding-left: govuk-spacing(5);
|
131
134
|
padding-top: govuk-spacing(2);
|
135
|
+
@include govuk-font($size: 16);
|
132
136
|
|
133
137
|
&::before {
|
134
138
|
content: "";
|
@@ -171,9 +175,9 @@
|
|
171
175
|
}
|
172
176
|
|
173
177
|
.gem-c-document-list-child__description {
|
174
|
-
@include govuk-text-colour;
|
175
178
|
margin-top: govuk-spacing(1);
|
176
179
|
margin-bottom: govuk-spacing(1);
|
180
|
+
@include govuk-text-colour;
|
177
181
|
|
178
182
|
@include govuk-media-query($until: tablet) {
|
179
183
|
display: none;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
@import "govuk_publishing_components/individual_component_support";
|
2
2
|
|
3
3
|
.gem-c-emergency-banner {
|
4
|
-
@include govuk-font(19);
|
5
4
|
background-color: govuk-colour("mid-grey");
|
6
5
|
color: govuk-colour("white");
|
7
6
|
margin-top: 2px;
|
8
7
|
padding: govuk-spacing(3) 0;
|
8
|
+
@include govuk-font(19);
|
9
9
|
|
10
10
|
@include govuk-media-query($from: tablet) {
|
11
11
|
padding: govuk-spacing(6) 0;
|
@@ -22,8 +22,8 @@
|
|
22
22
|
}
|
23
23
|
|
24
24
|
.gem-c-emergency-banner__heading {
|
25
|
-
@include govuk-font(24, $weight: bold);
|
26
25
|
margin: 0;
|
26
|
+
@include govuk-font(24, $weight: bold);
|
27
27
|
}
|
28
28
|
|
29
29
|
.gem-c-emergency-banner__heading--homepage {
|
@@ -35,10 +35,10 @@
|
|
35
35
|
}
|
36
36
|
|
37
37
|
.gem-c-emergency-banner__description {
|
38
|
-
@include govuk-font(19);
|
39
38
|
color: govuk-colour("white");
|
40
39
|
margin-top: 0;
|
41
40
|
margin-bottom: govuk-spacing(4);
|
41
|
+
@include govuk-font(19);
|
42
42
|
|
43
43
|
&:last-child {
|
44
44
|
margin-bottom: 0;
|
@@ -13,8 +13,8 @@
|
|
13
13
|
}
|
14
14
|
|
15
15
|
.gem-c-error-alert__message {
|
16
|
-
@include govuk-font(19, $weight: bold);
|
17
16
|
margin: 0;
|
17
|
+
@include govuk-font(19, $weight: bold);
|
18
18
|
}
|
19
19
|
|
20
20
|
.gem-c-error-summary__title {
|
@@ -29,8 +29,8 @@
|
|
29
29
|
}
|
30
30
|
|
31
31
|
.gem-c-error-summary__body {
|
32
|
-
@include govuk-font(19);
|
33
32
|
margin: 0;
|
33
|
+
@include govuk-font(19);
|
34
34
|
}
|
35
35
|
|
36
36
|
.gem-c-error-alert:focus {
|
@@ -93,13 +93,13 @@
|
|
93
93
|
}
|
94
94
|
|
95
95
|
.gem-c-feedback__prompt-link {
|
96
|
-
@include govuk-font(19);
|
97
96
|
background: transparent;
|
98
97
|
color: govuk-colour("black");
|
99
98
|
box-shadow: 0 3px 0 govuk-colour("black");
|
100
99
|
border: 1px govuk-colour("black") solid;
|
101
100
|
margin-bottom: 0;
|
102
101
|
width: 100%;
|
102
|
+
@include govuk-font(19);
|
103
103
|
|
104
104
|
@include govuk-media-query($from: tablet) {
|
105
105
|
@include govuk-font(16);
|
@@ -173,15 +173,15 @@
|
|
173
173
|
|
174
174
|
// this comes from the backend so we can't put a class on it
|
175
175
|
h2 {
|
176
|
+
margin: 0 0 govuk-spacing(3) 0;
|
176
177
|
@include govuk-text-colour;
|
177
178
|
@include govuk-font($size: 24, $weight: bold);
|
178
|
-
margin: 0 0 govuk-spacing(3) 0;
|
179
179
|
}
|
180
180
|
|
181
181
|
p {
|
182
|
+
margin: 0 0 govuk-spacing(3) 0;
|
182
183
|
@include govuk-text-colour;
|
183
184
|
@include govuk-font($size: 19);
|
184
|
-
margin: 0 0 govuk-spacing(3) 0;
|
185
185
|
}
|
186
186
|
|
187
187
|
a {
|
@@ -192,10 +192,10 @@
|
|
192
192
|
}
|
193
193
|
|
194
194
|
.gem-c-feedback__error-message {
|
195
|
-
@include govuk-font(19, $weight: bold);
|
196
195
|
display: block;
|
197
196
|
padding: 4px 0 0;
|
198
197
|
color: $govuk-error-colour;
|
198
|
+
@include govuk-font(19, $weight: bold);
|
199
199
|
}
|
200
200
|
|
201
201
|
.gem-c-feedback__form {
|
@@ -208,21 +208,21 @@
|
|
208
208
|
}
|
209
209
|
|
210
210
|
.gem-c-feedback__form-heading {
|
211
|
+
margin: 0 0 govuk-spacing(3) 0;
|
211
212
|
@include govuk-text-colour;
|
212
213
|
@include govuk-font(24, $weight: bold);
|
213
|
-
margin: 0 0 govuk-spacing(3) 0;
|
214
214
|
}
|
215
215
|
|
216
216
|
.gem-c-feedback__form-paragraph {
|
217
|
+
margin: 0 0 govuk-spacing(6) 0;
|
217
218
|
@include govuk-text-colour;
|
218
219
|
@include govuk-font(19);
|
219
|
-
margin: 0 0 govuk-spacing(6) 0;
|
220
220
|
}
|
221
221
|
|
222
222
|
.gem-c-feedback__form-label {
|
223
|
-
@include govuk-font(16);
|
224
223
|
display: block;
|
225
224
|
padding-bottom: govuk-spacing(3);
|
225
|
+
@include govuk-font(16);
|
226
226
|
}
|
227
227
|
|
228
228
|
.gem-c-feedback__close {
|
@@ -249,10 +249,10 @@
|
|
249
249
|
// static.css on GOV.UK overwrites the component styles using input[type="text"]
|
250
250
|
// so we need to apply govuk-input styles using a stronger selector
|
251
251
|
.gem-c-feedback .gem-c-input[type="text"] {
|
252
|
-
@include govuk-font($size: 19);
|
253
252
|
margin: 0;
|
254
253
|
padding: govuk-spacing(1);
|
255
254
|
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
255
|
+
@include govuk-font($size: 19);
|
256
256
|
|
257
257
|
&:focus {
|
258
258
|
outline: $govuk-focus-width solid $govuk-focus-colour;
|
@@ -1,14 +1,14 @@
|
|
1
1
|
@import "govuk_publishing_components/individual_component_support";
|
2
2
|
|
3
3
|
.gem-c-image-card {
|
4
|
-
@include govuk-clearfix;
|
5
|
-
@include govuk-text-colour;
|
6
4
|
position: relative;
|
7
5
|
margin-bottom: govuk-spacing(6);
|
8
6
|
display: flex;
|
9
7
|
display: -ms-flexbox;
|
10
8
|
flex-direction: column-reverse;
|
11
9
|
-ms-flex-direction: column-reverse;
|
10
|
+
@include govuk-text-colour;
|
11
|
+
@include govuk-clearfix;
|
12
12
|
|
13
13
|
@include govuk-media-query($from: mobile, $until: tablet) {
|
14
14
|
display: block;
|
@@ -183,11 +183,11 @@
|
|
183
183
|
|
184
184
|
.gem-c-image-card__context,
|
185
185
|
.gem-c-image-card__metadata {
|
186
|
-
@include govuk-font($size: false);
|
187
186
|
font-size: 16px;
|
188
187
|
font-size: govuk-px-to-rem(16px);
|
189
188
|
margin: 0 0 calc(govuk-spacing(3) / 2);
|
190
189
|
color: govuk-colour("dark-grey");
|
190
|
+
@include govuk-font($size: false);
|
191
191
|
|
192
192
|
@include govuk-media-query($from: tablet) {
|
193
193
|
margin-bottom: 0;
|
@@ -195,18 +195,18 @@
|
|
195
195
|
}
|
196
196
|
|
197
197
|
.gem-c-image-card__description {
|
198
|
-
@include govuk-font($size: 19);
|
199
198
|
padding-top: calc(govuk-spacing(3) / 2);
|
200
199
|
word-wrap: break-word;
|
200
|
+
@include govuk-font($size: 19);
|
201
201
|
}
|
202
202
|
|
203
203
|
.gem-c-image-card__list {
|
204
|
-
@include govuk-font($size: 19);
|
205
204
|
position: relative;
|
206
205
|
z-index: 2;
|
207
206
|
padding: calc(govuk-spacing(3) / 2) 0 0 0;
|
208
207
|
margin: 0;
|
209
208
|
list-style: none;
|
209
|
+
@include govuk-font($size: 19);
|
210
210
|
|
211
211
|
.gem-c-image-card__list-item {
|
212
212
|
margin-bottom: govuk-spacing(2);
|
@@ -245,13 +245,16 @@
|
|
245
245
|
|
246
246
|
.gem-c-image-card--large {
|
247
247
|
.gem-c-image-card__image-wrapper {
|
248
|
-
@include govuk-grid-column($width: one-half, $at: tablet);
|
249
|
-
|
250
248
|
margin-bottom: govuk-spacing(2);
|
251
249
|
float: none;
|
252
250
|
width: auto;
|
253
251
|
max-width: 100%;
|
254
|
-
|
252
|
+
@include govuk-grid-column($width: one-half, $at: tablet);
|
253
|
+
|
254
|
+
& { // stylelint-disable-line no-duplicate-selectors
|
255
|
+
// overriding the padding from govuk-grid-column mixin
|
256
|
+
padding: 0;
|
257
|
+
}
|
255
258
|
|
256
259
|
@include govuk-media-query($from: tablet) {
|
257
260
|
padding: 0 govuk-spacing(2) 0 0;
|
@@ -260,10 +263,13 @@
|
|
260
263
|
}
|
261
264
|
|
262
265
|
.gem-c-image-card__text-wrapper {
|
266
|
+
overflow: hidden;
|
263
267
|
@include govuk-grid-column($width: one-half, $at: tablet);
|
264
268
|
|
265
|
-
|
266
|
-
|
269
|
+
& { // stylelint-disable-line no-duplicate-selectors
|
270
|
+
// overriding the padding from govuk-grid-column mixin
|
271
|
+
padding: 0;
|
272
|
+
}
|
267
273
|
|
268
274
|
@include govuk-media-query($from: tablet) {
|
269
275
|
float: right;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
@import "govuk_publishing_components/individual_component_support";
|
2
2
|
|
3
3
|
.gem-c-intervention {
|
4
|
+
background-color: govuk-colour("light-grey");
|
5
|
+
border-left: 10px solid $govuk-success-colour;
|
4
6
|
@include govuk-text-colour;
|
5
7
|
@include govuk-responsive-padding(3);
|
6
8
|
@include govuk-responsive-margin(6, "bottom");
|
7
|
-
background-color: govuk-colour("light-grey");
|
8
|
-
border-left: 10px solid $govuk-success-colour;
|
9
9
|
|
10
10
|
.govuk-body:last-of-type {
|
11
11
|
margin-bottom: 0;
|
@@ -11,11 +11,11 @@
|
|
11
11
|
|
12
12
|
.gem-c-inverse-header .gem-c-inverse-header__supplement,
|
13
13
|
.gem-c-inverse-header .publication-header__last-changed {
|
14
|
+
color: govuk-colour("white");
|
15
|
+
margin: 0;
|
14
16
|
// This publication-header class is injected on publication pages, really
|
15
17
|
// it should be a component class or be a component in it's own right.
|
16
18
|
@include govuk-font($size: 16, $line-height: 1.5);
|
17
|
-
color: govuk-colour("white");
|
18
|
-
margin: 0;
|
19
19
|
}
|
20
20
|
|
21
21
|
.gem-c-inverse-header--full-width {
|