dxw_govuk_frontend_rails 3.10.2 → 3.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +61 -40
- data/lib/dxw_govuk_frontend_rails/version.rb +1 -1
- data/package-lock.json +22 -4
- data/package.json +1 -1
- data/vendor/assets/javascripts/govuk_frontend_rails.js +62 -4
- data/vendor/assets/stylesheets/components/_all.scss +1 -0
- data/vendor/assets/stylesheets/components/accordion/_index.scss +7 -16
- data/vendor/assets/stylesheets/components/back-link/_index.scss +4 -15
- data/vendor/assets/stylesheets/components/breadcrumbs/_index.scss +1 -0
- data/vendor/assets/stylesheets/components/button/_index.scss +15 -8
- data/vendor/assets/stylesheets/components/character-count/_index.scss +1 -0
- data/vendor/assets/stylesheets/components/checkboxes/_index.scss +63 -34
- data/vendor/assets/stylesheets/components/cookie-banner/_cookie-banner.scss +2 -0
- data/vendor/assets/stylesheets/components/cookie-banner/_index.scss +51 -0
- data/vendor/assets/stylesheets/components/details/_index.scss +7 -2
- data/vendor/assets/stylesheets/components/file-upload/_index.scss +14 -14
- data/vendor/assets/stylesheets/components/footer/_index.scss +39 -29
- data/vendor/assets/stylesheets/components/header/_index.scss +44 -22
- data/vendor/assets/stylesheets/components/input/_index.scss +4 -0
- data/vendor/assets/stylesheets/components/panel/_index.scss +13 -1
- data/vendor/assets/stylesheets/components/phase-banner/_index.scss +1 -1
- data/vendor/assets/stylesheets/components/radios/_index.scss +14 -0
- data/vendor/assets/stylesheets/components/skip-link/_index.scss +3 -1
- data/vendor/assets/stylesheets/components/table/_index.scss +21 -0
- data/vendor/assets/stylesheets/components/tabs/_index.scss +1 -6
- data/vendor/assets/stylesheets/components/warning-text/_index.scss +10 -1
- data/vendor/assets/stylesheets/core/_links.scss +8 -0
- data/vendor/assets/stylesheets/core/_template.scss +0 -1
- data/vendor/assets/stylesheets/helpers/_colour.scss +2 -2
- data/vendor/assets/stylesheets/helpers/_links.scss +159 -38
- data/vendor/assets/stylesheets/helpers/_spacing.scss +22 -4
- data/vendor/assets/stylesheets/objects/_all.scss +1 -0
- data/vendor/assets/stylesheets/objects/_button-group.scss +101 -0
- data/vendor/assets/stylesheets/objects/_width-container.scss +4 -0
- data/vendor/assets/stylesheets/overrides/_all.scss +1 -0
- data/vendor/assets/stylesheets/overrides/_text-align.scss +20 -0
- data/vendor/assets/stylesheets/settings/_all.scss +2 -0
- data/vendor/assets/stylesheets/settings/_links.scss +62 -0
- metadata +8 -3
@@ -34,7 +34,11 @@
|
|
34
34
|
|
35
35
|
// ...but only underline the text, not the arrow
|
36
36
|
.govuk-details__summary-text {
|
37
|
-
|
37
|
+
@include govuk-link-decoration;
|
38
|
+
}
|
39
|
+
|
40
|
+
.govuk-details__summary:hover .govuk-details__summary-text {
|
41
|
+
@include govuk-link-hover-decoration;
|
38
42
|
}
|
39
43
|
|
40
44
|
// Remove the underline when focussed to avoid duplicate borders
|
@@ -67,7 +71,8 @@
|
|
67
71
|
}
|
68
72
|
|
69
73
|
.govuk-details__text {
|
70
|
-
padding: govuk-spacing(3);
|
74
|
+
padding-top: govuk-spacing(3);
|
75
|
+
padding-bottom: govuk-spacing(3);
|
71
76
|
padding-left: govuk-spacing(4);
|
72
77
|
border-left: $govuk-border-width solid $govuk-border-colour;
|
73
78
|
}
|
@@ -8,17 +8,22 @@
|
|
8
8
|
.govuk-file-upload {
|
9
9
|
@include govuk-font($size: 19);
|
10
10
|
@include govuk-text-colour;
|
11
|
-
|
12
|
-
|
11
|
+
max-width: 100%;
|
12
|
+
margin-left: -$component-padding;
|
13
|
+
padding: $component-padding;
|
14
|
+
|
15
|
+
// The default file upload button in Safari does not
|
16
|
+
// support setting a custom font-size. Set `-webkit-appearance`
|
17
|
+
// to `button` to drop out of the native appearance so the
|
18
|
+
// font-size is set to 19px
|
19
|
+
// https://bugs.webkit.org/show_bug.cgi?id=224746
|
20
|
+
&::-webkit-file-upload-button {
|
21
|
+
-webkit-appearance: button;
|
22
|
+
color: inherit;
|
23
|
+
font: inherit;
|
24
|
+
}
|
13
25
|
|
14
26
|
&:focus {
|
15
|
-
// "Yank" the padding with negative margin to avoid a jump
|
16
|
-
// when element is focused
|
17
|
-
margin-right: -$component-padding;
|
18
|
-
margin-left: -$component-padding;
|
19
|
-
padding-right: $component-padding;
|
20
|
-
padding-left: $component-padding;
|
21
|
-
|
22
27
|
outline: $govuk-focus-width solid $govuk-focus-colour;
|
23
28
|
// Use `box-shadow` to add border instead of changing `border-width`
|
24
29
|
// (which changes element size) and since `outline` is already used for the
|
@@ -37,11 +42,6 @@
|
|
37
42
|
// to recognise `focus-within` and don't set any styles from the block
|
38
43
|
// when it's a selector.
|
39
44
|
&:focus-within {
|
40
|
-
margin-right: -$component-padding;
|
41
|
-
margin-left: -$component-padding;
|
42
|
-
padding-right: $component-padding;
|
43
|
-
padding-left: $component-padding;
|
44
|
-
|
45
45
|
outline: $govuk-focus-width solid $govuk-focus-colour;
|
46
46
|
|
47
47
|
box-shadow: inset 0 0 0 4px $govuk-input-border-colour;
|
@@ -6,17 +6,13 @@
|
|
6
6
|
// as it'll just be the same as $govuk-footer-border.
|
7
7
|
$govuk-footer-border-top: $govuk-border-colour;
|
8
8
|
$govuk-footer-text: $govuk-text-colour;
|
9
|
-
$govuk-footer-link:
|
10
|
-
$govuk-footer-link-hover: false;
|
9
|
+
$govuk-footer-link-hover-colour: null; // Only used with the legacy palette
|
11
10
|
|
12
11
|
@if ($govuk-use-legacy-palette) {
|
13
12
|
$govuk-footer-border-top: #a1acb2;
|
14
13
|
$govuk-footer-border: govuk-colour("grey-2");
|
15
14
|
$govuk-footer-text: #454a4c;
|
16
|
-
$govuk-footer-link:
|
17
|
-
|
18
|
-
// Only used with the legacy palette
|
19
|
-
$govuk-footer-link-hover: #171819;
|
15
|
+
$govuk-footer-link-hover-colour: #171819;
|
20
16
|
}
|
21
17
|
|
22
18
|
// Based on the govuk-crest-2x.png image dimensions.
|
@@ -37,27 +33,20 @@
|
|
37
33
|
}
|
38
34
|
|
39
35
|
.govuk-footer__link {
|
36
|
+
@include govuk-link-common;
|
37
|
+
|
40
38
|
@if ($govuk-use-legacy-palette) {
|
41
39
|
&:link,
|
42
40
|
&:visited {
|
43
|
-
color: $govuk-footer-
|
41
|
+
color: $govuk-footer-text;
|
44
42
|
}
|
45
43
|
|
46
44
|
&:hover,
|
47
45
|
&:active {
|
48
|
-
color: $govuk-footer-link-hover;
|
46
|
+
color: $govuk-footer-link-hover-colour;
|
49
47
|
}
|
50
48
|
} @else {
|
51
|
-
|
52
|
-
&:visited,
|
53
|
-
&:hover,
|
54
|
-
&:active {
|
55
|
-
color: $govuk-footer-link;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
&:focus {
|
60
|
-
@include govuk-focused-text;
|
49
|
+
@include govuk-link-style-text;
|
61
50
|
}
|
62
51
|
|
63
52
|
// alphagov/govuk_template includes a specific a:link:focus selector
|
@@ -79,16 +68,20 @@
|
|
79
68
|
|
80
69
|
.govuk-footer__meta {
|
81
70
|
display: -webkit-box;
|
71
|
+
display: -webkit-flex;
|
82
72
|
display: -ms-flexbox;
|
83
73
|
display: flex; // Support: Flexbox
|
84
74
|
margin-right: -$govuk-gutter-half;
|
85
75
|
margin-left: -$govuk-gutter-half;
|
86
|
-
-
|
87
|
-
flex-wrap: wrap;
|
76
|
+
-webkit-flex-wrap: wrap;
|
77
|
+
-ms-flex-wrap: wrap;
|
78
|
+
flex-wrap: wrap; // Support: Flexbox
|
88
79
|
-webkit-box-align: end;
|
80
|
+
-webkit-align-items: flex-end;
|
89
81
|
-ms-flex-align: end;
|
90
82
|
align-items: flex-end; // Support: Flexbox
|
91
83
|
-webkit-box-pack: center;
|
84
|
+
-webkit-justify-content: center;
|
92
85
|
-ms-flex-pack: center;
|
93
86
|
justify-content: center; // Support: Flexbox
|
94
87
|
}
|
@@ -101,11 +94,13 @@
|
|
101
94
|
|
102
95
|
.govuk-footer__meta-item--grow {
|
103
96
|
-webkit-box-flex: 1;
|
97
|
+
-webkit-flex: 1;
|
104
98
|
-ms-flex: 1;
|
105
99
|
flex: 1; // Support: Flexbox
|
106
100
|
@include govuk-media-query ($until: tablet) {
|
107
|
-
-
|
108
|
-
flex-
|
101
|
+
-webkit-flex-basis: 320px;
|
102
|
+
-ms-flex-preferred-size: 320px;
|
103
|
+
flex-basis: 320px; // Support: Flexbox
|
109
104
|
}
|
110
105
|
}
|
111
106
|
|
@@ -116,6 +111,9 @@
|
|
116
111
|
margin-bottom: govuk-spacing(3);
|
117
112
|
}
|
118
113
|
vertical-align: top;
|
114
|
+
// Work around SVGs not inheriting color from parent in forced color mode
|
115
|
+
// (https://github.com/w3c/csswg-drafts/issues/6310)
|
116
|
+
forced-color-adjust: auto;
|
119
117
|
}
|
120
118
|
|
121
119
|
.govuk-footer__licence-description {
|
@@ -134,7 +132,6 @@
|
|
134
132
|
background-position: 50% 0%;
|
135
133
|
background-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
|
136
134
|
text-align: center;
|
137
|
-
text-decoration: none;
|
138
135
|
white-space: nowrap;
|
139
136
|
}
|
140
137
|
|
@@ -165,12 +162,14 @@
|
|
165
162
|
|
166
163
|
.govuk-footer__navigation {
|
167
164
|
display: -webkit-box;
|
165
|
+
display: -webkit-flex;
|
168
166
|
display: -ms-flexbox;
|
169
167
|
display: flex; // Support: Flexbox
|
170
168
|
margin-right: -$govuk-gutter-half;
|
171
169
|
margin-left: -$govuk-gutter-half;
|
172
|
-
-
|
173
|
-
flex-wrap: wrap;
|
170
|
+
-webkit-flex-wrap: wrap;
|
171
|
+
-ms-flex-wrap: wrap;
|
172
|
+
flex-wrap: wrap; // Support: Flexbox
|
174
173
|
}
|
175
174
|
|
176
175
|
.govuk-footer__section {
|
@@ -181,15 +180,18 @@
|
|
181
180
|
vertical-align: top;
|
182
181
|
// Ensure columns take up equal width (typically one-half:one-half)
|
183
182
|
-webkit-box-flex: 1;
|
183
|
+
-webkit-flex-grow: 1;
|
184
184
|
-ms-flex-positive: 1;
|
185
185
|
flex-grow: 1; // Support: Flexbox
|
186
|
-
-
|
187
|
-
flex-
|
186
|
+
-webkit-flex-shrink: 1;
|
187
|
+
-ms-flex-negative: 1;
|
188
|
+
flex-shrink: 1; // Support: Flexbox
|
188
189
|
@include govuk-media-query ($until: desktop) {
|
189
190
|
// Make sure columns do not drop below 200px in width
|
190
191
|
// Will typically result in wrapping, and end up in a single column on smaller screens.
|
191
|
-
-
|
192
|
-
flex-
|
192
|
+
-webkit-flex-basis: 200px;
|
193
|
+
-ms-flex-preferred-size: 200px;
|
194
|
+
flex-basis: 200px; // Support: Flexbox
|
193
195
|
}
|
194
196
|
}
|
195
197
|
|
@@ -199,6 +201,7 @@
|
|
199
201
|
// To ensure the section is one of two, we can count backwards using `:nth-last-child(2)`.
|
200
202
|
.govuk-footer__section:first-child:nth-last-child(2) {
|
201
203
|
-webkit-box-flex: 2;
|
204
|
+
-webkit-flex-grow: 2;
|
202
205
|
-ms-flex-positive: 2;
|
203
206
|
flex-grow: 2; // Support: Flexbox
|
204
207
|
}
|
@@ -210,6 +213,13 @@
|
|
210
213
|
list-style: none;
|
211
214
|
-webkit-column-gap: $govuk-gutter;
|
212
215
|
column-gap: $govuk-gutter; // Support: Columns
|
216
|
+
|
217
|
+
// Disable thicker underlines on hover because of a bug in Chromium
|
218
|
+
// affecting links within columns
|
219
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=1190987
|
220
|
+
.govuk-footer__link:hover {
|
221
|
+
text-decoration-thickness: auto;
|
222
|
+
}
|
213
223
|
}
|
214
224
|
|
215
225
|
@include govuk-media-query ($from: desktop) {
|
@@ -4,10 +4,9 @@
|
|
4
4
|
$govuk-header-border-color: $govuk-brand-colour;
|
5
5
|
$govuk-header-border-width: govuk-spacing(2);
|
6
6
|
$govuk-header-text: govuk-colour("white");
|
7
|
-
$govuk-header-link: govuk-colour("white");
|
8
|
-
$govuk-header-link-hover: govuk-colour("white");
|
9
7
|
$govuk-header-link-active: #1d8feb;
|
10
8
|
$govuk-header-nav-item-border-color: #2e3133;
|
9
|
+
$govuk-header-link-underline-thickness: 3px;
|
11
10
|
|
12
11
|
.govuk-header {
|
13
12
|
@include govuk-font($size: 16);
|
@@ -36,7 +35,23 @@
|
|
36
35
|
|
37
36
|
.govuk-header__logotype {
|
38
37
|
display: inline-block;
|
38
|
+
|
39
|
+
// Add a gap after the logo in case it's followed by a product name. This
|
40
|
+
// gets removed later if the logotype is a :last-child.
|
39
41
|
margin-right: govuk-spacing(1);
|
42
|
+
|
43
|
+
// Prevent readability backplate from obscuring underline in Windows High
|
44
|
+
// Contrast Mode
|
45
|
+
@media (forced-colors: active) {
|
46
|
+
forced-color-adjust: none;
|
47
|
+
color: linktext;
|
48
|
+
}
|
49
|
+
|
50
|
+
// Remove the gap after the logo if there's no product name to keep hover
|
51
|
+
// and focus states neat
|
52
|
+
&:last-child {
|
53
|
+
margin-right: 0;
|
54
|
+
}
|
40
55
|
}
|
41
56
|
|
42
57
|
.govuk-header__logotype-crown {
|
@@ -51,39 +66,39 @@
|
|
51
66
|
width: 36px;
|
52
67
|
height: 32px;
|
53
68
|
border: 0;
|
54
|
-
vertical-align:
|
69
|
+
vertical-align: bottom;
|
55
70
|
}
|
56
71
|
|
57
72
|
.govuk-header__product-name {
|
58
73
|
@include govuk-font($size: 24, $line-height: 1);
|
59
74
|
display: inline-table;
|
60
|
-
padding-right: govuk-spacing(2);
|
61
75
|
}
|
62
76
|
|
63
77
|
.govuk-header__link {
|
64
|
-
|
78
|
+
// Avoid using the `govuk-link-common` mixin because the links in the header
|
79
|
+
// get a special treatment, because:
|
80
|
+
//
|
81
|
+
// - underlines are only visible on hover
|
82
|
+
// - all links get a 3px underline regardless of text size, as there are
|
83
|
+
// multiple grouped elements close to one another and having slightly
|
84
|
+
// different underline widths looks unbalanced
|
85
|
+
@include govuk-typography-common;
|
86
|
+
@include govuk-link-style-inverse;
|
65
87
|
|
66
|
-
|
67
|
-
&:visited {
|
68
|
-
color: $govuk-header-link;
|
69
|
-
}
|
88
|
+
text-decoration: none;
|
70
89
|
|
71
90
|
&:hover {
|
72
91
|
text-decoration: underline;
|
92
|
+
text-decoration-thickness: $govuk-header-link-underline-thickness;
|
93
|
+
|
94
|
+
@if ($govuk-link-underline-offset) {
|
95
|
+
text-underline-offset: $govuk-link-underline-offset;
|
96
|
+
}
|
73
97
|
}
|
74
98
|
|
75
99
|
&:focus {
|
76
100
|
@include govuk-focused-text;
|
77
101
|
}
|
78
|
-
|
79
|
-
// alphagov/govuk_template includes a specific a:link:focus selector
|
80
|
-
// designed to make unvisited links a slightly darker blue when focussed, so
|
81
|
-
// we need to override the text colour for that combination of selectors.
|
82
|
-
@include govuk-compatibility(govuk_template) {
|
83
|
-
&:link:focus {
|
84
|
-
@include govuk-text-colour;
|
85
|
-
}
|
86
|
-
}
|
87
102
|
}
|
88
103
|
|
89
104
|
.govuk-header__link--homepage {
|
@@ -92,6 +107,7 @@
|
|
92
107
|
@include govuk-font($size: false, $weight: bold);
|
93
108
|
|
94
109
|
display: inline-block;
|
110
|
+
margin-right: govuk-spacing(2);
|
95
111
|
font-size: 30px; // We don't have a mixin that produces 30px font size
|
96
112
|
line-height: 1;
|
97
113
|
|
@@ -103,10 +119,10 @@
|
|
103
119
|
&:hover,
|
104
120
|
&:active {
|
105
121
|
// Negate the added border
|
106
|
-
margin-bottom: -
|
122
|
+
margin-bottom: $govuk-header-link-underline-thickness * -1;
|
107
123
|
// Omitting colour will use default value of currentColor – if we
|
108
124
|
// specified currentColor explicitly IE8 would ignore this rule.
|
109
|
-
border-bottom:
|
125
|
+
border-bottom: $govuk-header-link-underline-thickness solid;
|
110
126
|
}
|
111
127
|
|
112
128
|
// Remove any borders that show when focused and hovered.
|
@@ -156,11 +172,17 @@
|
|
156
172
|
margin: 0;
|
157
173
|
padding: 0;
|
158
174
|
border: 0;
|
159
|
-
color:
|
175
|
+
color: govuk-colour("white");
|
160
176
|
background: none;
|
177
|
+
cursor: pointer;
|
161
178
|
|
162
179
|
&:hover {
|
163
|
-
text-decoration: underline;
|
180
|
+
-webkit-text-decoration: solid underline $govuk-header-link-underline-thickness;
|
181
|
+
text-decoration: solid underline $govuk-header-link-underline-thickness;
|
182
|
+
|
183
|
+
@if ($govuk-link-underline-offset) {
|
184
|
+
text-underline-offset: $govuk-link-underline-offset;
|
185
|
+
}
|
164
186
|
}
|
165
187
|
|
166
188
|
&:focus {
|
@@ -95,11 +95,13 @@
|
|
95
95
|
|
96
96
|
.govuk-input__wrapper {
|
97
97
|
display: -webkit-box;
|
98
|
+
display: -webkit-flex;
|
98
99
|
display: -ms-flexbox;
|
99
100
|
display: flex;
|
100
101
|
|
101
102
|
.govuk-input {
|
102
103
|
-webkit-box-flex: 0;
|
104
|
+
-webkit-flex: 0 1 auto;
|
103
105
|
-ms-flex: 0 1 auto;
|
104
106
|
flex: 0 1 auto;
|
105
107
|
}
|
@@ -150,6 +152,8 @@
|
|
150
152
|
|
151
153
|
-webkit-box-flex: 0;
|
152
154
|
|
155
|
+
-webkit-flex: 0 0 auto;
|
156
|
+
|
153
157
|
-ms-flex: 0 0 auto;
|
154
158
|
|
155
159
|
flex: 0 0 auto;
|
@@ -12,7 +12,19 @@
|
|
12
12
|
text-align: center;
|
13
13
|
|
14
14
|
@include govuk-media-query($until: tablet) {
|
15
|
-
padding: govuk-spacing(
|
15
|
+
padding: govuk-spacing(3) - $govuk-border-width;
|
16
|
+
|
17
|
+
// This is an if-all-else-fails attempt to stop long words from overflowing the container
|
18
|
+
// on very narrow viewports by forcing them to break and wrap instead. This
|
19
|
+
// overflowing is more likely to happen when user increases text size on a mobile eg. using
|
20
|
+
// iOS Safari text resize controls.
|
21
|
+
//
|
22
|
+
// The overflowing is a particular problem with the panel component since it uses white
|
23
|
+
// text: when the text overflows the container, it is invisible on the white (page)
|
24
|
+
// background. When the text in our other components overflow, the user might have to scroll
|
25
|
+
// horizontally to view it but the the text remains legible.
|
26
|
+
overflow-wrap: break-word;
|
27
|
+
word-wrap: break-word; // Support IE (autoprefixer doesn't add this as it's not a prefix)
|
16
28
|
}
|
17
29
|
}
|
18
30
|
|
@@ -121,6 +121,20 @@
|
|
121
121
|
// Focused state
|
122
122
|
.govuk-radios__input:focus + .govuk-radios__label:before {
|
123
123
|
border-width: 4px;
|
124
|
+
|
125
|
+
// When colours are overridden, the yellow box-shadow becomes invisible
|
126
|
+
// which means the focus state is less obvious. By adding a transparent
|
127
|
+
// outline, which becomes solid (text-coloured) in that context, we ensure
|
128
|
+
// the focus remains clearly visible.
|
129
|
+
outline: $govuk-focus-width solid transparent;
|
130
|
+
outline-offset: 1px;
|
131
|
+
|
132
|
+
// When in an explicit forced-color mode, we can use the Highlight system
|
133
|
+
// color for the outline to better match focus states of native controls
|
134
|
+
@media screen and (forced-colors: active), (-ms-high-contrast: active) {
|
135
|
+
outline-color: Highlight;
|
136
|
+
}
|
137
|
+
|
124
138
|
box-shadow: 0 0 0 $govuk-radios-focus-width $govuk-focus-colour;
|
125
139
|
}
|
126
140
|
|
@@ -2,6 +2,7 @@
|
|
2
2
|
.govuk-skip-link {
|
3
3
|
@include govuk-visually-hidden-focusable;
|
4
4
|
@include govuk-typography-common;
|
5
|
+
@include govuk-link-decoration;
|
5
6
|
@include govuk-link-style-text;
|
6
7
|
@include govuk-typography-responsive($size: 16);
|
7
8
|
|
@@ -10,7 +11,9 @@
|
|
10
11
|
|
11
12
|
// Respect 'display cutout' safe area (avoids notches and rounded corners)
|
12
13
|
@supports (padding: unquote("max(calc(0px))")) {
|
14
|
+
$padding-safe-area-right: -webkit-calc(#{govuk-spacing(3)} + env(safe-area-inset-right));
|
13
15
|
$padding-safe-area-right: calc(#{govuk-spacing(3)} + env(safe-area-inset-right));
|
16
|
+
$padding-safe-area-left: -webkit-calc(#{govuk-spacing(3)} + env(safe-area-inset-left));
|
14
17
|
$padding-safe-area-left: calc(#{govuk-spacing(3)} + env(safe-area-inset-left));
|
15
18
|
|
16
19
|
// Use max() to pick largest padding, default or with safe area
|
@@ -27,7 +30,6 @@
|
|
27
30
|
// Undo unwanted changes when global styles are enabled
|
28
31
|
@if ($govuk-global-styles) {
|
29
32
|
box-shadow: none;
|
30
|
-
text-decoration: underline;
|
31
33
|
}
|
32
34
|
}
|
33
35
|
}
|
@@ -47,4 +47,25 @@
|
|
47
47
|
display: table-caption;
|
48
48
|
text-align: left;
|
49
49
|
}
|
50
|
+
|
51
|
+
// Modifiers that make captions look more like their equivalent headings
|
52
|
+
|
53
|
+
.govuk-table__caption--xl {
|
54
|
+
@include govuk-font($size: 48, $weight: bold);
|
55
|
+
margin-bottom: govuk-spacing(3);
|
56
|
+
}
|
57
|
+
|
58
|
+
.govuk-table__caption--l {
|
59
|
+
@include govuk-font($size: 36, $weight: bold);
|
60
|
+
margin-bottom: govuk-spacing(3);
|
61
|
+
}
|
62
|
+
|
63
|
+
.govuk-table__caption--m {
|
64
|
+
@include govuk-font($size: 24, $weight: bold);
|
65
|
+
margin-bottom: govuk-spacing(3);
|
66
|
+
}
|
67
|
+
|
68
|
+
.govuk-table__caption--s {
|
69
|
+
@include govuk-font($size: 19, $weight: bold);
|
70
|
+
}
|
50
71
|
}
|
@@ -30,16 +30,11 @@
|
|
30
30
|
}
|
31
31
|
|
32
32
|
.govuk-tabs__tab {
|
33
|
+
@include govuk-link-common;
|
33
34
|
@include govuk-link-style-default;
|
34
35
|
|
35
36
|
display: inline-block;
|
36
37
|
margin-bottom: govuk-spacing(2);
|
37
|
-
|
38
|
-
// Focus state for mobile and when JavaScript is disabled
|
39
|
-
// It is removed for JS-enabled desktop styles
|
40
|
-
&:focus {
|
41
|
-
@include govuk-focused-text;
|
42
|
-
}
|
43
38
|
}
|
44
39
|
|
45
40
|
.govuk-tabs__panel {
|
@@ -43,9 +43,18 @@
|
|
43
43
|
// Prevent the exclamation mark from being included when the warning text
|
44
44
|
// is copied, for example.
|
45
45
|
-webkit-user-select: none;
|
46
|
-
-moz-user-select: none;
|
47
46
|
-ms-user-select: none;
|
48
47
|
user-select: none;
|
48
|
+
|
49
|
+
// Improve rendering in Windows High Contrast Mode (Edge), where a
|
50
|
+
// readability backplate behind the exclamation mark obscures the circle
|
51
|
+
forced-color-adjust: none;
|
52
|
+
|
53
|
+
@media screen and (forced-colors: active) {
|
54
|
+
border-color: windowText;
|
55
|
+
color: windowText;
|
56
|
+
background: transparent;
|
57
|
+
}
|
49
58
|
}
|
50
59
|
|
51
60
|
.govuk-warning-text__text {
|
@@ -27,6 +27,14 @@
|
|
27
27
|
@include govuk-link-style-text;
|
28
28
|
}
|
29
29
|
|
30
|
+
.govuk-link--inverse {
|
31
|
+
@include govuk-link-style-inverse;
|
32
|
+
}
|
33
|
+
|
34
|
+
.govuk-link--no-underline {
|
35
|
+
@include govuk-link-style-no-underline;
|
36
|
+
}
|
37
|
+
|
30
38
|
.govuk-link--no-visited-state {
|
31
39
|
@include govuk-link-style-no-visited-state;
|
32
40
|
}
|
@@ -15,7 +15,6 @@
|
|
15
15
|
// Prevent automatic text sizing, as we already cater for small devices and
|
16
16
|
// would like the browser to stay on 100% text zoom by default.
|
17
17
|
-webkit-text-size-adjust: 100%;
|
18
|
-
-moz-text-size-adjust: 100%;
|
19
18
|
-ms-text-size-adjust: 100%;
|
20
19
|
text-size-adjust: 100%;
|
21
20
|
|
@@ -75,7 +75,7 @@
|
|
75
75
|
/// Make a colour darker by mixing it with black
|
76
76
|
///
|
77
77
|
/// @param {Colour} $colour - colour to shade
|
78
|
-
/// @param {Number} $percentage - percentage of `$colour` in returned
|
78
|
+
/// @param {Number} $percentage - percentage of `$colour` in returned colour
|
79
79
|
/// @return {Colour}
|
80
80
|
/// @access public
|
81
81
|
|
@@ -86,7 +86,7 @@
|
|
86
86
|
/// Make a colour lighter by mixing it with white
|
87
87
|
///
|
88
88
|
/// @param {Colour} $colour - colour to tint
|
89
|
-
/// @param {Number} $percentage - percentage of `$colour` in returned
|
89
|
+
/// @param {Number} $percentage - percentage of `$colour` in returned colour
|
90
90
|
/// @return {Colour}
|
91
91
|
/// @access public
|
92
92
|
|