govuk_tech_docs 6.0.1 → 6.2.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/.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/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 +18 -2
- data/README.md +3 -2
- data/example/.ruby-version +1 -1
- data/example/config/tech-docs.yml +4 -0
- data/example/config.rb +15 -0
- data/example/source/active-pages/index.html.md.erb +7 -0
- data/example/source/active-pages/sub-section/index.html.md.erb +7 -0
- data/example/source/index.html.md.erb +6 -1
- data/govuk_tech_docs.gemspec +21 -19
- data/lib/govuk_tech_docs/custom_method_missing_handler.rb +30 -0
- data/lib/govuk_tech_docs/govuk_nunjuck_componenet_renderer.rb +43 -0
- data/lib/govuk_tech_docs/version.rb +1 -1
- data/lib/govuk_tech_docs.rb +35 -5
- 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 +1302 -4959
- data/package.json +5 -4
- metadata +74 -80
- data/.github/ISSUE_TEMPLATE.md +0 -13
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/// @group components/button
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
+
@import "../../base";
|
|
6
|
+
|
|
5
7
|
/// Button component background colour
|
|
6
8
|
///
|
|
7
9
|
/// @type Colour
|
|
@@ -71,7 +73,7 @@ $govuk-inverse-button-text-colour: govuk-functional-colour(brand) !default;
|
|
|
71
73
|
margin-left: 0;
|
|
72
74
|
@include govuk-responsive-margin(6, "bottom", $adjustment: $button-shadow-size); // s2
|
|
73
75
|
padding: (govuk-spacing(2) - $govuk-border-width-form-element) govuk-spacing(2)
|
|
74
|
-
(govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size
|
|
76
|
+
(govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size * 0.5)); // s1
|
|
75
77
|
border: $govuk-border-width-form-element solid transparent;
|
|
76
78
|
border-radius: 0;
|
|
77
79
|
color: $govuk-button-text-colour;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@import "../error-message/index";
|
|
2
4
|
@import "../fieldset/index";
|
|
3
5
|
@import "../hint/index";
|
|
@@ -54,8 +56,8 @@
|
|
|
54
56
|
content: "";
|
|
55
57
|
box-sizing: border-box;
|
|
56
58
|
position: absolute;
|
|
57
|
-
top: ($govuk-touch-target-gutter
|
|
58
|
-
left: ($govuk-touch-target-gutter
|
|
59
|
+
top: ($govuk-touch-target-gutter * 0.5);
|
|
60
|
+
left: ($govuk-touch-target-gutter * 0.5);
|
|
59
61
|
width: $govuk-checkboxes-size;
|
|
60
62
|
height: $govuk-checkboxes-size;
|
|
61
63
|
border: $govuk-border-width-form-element solid currentcolor;
|
|
@@ -144,10 +146,12 @@
|
|
|
144
146
|
|
|
145
147
|
.govuk-checkboxes__divider {
|
|
146
148
|
@include govuk-font($size: 19);
|
|
147
|
-
|
|
149
|
+
|
|
148
150
|
$govuk-divider-size: $govuk-checkboxes-size !default;
|
|
149
151
|
width: $govuk-divider-size;
|
|
152
|
+
|
|
150
153
|
margin-bottom: govuk-spacing(2);
|
|
154
|
+
color: govuk-functional-colour(text);
|
|
151
155
|
text-align: center;
|
|
152
156
|
}
|
|
153
157
|
|
|
@@ -159,7 +163,7 @@
|
|
|
159
163
|
// to be an even number in order to be centred under the 40px checkbox or radio.
|
|
160
164
|
$conditional-border-width: $govuk-border-width-narrow;
|
|
161
165
|
// Calculate the amount of padding needed to keep the border centered against the checkbox.
|
|
162
|
-
$conditional-border-padding: ($govuk-touch-target-size
|
|
166
|
+
$conditional-border-padding: ($govuk-touch-target-size * 0.5) - ($conditional-border-width * 0.5);
|
|
163
167
|
// Move the border centered with the checkbox
|
|
164
168
|
$conditional-margin-left: $conditional-border-padding;
|
|
165
169
|
// Move the contents of the conditional inline with the label
|
|
@@ -186,7 +190,7 @@
|
|
|
186
190
|
// =========================================================
|
|
187
191
|
|
|
188
192
|
.govuk-checkboxes--small {
|
|
189
|
-
$input-offset: ($govuk-touch-target-size - $govuk-small-checkboxes-size)
|
|
193
|
+
$input-offset: ($govuk-touch-target-size - $govuk-small-checkboxes-size) * 0.5;
|
|
190
194
|
|
|
191
195
|
.govuk-checkboxes__item {
|
|
192
196
|
margin-bottom: 0;
|
|
@@ -251,7 +255,7 @@
|
|
|
251
255
|
|
|
252
256
|
// Align conditional reveals with small checkboxes
|
|
253
257
|
.govuk-checkboxes__conditional {
|
|
254
|
-
$margin-left: ($govuk-small-checkboxes-size
|
|
258
|
+
$margin-left: ($govuk-small-checkboxes-size * 0.5) - ($conditional-border-width * 0.5);
|
|
255
259
|
margin-left: $margin-left;
|
|
256
260
|
padding-left: ($govuk-touch-target-size - $input-offset) - ($margin-left + $conditional-border-width);
|
|
257
261
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
@import "../../base";
|
|
2
|
+
|
|
1
3
|
@include govuk-exports("govuk/component/details") {
|
|
2
4
|
.govuk-details {
|
|
3
5
|
@include govuk-font($size: 19);
|
|
4
|
-
@include govuk-text-colour;
|
|
5
6
|
@include govuk-responsive-margin(6, "bottom");
|
|
6
7
|
|
|
7
8
|
display: block;
|
|
9
|
+
color: govuk-functional-colour(text);
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
.govuk-details__summary {
|
|
@@ -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
|
}
|