govuk_tech_docs 2.2.2 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of govuk_tech_docs might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.nvmrc +1 -1
- data/.travis.yml +2 -0
- data/CHANGELOG.md +24 -0
- data/example/config/tech-docs.yml +1 -0
- data/example/source/single-page-nav.html.md +13 -0
- data/govuk_tech_docs.gemspec +2 -1
- data/lib/assets/javascripts/_modules/collapsible-navigation.js +7 -7
- data/lib/assets/javascripts/_modules/in-page-navigation.js +2 -4
- data/lib/assets/stylesheets/_govuk_tech_docs.scss +9 -10
- data/lib/assets/stylesheets/modules/_search.scss +4 -25
- data/lib/assets/stylesheets/modules/_technical-documentation.scss +1 -1
- data/lib/assets/stylesheets/modules/_toc.scss +11 -11
- data/lib/govuk_tech_docs/table_of_contents/heading.rb +5 -1
- data/lib/govuk_tech_docs/table_of_contents/heading_tree_renderer.rb +2 -2
- data/lib/govuk_tech_docs/table_of_contents/helpers.rb +22 -11
- data/lib/govuk_tech_docs/tech_docs_html_renderer.rb +1 -1
- data/lib/govuk_tech_docs/version.rb +1 -1
- data/lib/source/layouts/_header.erb +1 -2
- data/lib/source/layouts/layout.erb +3 -1
- data/node_modules/govuk-frontend/govuk/_base.scss +3 -0
- data/node_modules/govuk-frontend/govuk/all.js +306 -94
- data/node_modules/govuk-frontend/govuk/all.scss +1 -3
- data/node_modules/govuk-frontend/govuk/components/_all.scss +33 -29
- data/node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -208
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +197 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +1 -1
- data/node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -65
- data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +99 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -118
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +138 -0
- data/node_modules/govuk-frontend/govuk/components/button/_button.scss +2 -284
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +288 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -31
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +25 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +17 -9
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -308
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +320 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +129 -24
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +51 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -30
- data/node_modules/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
- data/node_modules/govuk-frontend/govuk/components/details/_details.scss +2 -88
- data/node_modules/govuk-frontend/govuk/components/details/_index.scss +87 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -15
- data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +11 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -59
- data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +43 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -68
- data/node_modules/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -81
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +49 -0
- data/node_modules/govuk-frontend/govuk/components/footer/_footer.scss +2 -244
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +241 -0
- data/node_modules/govuk-frontend/govuk/components/header/_header.scss +2 -318
- data/node_modules/govuk-frontend/govuk/components/header/_index.scss +331 -0
- data/node_modules/govuk-frontend/govuk/components/header/header.js +665 -316
- data/node_modules/govuk-frontend/govuk/components/hint/_hint.scss +2 -50
- data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +44 -0
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss +191 -0
- data/node_modules/govuk-frontend/govuk/components/input/_input.scss +2 -103
- data/node_modules/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -28
- data/node_modules/govuk-frontend/govuk/components/label/_index.scss +41 -0
- data/node_modules/govuk-frontend/govuk/components/label/_label.scss +2 -45
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_index.scss +89 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +61 -0
- data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +44 -0
- data/node_modules/govuk-frontend/govuk/components/panel/_panel.scss +2 -44
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -31
- data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +342 -0
- data/node_modules/govuk-frontend/govuk/components/radios/_radios.scss +2 -346
- data/node_modules/govuk-frontend/govuk/components/radios/radios.js +76 -28
- data/node_modules/govuk-frontend/govuk/components/select/_index.scss +49 -0
- data/node_modules/govuk-frontend/govuk/components/select/_select.scss +2 -57
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +36 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -37
- data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +145 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -157
- data/node_modules/govuk-frontend/govuk/components/table/_index.scss +71 -0
- data/node_modules/govuk-frontend/govuk/components/table/_table.scss +2 -54
- data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +130 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -142
- data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +86 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +2 -91
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +47 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -55
- data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +66 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -60
- data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +5 -3
- data/node_modules/govuk-frontend/govuk/core/_links.scss +13 -3
- data/node_modules/govuk-frontend/govuk/core/_lists.scss +17 -3
- data/node_modules/govuk-frontend/govuk/core/_section-break.scss +5 -3
- data/node_modules/govuk-frontend/govuk/core/_template.scss +5 -4
- data/node_modules/govuk-frontend/govuk/core/_typography.scss +5 -3
- data/node_modules/govuk-frontend/govuk/helpers/_clearfix.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_device-pixels.scss +3 -3
- data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +9 -11
- data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +2 -1
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss +246 -33
- data/node_modules/govuk-frontend/govuk/helpers/_media-queries.scss +2 -6
- data/node_modules/govuk-frontend/govuk/helpers/_shape-arrow.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +3 -2
- data/node_modules/govuk-frontend/govuk/helpers/_typography.scss +8 -7
- data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +1 -1
- data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +101 -0
- data/node_modules/govuk-frontend/govuk/objects/_form-group.scss +1 -4
- data/node_modules/govuk-frontend/govuk/objects/_grid.scss +3 -6
- data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +5 -4
- data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +6 -4
- data/node_modules/govuk-frontend/govuk/overrides/_display.scss +6 -4
- data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +5 -3
- data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +5 -3
- data/node_modules/govuk-frontend/govuk/overrides/_width.scss +6 -3
- data/node_modules/govuk-frontend/govuk/settings/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss +11 -5
- data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +3 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +42 -35
- data/node_modules/govuk-frontend/govuk/settings/_compatibility.scss +0 -1
- data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +1 -1
- data/node_modules/govuk-frontend/govuk/settings/_links.scss +62 -0
- data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +4 -5
- data/node_modules/govuk-frontend/govuk/settings/_typography-font-families.scss +2 -2
- data/node_modules/govuk-frontend/govuk/settings/_typography-font.scss +14 -5
- data/node_modules/govuk-frontend/govuk/settings/_typography-responsive.scss +6 -2
- data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_font-url.scss +1 -4
- data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_image-url.scss +1 -4
- data/node_modules/govuk-frontend/govuk/tools/_px-to-em.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss +1 -1
- data/node_modules/govuk-frontend/govuk/utilities/_visually-hidden.scss +0 -1
- data/node_modules/govuk-frontend/govuk/vendor/_sass-mq.scss +0 -4
- data/package-lock.json +358 -288
- data/package.json +2 -2
- metadata +56 -4
@@ -1,91 +1,2 @@
|
|
1
|
-
@import "../../
|
2
|
-
@import "
|
3
|
-
@import "../../helpers/all";
|
4
|
-
|
5
|
-
@include govuk-exports("govuk/component/tag") {
|
6
|
-
.govuk-tag {
|
7
|
-
|
8
|
-
display: inline-block;
|
9
|
-
|
10
|
-
// When a user customises their colours often the background is removed,
|
11
|
-
// by adding a outline we ensure that the tag component still keeps it's meaning.
|
12
|
-
// https://accessibility.blog.gov.uk/2017/03/27/how-users-change-colours-on-websites/
|
13
|
-
outline: 2px solid transparent;
|
14
|
-
outline-offset: -2px;
|
15
|
-
|
16
|
-
color: govuk-colour("white");
|
17
|
-
background-color: govuk-colour("blue");
|
18
|
-
letter-spacing: 1px;
|
19
|
-
|
20
|
-
text-decoration: none;
|
21
|
-
text-transform: uppercase;
|
22
|
-
|
23
|
-
@if $govuk-use-legacy-font {
|
24
|
-
// Since New Transport sits slightly higher than other common fonts.
|
25
|
-
// We use intentionally uneven padding to make it balanced, this can be
|
26
|
-
// removed using the version of the font that has a more common vertical spacing.
|
27
|
-
@include govuk-font($size: 16, $weight: bold, $line-height: 1.25);
|
28
|
-
padding-top: 4px;
|
29
|
-
padding-right: 8px;
|
30
|
-
padding-bottom: 1px;
|
31
|
-
padding-left: 8px;
|
32
|
-
} @else {
|
33
|
-
@include govuk-font($size: 16, $weight: bold, $line-height: 1);
|
34
|
-
padding-top: 5px;
|
35
|
-
padding-right: 8px;
|
36
|
-
padding-bottom: 4px;
|
37
|
-
padding-left: 8px;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
// Deprecated. We'll remove this class in a future release. Use `.govuk-tag--grey` instead.
|
42
|
-
.govuk-tag--inactive {
|
43
|
-
background-color: govuk-colour("dark-grey", $legacy: "grey-1");
|
44
|
-
}
|
45
|
-
|
46
|
-
.govuk-tag--grey {
|
47
|
-
color: govuk-shade(govuk-colour("dark-grey", $legacy: "grey-1"), 30);
|
48
|
-
background: govuk-tint(govuk-colour("dark-grey", $legacy: "grey-1"), 90);
|
49
|
-
}
|
50
|
-
|
51
|
-
.govuk-tag--purple {
|
52
|
-
color: govuk-shade(govuk-colour("purple"), 20);
|
53
|
-
background: govuk-tint(govuk-colour("purple"), 80);
|
54
|
-
}
|
55
|
-
|
56
|
-
.govuk-tag--turquoise {
|
57
|
-
color: govuk-shade(govuk-colour("turquoise"), 60);
|
58
|
-
background: govuk-tint(govuk-colour("turquoise"), 70);
|
59
|
-
}
|
60
|
-
|
61
|
-
.govuk-tag--blue {
|
62
|
-
color: govuk-shade(govuk-colour("blue"), 30);
|
63
|
-
background: govuk-tint(govuk-colour("blue"), 80);
|
64
|
-
}
|
65
|
-
|
66
|
-
.govuk-tag--yellow {
|
67
|
-
color: govuk-shade(govuk-colour("yellow"), 65);
|
68
|
-
background: govuk-tint(govuk-colour("yellow"), 75);
|
69
|
-
}
|
70
|
-
|
71
|
-
.govuk-tag--orange {
|
72
|
-
color: govuk-shade(govuk-colour("orange"), 55);
|
73
|
-
background: govuk-tint(govuk-colour("orange"), 70);
|
74
|
-
}
|
75
|
-
|
76
|
-
.govuk-tag--red {
|
77
|
-
color: govuk-shade(govuk-colour("red"), 30);
|
78
|
-
background: govuk-tint(govuk-colour("red"), 80);
|
79
|
-
}
|
80
|
-
|
81
|
-
.govuk-tag--pink {
|
82
|
-
color: govuk-shade(govuk-colour("pink"), 40);
|
83
|
-
background: govuk-tint(govuk-colour("pink"), 80);
|
84
|
-
}
|
85
|
-
|
86
|
-
.govuk-tag--green {
|
87
|
-
color: govuk-shade(govuk-colour("green"), 20);
|
88
|
-
background: govuk-tint(govuk-colour("green"), 80);
|
89
|
-
}
|
90
|
-
|
91
|
-
}
|
1
|
+
@import "../../base";
|
2
|
+
@import "./index";
|
@@ -0,0 +1,47 @@
|
|
1
|
+
@import "../error-message/index";
|
2
|
+
@import "../hint/index";
|
3
|
+
@import "../label/index";
|
4
|
+
|
5
|
+
@include govuk-exports("govuk/component/textarea") {
|
6
|
+
.govuk-textarea {
|
7
|
+
@include govuk-font($size: 19, $line-height: 1.25);
|
8
|
+
|
9
|
+
box-sizing: border-box; // should this be global?
|
10
|
+
display: block;
|
11
|
+
width: 100%;
|
12
|
+
min-height: 40px;
|
13
|
+
@include govuk-responsive-margin(6, "bottom");
|
14
|
+
padding: govuk-spacing(1);
|
15
|
+
|
16
|
+
resize: vertical;
|
17
|
+
|
18
|
+
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
19
|
+
border-radius: 0;
|
20
|
+
|
21
|
+
-webkit-appearance: none;
|
22
|
+
|
23
|
+
&:focus {
|
24
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
25
|
+
// Ensure outline appears outside of the element
|
26
|
+
outline-offset: 0;
|
27
|
+
// Double the border by adding its width again. Use `box-shadow` to do
|
28
|
+
// this instead of changing `border-width` (which changes element size) and
|
29
|
+
// since `outline` is already used for the yellow focus state.
|
30
|
+
box-shadow: inset 0 0 0 $govuk-border-width-form-element;
|
31
|
+
|
32
|
+
@include govuk-if-ie8 {
|
33
|
+
// IE8 doesn't support `box-shadow` so double the border with
|
34
|
+
// `border-width`.
|
35
|
+
border-width: $govuk-border-width-form-element * 2;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.govuk-textarea--error {
|
41
|
+
border: $govuk-border-width-form-element-error solid $govuk-error-colour;
|
42
|
+
|
43
|
+
&:focus {
|
44
|
+
border-color: $govuk-input-border-colour;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
@@ -1,55 +1,2 @@
|
|
1
|
-
@import "../../
|
2
|
-
@import "
|
3
|
-
@import "../../helpers/all";
|
4
|
-
|
5
|
-
@import "../error-message/error-message";
|
6
|
-
@import "../hint/hint";
|
7
|
-
@import "../label/label";
|
8
|
-
|
9
|
-
@include govuk-exports("govuk/component/textarea") {
|
10
|
-
.govuk-textarea {
|
11
|
-
@include govuk-font($size: 19, $line-height: 1.25);
|
12
|
-
|
13
|
-
box-sizing: border-box; // should this be global?
|
14
|
-
display: block;
|
15
|
-
width: 100%;
|
16
|
-
min-height: 40px;
|
17
|
-
@include govuk-responsive-margin(6, "bottom");
|
18
|
-
padding: govuk-spacing(1);
|
19
|
-
|
20
|
-
resize: vertical;
|
21
|
-
|
22
|
-
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
23
|
-
border-radius: 0;
|
24
|
-
|
25
|
-
-webkit-appearance: none;
|
26
|
-
|
27
|
-
&:focus {
|
28
|
-
outline: $govuk-focus-width solid $govuk-focus-colour;
|
29
|
-
// Ensure outline appears outside of the element
|
30
|
-
outline-offset: 0;
|
31
|
-
// Double the border by adding its width again. Use `box-shadow` to do
|
32
|
-
// this instead of changing `border-width` (which changes element size) and
|
33
|
-
// since `outline` is already used for the yellow focus state.
|
34
|
-
box-shadow: inset 0 0 0 $govuk-border-width-form-element;
|
35
|
-
|
36
|
-
@include govuk-if-ie8 {
|
37
|
-
// IE8 doesn't support `box-shadow` so double the border with
|
38
|
-
// `border-width`.
|
39
|
-
border-width: $govuk-border-width-form-element * 2;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
.govuk-textarea--error {
|
45
|
-
border: $govuk-border-width-form-element-error solid $govuk-error-colour;
|
46
|
-
|
47
|
-
&:focus {
|
48
|
-
border-color: $govuk-input-border-colour;
|
49
|
-
// Remove `box-shadow` inherited from `:focus` as `textarea--error`
|
50
|
-
// already has the thicker border.
|
51
|
-
box-shadow: none;
|
52
|
-
}
|
53
|
-
|
54
|
-
}
|
55
|
-
}
|
1
|
+
@import "../../base";
|
2
|
+
@import "./index";
|
@@ -0,0 +1,66 @@
|
|
1
|
+
@include govuk-exports("govuk/component/warning-text") {
|
2
|
+
.govuk-warning-text {
|
3
|
+
position: relative;
|
4
|
+
@include govuk-responsive-margin(6, "bottom");
|
5
|
+
padding: govuk-spacing(2) 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
.govuk-warning-text__assistive {
|
9
|
+
@include govuk-visually-hidden;
|
10
|
+
}
|
11
|
+
|
12
|
+
.govuk-warning-text__icon {
|
13
|
+
@include govuk-font($size: false, $weight: bold);
|
14
|
+
|
15
|
+
box-sizing: border-box;
|
16
|
+
|
17
|
+
display: inline-block;
|
18
|
+
|
19
|
+
position: absolute;
|
20
|
+
left: 0;
|
21
|
+
|
22
|
+
min-width: 35px;
|
23
|
+
min-height: 35px;
|
24
|
+
margin-top: -7px;
|
25
|
+
|
26
|
+
@include govuk-media-query($from: tablet) {
|
27
|
+
margin-top: -5px;
|
28
|
+
}
|
29
|
+
|
30
|
+
// When a user customises their colours the background colour will often be removed.
|
31
|
+
// Adding a border to the component keeps it's shape as a circle.
|
32
|
+
border: 3px solid govuk-colour("black");
|
33
|
+
border-radius: 50%;
|
34
|
+
|
35
|
+
color: govuk-colour("white");
|
36
|
+
background: govuk-colour("black");
|
37
|
+
|
38
|
+
font-size: 30px;
|
39
|
+
line-height: 29px;
|
40
|
+
|
41
|
+
text-align: center;
|
42
|
+
|
43
|
+
// Prevent the exclamation mark from being included when the warning text
|
44
|
+
// is copied, for example.
|
45
|
+
-webkit-user-select: none;
|
46
|
+
-ms-user-select: none;
|
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
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
.govuk-warning-text__text {
|
61
|
+
@include govuk-font($size: 19, $weight: bold);
|
62
|
+
@include govuk-text-colour;
|
63
|
+
display: block;
|
64
|
+
padding-left: 45px;
|
65
|
+
}
|
66
|
+
}
|
@@ -1,60 +1,2 @@
|
|
1
|
-
@import "../../
|
2
|
-
@import "
|
3
|
-
@import "../../helpers/all";
|
4
|
-
|
5
|
-
@include govuk-exports("govuk/component/warning-text") {
|
6
|
-
|
7
|
-
.govuk-warning-text {
|
8
|
-
position: relative;
|
9
|
-
@include govuk-responsive-margin(6, "bottom");
|
10
|
-
padding: govuk-spacing(2) 0;
|
11
|
-
}
|
12
|
-
|
13
|
-
.govuk-warning-text__assistive {
|
14
|
-
@include govuk-visually-hidden;
|
15
|
-
}
|
16
|
-
|
17
|
-
.govuk-warning-text__icon {
|
18
|
-
@include govuk-font($size: false, $weight: bold);
|
19
|
-
|
20
|
-
display: inline-block;
|
21
|
-
|
22
|
-
position: absolute;
|
23
|
-
left: 0;
|
24
|
-
|
25
|
-
min-width: 29px;
|
26
|
-
min-height: 29px;
|
27
|
-
margin-top: -7px;
|
28
|
-
|
29
|
-
@include govuk-media-query($from: tablet) {
|
30
|
-
margin-top: -5px;
|
31
|
-
}
|
32
|
-
|
33
|
-
// When a user customises their colours the background colour will often be removed.
|
34
|
-
// Adding a border to the component keeps it's shape as a circle.
|
35
|
-
border: 3px solid govuk-colour("black");
|
36
|
-
border-radius: 50%;
|
37
|
-
|
38
|
-
color: govuk-colour("white");
|
39
|
-
background: govuk-colour("black");
|
40
|
-
|
41
|
-
font-size: 30px;
|
42
|
-
line-height: 29px;
|
43
|
-
|
44
|
-
text-align: center;
|
45
|
-
|
46
|
-
// Prevent the exclamation mark from being included when the warning text
|
47
|
-
// is copied, for example.
|
48
|
-
-webkit-user-select: none;
|
49
|
-
-moz-user-select: none;
|
50
|
-
-ms-user-select: none;
|
51
|
-
user-select: none;
|
52
|
-
}
|
53
|
-
|
54
|
-
.govuk-warning-text__text {
|
55
|
-
@include govuk-font($size: 19, $weight: bold);
|
56
|
-
@include govuk-text-colour;
|
57
|
-
display: block;
|
58
|
-
padding-left: 45px;
|
59
|
-
}
|
60
|
-
}
|
1
|
+
@import "../../base";
|
2
|
+
@import "./index";
|
@@ -1,6 +1,8 @@
|
|
1
|
-
@
|
2
|
-
@
|
3
|
-
|
1
|
+
@if not mixin-exists("govuk-exports") {
|
2
|
+
@warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
|
3
|
+
}
|
4
|
+
|
5
|
+
@import "../base";
|
4
6
|
|
5
7
|
@import "links";
|
6
8
|
@import "typography";
|
@@ -1,6 +1,8 @@
|
|
1
|
-
@
|
2
|
-
@
|
3
|
-
|
1
|
+
@if not mixin-exists("govuk-exports") {
|
2
|
+
@warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
|
3
|
+
}
|
4
|
+
|
5
|
+
@import "../base";
|
4
6
|
|
5
7
|
@include govuk-exports("govuk/core/links") {
|
6
8
|
|
@@ -25,6 +27,14 @@
|
|
25
27
|
@include govuk-link-style-text;
|
26
28
|
}
|
27
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
|
+
|
28
38
|
.govuk-link--no-visited-state {
|
29
39
|
@include govuk-link-style-no-visited-state;
|
30
40
|
}
|
@@ -1,6 +1,8 @@
|
|
1
|
-
@
|
2
|
-
@
|
3
|
-
|
1
|
+
@if not mixin-exists("govuk-exports") {
|
2
|
+
@warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
|
3
|
+
}
|
4
|
+
|
5
|
+
@import "../base";
|
4
6
|
|
5
7
|
@include govuk-exports("govuk/core/lists") {
|
6
8
|
|
@@ -48,6 +50,14 @@
|
|
48
50
|
}
|
49
51
|
}
|
50
52
|
|
53
|
+
%govuk-list--spaced > li {
|
54
|
+
margin-bottom: govuk-spacing(2);
|
55
|
+
|
56
|
+
@include govuk-media-query($from: tablet) {
|
57
|
+
margin-bottom: govuk-spacing(3);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
51
61
|
.govuk-list--bullet {
|
52
62
|
@extend %govuk-list--bullet;
|
53
63
|
}
|
@@ -55,4 +65,8 @@
|
|
55
65
|
.govuk-list--number {
|
56
66
|
@extend %govuk-list--number;
|
57
67
|
}
|
68
|
+
|
69
|
+
.govuk-list--spaced {
|
70
|
+
@extend %govuk-list--spaced;
|
71
|
+
}
|
58
72
|
}
|
@@ -1,6 +1,8 @@
|
|
1
|
-
@
|
2
|
-
@
|
3
|
-
|
1
|
+
@if not mixin-exists("govuk-exports") {
|
2
|
+
@warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
|
3
|
+
}
|
4
|
+
|
5
|
+
@import "../base";
|
4
6
|
|
5
7
|
@include govuk-exports("govuk/core/section-break") {
|
6
8
|
|
@@ -1,6 +1,8 @@
|
|
1
|
-
@
|
2
|
-
@
|
3
|
-
|
1
|
+
@if not mixin-exists("govuk-exports") {
|
2
|
+
@warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
|
3
|
+
}
|
4
|
+
|
5
|
+
@import "../base";
|
4
6
|
|
5
7
|
@include govuk-exports("govuk/core/template") {
|
6
8
|
|
@@ -13,7 +15,6 @@
|
|
13
15
|
// Prevent automatic text sizing, as we already cater for small devices and
|
14
16
|
// would like the browser to stay on 100% text zoom by default.
|
15
17
|
-webkit-text-size-adjust: 100%;
|
16
|
-
-moz-text-size-adjust: 100%;
|
17
18
|
-ms-text-size-adjust: 100%;
|
18
19
|
text-size-adjust: 100%;
|
19
20
|
|
@@ -1,6 +1,8 @@
|
|
1
|
-
@
|
2
|
-
@
|
3
|
-
|
1
|
+
@if not mixin-exists("govuk-exports") {
|
2
|
+
@warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
|
3
|
+
}
|
4
|
+
|
5
|
+
@import "../base";
|
4
6
|
|
5
7
|
@include govuk-exports("govuk/core/typography") {
|
6
8
|
|