govuk_tech_docs 6.1.0 → 6.2.1
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/.github/ISSUE_TEMPLATE/bug.yaml +69 -0
- data/.github/ISSUE_TEMPLATE/config.yaml +6 -0
- data/.github/ISSUE_TEMPLATE/enhancement.yaml +25 -0
- data/.github/dependabot.yml +0 -5
- data/.github/pull_request_template.md +22 -8
- data/.github/workflows/dependency-review.yaml +17 -0
- data/.github/workflows/test.yaml +1 -1
- data/.nvmrc +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +13 -2
- data/example/.ruby-version +1 -1
- data/example/source/code.html.md +1 -0
- data/govuk_tech_docs.gemspec +20 -21
- data/lib/assets/stylesheets/palette/_syntax-highlighting.scss +1 -3
- data/lib/govuk_tech_docs/version.rb +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_accordion.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_back-link.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +7 -3
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +8 -4
- data/node_modules/govuk-frontend/dist/govuk/components/button/_button.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_character-count.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +10 -6
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_date-input.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/details/_details.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_error-message.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_footer.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/_header.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_hint.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/_input.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/label/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/label/_label.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +6 -2
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_pagination.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_panel.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +14 -10
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_radios.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/select/_select.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -3
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +15 -2
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/table/_table.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +5 -2
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_tabs.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_tag.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +6 -2
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_task-list.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_textarea.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_global-styles.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_links.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +10 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +5 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +14 -13
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +5 -0
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +38 -70
- data/node_modules/govuk-frontend/dist/govuk/helpers/_device-pixels.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +4 -4
- data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +17 -15
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +19 -13
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +48 -26
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +13 -11
- data/node_modules/govuk-frontend/dist/govuk/objects/_grid.scss +4 -2
- data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +10 -9
- data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss +3 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +7 -2
- data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +3 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_assets.scss +18 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +28 -4
- data/node_modules/govuk-frontend/dist/govuk/settings/_links.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss +8 -16
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-font.scss +4 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss +15 -2
- data/node_modules/govuk-frontend/dist/govuk/tools/_exports.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/tools/_font-url.scss +13 -5
- data/node_modules/govuk-frontend/dist/govuk/tools/_if.scss +24 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss +13 -5
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +5 -3
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +4 -2
- data/node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.scss +3 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.scss +3 -0
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss +3 -1
- data/package-lock.json +1259 -4963
- data/package.json +4 -4
- metadata +69 -93
- data/.github/ISSUE_TEMPLATE.md +0 -13
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@import "../../core/lists";
|
|
2
4
|
|
|
3
5
|
@include govuk-exports("govuk/component/error-summary") {
|
|
4
6
|
.govuk-error-summary {
|
|
5
7
|
@include govuk-font($size: 19);
|
|
6
|
-
@include govuk-text-colour;
|
|
7
8
|
@include govuk-responsive-padding(4);
|
|
8
9
|
@include govuk-responsive-margin(8, "bottom");
|
|
9
10
|
|
|
10
11
|
border: $govuk-border-width solid;
|
|
11
12
|
border-color: govuk-functional-colour(error);
|
|
13
|
+
color: govuk-functional-colour(text);
|
|
12
14
|
|
|
13
15
|
&:focus {
|
|
14
16
|
outline: $govuk-focus-width solid;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@import "../button/index";
|
|
2
4
|
|
|
3
5
|
@include govuk-exports("govuk/component/exit-this-page") {
|
|
@@ -52,7 +54,7 @@
|
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
.govuk-exit-this-page__indicator-light--on {
|
|
55
|
-
border-width: $indicator-size
|
|
57
|
+
border-width: $indicator-size * 0.5;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
@media only print {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@include govuk-exports("govuk/component/fieldset") {
|
|
2
4
|
.govuk-fieldset {
|
|
3
5
|
min-width: 0;
|
|
@@ -19,7 +21,6 @@
|
|
|
19
21
|
|
|
20
22
|
.govuk-fieldset__legend {
|
|
21
23
|
@include govuk-font($size: 19);
|
|
22
|
-
@include govuk-text-colour;
|
|
23
24
|
|
|
24
25
|
// Fix legend text wrapping in Edge and IE
|
|
25
26
|
// 1. IE9-11 & Edge 12-13
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
max-width: 100%; // 1
|
|
30
31
|
margin-bottom: govuk-spacing(2);
|
|
31
32
|
padding: 0;
|
|
33
|
+
color: govuk-functional-colour(text);
|
|
32
34
|
|
|
33
35
|
white-space: normal; // 1
|
|
34
36
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@import "../error-message/index";
|
|
2
4
|
@import "../hint/index";
|
|
3
5
|
@import "../label/index";
|
|
@@ -11,10 +13,11 @@
|
|
|
11
13
|
|
|
12
14
|
.govuk-file-upload {
|
|
13
15
|
@include govuk-font($size: 19);
|
|
14
|
-
|
|
16
|
+
|
|
15
17
|
max-width: 100%;
|
|
16
18
|
margin-left: -$component-padding;
|
|
17
19
|
padding: $component-padding;
|
|
20
|
+
color: govuk-functional-colour(text);
|
|
18
21
|
|
|
19
22
|
// The default file upload button in Safari does not support setting a
|
|
20
23
|
// custom font-size. Set `-webkit-appearance` to `button` to drop out of the
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@include govuk-exports("govuk/component/inset-text") {
|
|
2
4
|
.govuk-inset-text {
|
|
3
5
|
@include govuk-font($size: 19);
|
|
4
|
-
|
|
6
|
+
|
|
5
7
|
padding: govuk-spacing(3);
|
|
8
|
+
|
|
6
9
|
// Margin top intended to collapse
|
|
7
10
|
// This adds an additional 10px to the paragraph above
|
|
8
11
|
@include govuk-responsive-margin(6, "top");
|
|
@@ -12,6 +15,7 @@
|
|
|
12
15
|
|
|
13
16
|
border-left: $govuk-border-width-wide solid;
|
|
14
17
|
border-left-color: govuk-functional-colour(border);
|
|
18
|
+
color: govuk-functional-colour(text);
|
|
15
19
|
|
|
16
20
|
> :first-child {
|
|
17
21
|
margin-top: 0;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@include govuk-exports("govuk/component/label") {
|
|
2
4
|
.govuk-label {
|
|
3
5
|
@include govuk-font($size: 19);
|
|
4
|
-
@include govuk-text-colour;
|
|
5
6
|
|
|
6
7
|
display: block;
|
|
7
8
|
|
|
8
9
|
margin-bottom: govuk-spacing(1);
|
|
10
|
+
color: govuk-functional-colour(text);
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
// Modifiers that make labels look more like their equivalent headings
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
@import "../../base";
|
|
4
|
+
|
|
1
5
|
@include govuk-exports("govuk/component/notification-banner") {
|
|
2
6
|
.govuk-notification-banner {
|
|
3
7
|
@include govuk-font($size: 19);
|
|
@@ -38,9 +42,9 @@
|
|
|
38
42
|
|
|
39
43
|
.govuk-notification-banner__content {
|
|
40
44
|
$padding-tablet: govuk-spacing(4);
|
|
41
|
-
@include govuk-text-colour;
|
|
42
45
|
padding: govuk-spacing(3);
|
|
43
46
|
|
|
47
|
+
color: govuk-functional-colour(text);
|
|
44
48
|
background-color: govuk-functional-colour(body-background);
|
|
45
49
|
|
|
46
50
|
@media #{govuk-from-breakpoint(tablet)} {
|
|
@@ -55,7 +59,7 @@
|
|
|
55
59
|
box-sizing: border-box;
|
|
56
60
|
|
|
57
61
|
// Calculate the internal width of a two-thirds column...
|
|
58
|
-
$two-col-width: ($govuk-page-width * 2
|
|
62
|
+
$two-col-width: math.div($govuk-page-width * 2, 3) - math.div($govuk-gutter * 1, 3);
|
|
59
63
|
|
|
60
64
|
// ...and then factor in the left border and padding
|
|
61
65
|
$banner-exterior: ($padding-tablet + $govuk-border-width);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@include govuk-exports("govuk/component/panel") {
|
|
2
4
|
.govuk-panel {
|
|
3
5
|
@include govuk-font($size: 36);
|
|
@@ -38,7 +40,7 @@
|
|
|
38
40
|
|
|
39
41
|
@media print {
|
|
40
42
|
border-color: currentcolor;
|
|
41
|
-
color: govuk-functional-colour(
|
|
43
|
+
color: govuk-functional-colour(text);
|
|
42
44
|
background: none;
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@import "../tag/index";
|
|
2
4
|
|
|
3
5
|
@include govuk-exports("govuk/component/phase-banner") {
|
|
@@ -18,10 +20,10 @@
|
|
|
18
20
|
|
|
19
21
|
.govuk-phase-banner__content {
|
|
20
22
|
@include govuk-font($size: 16);
|
|
21
|
-
@include govuk-text-colour;
|
|
22
23
|
|
|
23
24
|
display: table;
|
|
24
25
|
margin: 0;
|
|
26
|
+
color: govuk-functional-colour(text);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
.govuk-phase-banner__content__tag {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@import "../error-message/index";
|
|
2
4
|
@import "../fieldset/index";
|
|
3
5
|
@import "../hint/index";
|
|
@@ -57,8 +59,8 @@
|
|
|
57
59
|
content: "";
|
|
58
60
|
box-sizing: border-box;
|
|
59
61
|
position: absolute;
|
|
60
|
-
top: ($govuk-touch-target-gutter
|
|
61
|
-
left: ($govuk-touch-target-gutter
|
|
62
|
+
top: ($govuk-touch-target-gutter * 0.5);
|
|
63
|
+
left: ($govuk-touch-target-gutter * 0.5);
|
|
62
64
|
width: $govuk-radios-size;
|
|
63
65
|
height: $govuk-radios-size;
|
|
64
66
|
border: $govuk-border-width-form-element solid currentcolor;
|
|
@@ -79,8 +81,8 @@
|
|
|
79
81
|
// Positioned by getting half the touch target, so we have the centre of the
|
|
80
82
|
// input, and then moving back by the button's border width, thus positioning
|
|
81
83
|
// the centre of the button in the centre of the input.
|
|
82
|
-
top: (($govuk-touch-target-size
|
|
83
|
-
left: (($govuk-touch-target-size
|
|
84
|
+
top: (($govuk-touch-target-size * 0.5) - $radio-button-size);
|
|
85
|
+
left: (($govuk-touch-target-size * 0.5) - $radio-button-size);
|
|
84
86
|
width: 0;
|
|
85
87
|
height: 0;
|
|
86
88
|
border: $radio-button-size solid currentcolor;
|
|
@@ -162,10 +164,12 @@
|
|
|
162
164
|
|
|
163
165
|
.govuk-radios__divider {
|
|
164
166
|
@include govuk-font($size: 19);
|
|
165
|
-
|
|
167
|
+
|
|
166
168
|
$govuk-divider-size: $govuk-radios-size !default;
|
|
167
169
|
width: $govuk-divider-size;
|
|
170
|
+
|
|
168
171
|
margin-bottom: govuk-spacing(2);
|
|
172
|
+
color: govuk-functional-colour(text);
|
|
169
173
|
text-align: center;
|
|
170
174
|
}
|
|
171
175
|
|
|
@@ -178,7 +182,7 @@
|
|
|
178
182
|
$conditional-border-width: $govuk-border-width-narrow;
|
|
179
183
|
// Calculate the amount of padding needed to keep the border centered against
|
|
180
184
|
// the radios.
|
|
181
|
-
$conditional-border-padding: ($govuk-touch-target-size
|
|
185
|
+
$conditional-border-padding: ($govuk-touch-target-size * 0.5) - ($conditional-border-width * 0.5);
|
|
182
186
|
// Move the border centered with the radios
|
|
183
187
|
$conditional-margin-left: $conditional-border-padding;
|
|
184
188
|
// Move the contents of the conditional inline with the label
|
|
@@ -205,7 +209,7 @@
|
|
|
205
209
|
// =========================================================
|
|
206
210
|
|
|
207
211
|
.govuk-radios--small {
|
|
208
|
-
$input-offset: ($govuk-touch-target-size - $govuk-small-radios-size)
|
|
212
|
+
$input-offset: ($govuk-touch-target-size - $govuk-small-radios-size) * 0.5;
|
|
209
213
|
|
|
210
214
|
.govuk-radios__item {
|
|
211
215
|
margin-bottom: 0;
|
|
@@ -249,8 +253,8 @@
|
|
|
249
253
|
$radio-button-size: govuk-spacing(1);
|
|
250
254
|
|
|
251
255
|
// The same calculation as normal radio buttons but reduce the border width
|
|
252
|
-
top: (($govuk-touch-target-size
|
|
253
|
-
left: ((($govuk-touch-target-size
|
|
256
|
+
top: (($govuk-touch-target-size * 0.5) - $radio-button-size);
|
|
257
|
+
left: ((($govuk-touch-target-size * 0.5) - $radio-button-size) - $input-offset);
|
|
254
258
|
border-width: $radio-button-size;
|
|
255
259
|
}
|
|
256
260
|
|
|
@@ -268,7 +272,7 @@
|
|
|
268
272
|
|
|
269
273
|
// Align conditional reveals with small radios
|
|
270
274
|
.govuk-radios__conditional {
|
|
271
|
-
$margin-left: ($govuk-small-radios-size
|
|
275
|
+
$margin-left: ($govuk-small-radios-size * 0.5) - ($conditional-border-width * 0.5);
|
|
272
276
|
margin-left: $margin-left;
|
|
273
277
|
padding-left: ($govuk-touch-target-size - $input-offset) - ($margin-left + $conditional-border-width);
|
|
274
278
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
@import "../../base";
|
|
4
|
+
|
|
1
5
|
@include govuk-exports("govuk/component/service-navigation") {
|
|
2
6
|
$govuk-service-navigation-active-link-border-width: govuk-spacing(1);
|
|
3
7
|
$govuk-service-navigation-text-colour: govuk-functional-colour(surface-text);
|
|
@@ -50,7 +54,7 @@
|
|
|
50
54
|
// padding (2×15), minus bottom border (1); 19 is the font-size at this
|
|
51
55
|
// point. This gives us the perfect fractional line height to make the
|
|
52
56
|
// overall component 60px high
|
|
53
|
-
line-height: (29
|
|
57
|
+
line-height: math.div(29, 19);
|
|
54
58
|
|
|
55
59
|
&:not(:last-child) {
|
|
56
60
|
@include govuk-responsive-margin(6, $direction: right);
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
|
|
3
|
+
@import "../../base";
|
|
4
|
+
|
|
1
5
|
@include govuk-exports("govuk/component/skip-link") {
|
|
2
6
|
.govuk-skip-link {
|
|
3
7
|
@include govuk-visually-hidden-focusable;
|
|
@@ -9,14 +13,14 @@
|
|
|
9
13
|
padding: govuk-spacing(2) govuk-spacing(3);
|
|
10
14
|
|
|
11
15
|
// Respect 'display cutout' safe area (avoids notches and rounded corners)
|
|
12
|
-
@supports (padding: unquote("max(calc(0px))")) {
|
|
16
|
+
@supports (padding: string.unquote("max(calc(0px))")) {
|
|
13
17
|
$padding-safe-area-right: calc(#{govuk-spacing(3)} + env(safe-area-inset-right));
|
|
14
18
|
$padding-safe-area-left: calc(#{govuk-spacing(3)} + env(safe-area-inset-left));
|
|
15
19
|
|
|
16
20
|
// Use max() to pick largest padding, default or with safe area
|
|
17
21
|
// Escaped due to Sass max() vs. CSS native max()
|
|
18
|
-
padding-right: unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-right})");
|
|
19
|
-
padding-left: unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-left})");
|
|
22
|
+
padding-right: string.unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-right})");
|
|
23
|
+
padding-left: string.unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-left})");
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
&:focus {
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@include govuk-exports("govuk/component/summary-list") {
|
|
2
4
|
.govuk-summary-list {
|
|
3
5
|
@include govuk-font($size: 19);
|
|
4
|
-
|
|
6
|
+
|
|
7
|
+
color: govuk-functional-colour(text);
|
|
8
|
+
|
|
5
9
|
@media #{govuk-from-breakpoint(tablet)} {
|
|
6
10
|
display: table;
|
|
7
11
|
width: 100%;
|
|
8
12
|
table-layout: fixed; // Required to allow us to wrap words that overflow.
|
|
9
13
|
border-collapse: collapse;
|
|
10
14
|
}
|
|
15
|
+
|
|
16
|
+
// Keep margins together
|
|
17
|
+
// stylelint-disable order/properties-order
|
|
11
18
|
margin: 0; // Reset default user agent styles
|
|
12
19
|
@include govuk-responsive-margin(6, "bottom");
|
|
20
|
+
// stylelint-enable order/properties-order
|
|
13
21
|
}
|
|
14
22
|
|
|
15
23
|
.govuk-summary-list__row {
|
|
@@ -51,6 +59,11 @@
|
|
|
51
59
|
padding-top: govuk-spacing(2);
|
|
52
60
|
padding-right: govuk-spacing(4);
|
|
53
61
|
padding-bottom: govuk-spacing(2);
|
|
62
|
+
|
|
63
|
+
// Make sure that any multi-line inline-blocks inside of the summary
|
|
64
|
+
// list (e.g. Tag components) don't cause the text baseline to shift,
|
|
65
|
+
// causing other cells in the row to be misaligned.
|
|
66
|
+
vertical-align: top;
|
|
54
67
|
}
|
|
55
68
|
}
|
|
56
69
|
|
|
@@ -204,8 +217,8 @@
|
|
|
204
217
|
|
|
205
218
|
.govuk-summary-card__title {
|
|
206
219
|
@include govuk-font($size: 19, $weight: bold);
|
|
207
|
-
@include govuk-text-colour;
|
|
208
220
|
margin: govuk-spacing(1) govuk-spacing(4) govuk-spacing(2) 0;
|
|
221
|
+
color: govuk-functional-colour(text);
|
|
209
222
|
|
|
210
223
|
@media #{govuk-from-breakpoint(tablet)} {
|
|
211
224
|
margin-bottom: govuk-spacing(1);
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@include govuk-exports("govuk/component/table") {
|
|
2
4
|
.govuk-table {
|
|
3
5
|
@include govuk-font($size: 19);
|
|
4
|
-
|
|
6
|
+
|
|
5
7
|
width: 100%;
|
|
6
8
|
@include govuk-responsive-margin(6, "bottom");
|
|
7
9
|
|
|
8
10
|
border-spacing: 0;
|
|
9
11
|
border-collapse: collapse;
|
|
12
|
+
color: govuk-functional-colour(text);
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
// Modifier for tables with a lot of data. Tables with lots of data benefit
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@include govuk-exports("govuk/component/tabs") {
|
|
2
4
|
.govuk-tabs {
|
|
3
5
|
@include govuk-responsive-margin(1, "top");
|
|
@@ -10,8 +12,9 @@
|
|
|
10
12
|
// user agent font size overrides the inherited font size
|
|
11
13
|
@include govuk-font-size($size: 19);
|
|
12
14
|
@include govuk-typography-weight-regular;
|
|
13
|
-
|
|
15
|
+
|
|
14
16
|
margin-bottom: govuk-spacing(2);
|
|
17
|
+
color: govuk-functional-colour(text);
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
.govuk-tabs__list {
|
|
@@ -25,10 +28,10 @@
|
|
|
25
28
|
margin-left: govuk-spacing(5);
|
|
26
29
|
|
|
27
30
|
&::before {
|
|
28
|
-
@include govuk-text-colour;
|
|
29
31
|
content: "\2014 "; // "— "
|
|
30
32
|
margin-left: govuk-spacing(-5);
|
|
31
33
|
padding-right: govuk-spacing(1);
|
|
34
|
+
color: govuk-functional-colour(text);
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
|