govuk_publishing_components 21.52.1 → 21.55.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/govuk_publishing_components/action-link--nhs.png +0 -0
- data/app/assets/images/govuk_publishing_components/action-link--nhs.svg +1 -0
- data/app/assets/images/govuk_publishing_components/action-link-arrow--dark.png +0 -0
- data/app/assets/images/govuk_publishing_components/action-link-arrow--simple.png +0 -0
- data/app/assets/images/govuk_publishing_components/action-link-arrow.png +0 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +38 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +0 -38
- data/app/controllers/govuk_publishing_components/component_guide_controller.rb +34 -22
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +23 -3
- data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +5 -36
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +28 -8
- data/app/views/govuk_publishing_components/components/docs/action_link.yml +43 -15
- data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +23 -0
- data/lib/govuk_publishing_components.rb +1 -0
- data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +107 -0
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +14 -1
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb +1 -3
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +40 -19
- data/lib/govuk_publishing_components/presenters/machine_readable/faq_page_schema.rb +7 -6
- data/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema.rb +77 -0
- data/lib/govuk_publishing_components/presenters/schema_org.rb +24 -16
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/CHANGELOG.md +6 -0
- data/node_modules/axe-core/axe.js +19 -3
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/bower.json +1 -1
- data/node_modules/axe-core/lib/commons/dom/get-element-stack.js +27 -1
- data/node_modules/axe-core/package.json +23 -23
- data/node_modules/axe-core/sri-history.json +4 -0
- data/node_modules/govuk-frontend/README.md +6 -6
- data/node_modules/govuk-frontend/govuk/_base.scss +3 -0
- data/node_modules/govuk-frontend/govuk/all.js +1 -1
- data/node_modules/govuk-frontend/govuk/all.scss +1 -3
- data/node_modules/govuk-frontend/govuk/components/_all.scss +31 -29
- data/node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -208
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +207 -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 +112 -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/breadcrumbs/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +12 -1
- data/node_modules/govuk-frontend/govuk/components/button/_button.scss +2 -284
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +280 -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 +28 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -308
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +304 -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 +84 -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 +55 -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 +77 -0
- data/node_modules/govuk-frontend/govuk/components/footer/_footer.scss +2 -244
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +238 -0
- data/node_modules/govuk-frontend/govuk/components/header/_header.scss +2 -318
- data/node_modules/govuk-frontend/govuk/components/header/_index.scss +312 -0
- data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +7 -1
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +2 -2
- data/node_modules/govuk-frontend/govuk/components/hint/_hint.scss +2 -50
- data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +46 -0
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss +99 -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/panel/_index.scss +40 -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/select/_index.scss +53 -0
- data/node_modules/govuk-frontend/govuk/components/select/_select.scss +2 -57
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +33 -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 +153 -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 +50 -0
- data/node_modules/govuk-frontend/govuk/components/table/_table.scss +2 -54
- data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +138 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -142
- data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +87 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +2 -91
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +51 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -55
- data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +56 -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 +5 -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 -3
- 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/_focused.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +2 -1
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_media-queries.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_shape-arrow.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_typography.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +1 -1
- data/node_modules/govuk-frontend/govuk/objects/_form-group.scss +1 -3
- data/node_modules/govuk-frontend/govuk/objects/_grid.scss +1 -3
- data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +5 -3
- data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +2 -4
- data/node_modules/govuk-frontend/govuk/overrides/_display.scss +5 -3
- 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 +5 -3
- data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_font-url.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_image-url.scss +1 -1
- 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/package.json +23 -23
- data/node_modules/jquery/package.json +2 -2
- metadata +50 -2
@@ -0,0 +1,33 @@
|
|
1
|
+
@include govuk-exports("govuk/component/skip-link") {
|
2
|
+
.govuk-skip-link {
|
3
|
+
@include govuk-visually-hidden-focusable;
|
4
|
+
@include govuk-typography-common;
|
5
|
+
@include govuk-link-style-text;
|
6
|
+
@include govuk-typography-responsive($size: 16);
|
7
|
+
|
8
|
+
display: block;
|
9
|
+
padding: govuk-spacing(2) govuk-spacing(3);
|
10
|
+
|
11
|
+
// Respect 'display cutout' safe area (avoids notches and rounded corners)
|
12
|
+
@supports (padding: unquote("max(calc(0px))")) {
|
13
|
+
$padding-safe-area-right: calc(#{govuk-spacing(3)} + env(safe-area-inset-right));
|
14
|
+
$padding-safe-area-left: calc(#{govuk-spacing(3)} + env(safe-area-inset-left));
|
15
|
+
|
16
|
+
// Use max() to pick largest padding, default or with safe area
|
17
|
+
// 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})");
|
20
|
+
}
|
21
|
+
|
22
|
+
&:focus {
|
23
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
24
|
+
background-color: $govuk-focus-colour;
|
25
|
+
|
26
|
+
// Undo unwanted changes when global styles are enabled
|
27
|
+
@if ($govuk-global-styles) {
|
28
|
+
box-shadow: none;
|
29
|
+
text-decoration: underline;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -1,37 +1,2 @@
|
|
1
|
-
@import "../../
|
2
|
-
@import "
|
3
|
-
@import "../../helpers/all";
|
4
|
-
|
5
|
-
@include govuk-exports("govuk/component/skip-link") {
|
6
|
-
.govuk-skip-link {
|
7
|
-
@include govuk-visually-hidden-focusable;
|
8
|
-
@include govuk-typography-common;
|
9
|
-
@include govuk-link-style-text;
|
10
|
-
@include govuk-typography-responsive($size: 16);
|
11
|
-
|
12
|
-
display: block;
|
13
|
-
padding: govuk-spacing(2) govuk-spacing(3);
|
14
|
-
|
15
|
-
// Respect 'display cutout' safe area (avoids notches and rounded corners)
|
16
|
-
@supports (padding: unquote("max(calc(0px))")) {
|
17
|
-
$padding-safe-area-right: calc(#{govuk-spacing(3)} + env(safe-area-inset-right));
|
18
|
-
$padding-safe-area-left: calc(#{govuk-spacing(3)} + env(safe-area-inset-left));
|
19
|
-
|
20
|
-
// Use max() to pick largest padding, default or with safe area
|
21
|
-
// Escaped due to Sass max() vs. CSS native max()
|
22
|
-
padding-right: unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-right})");
|
23
|
-
padding-left: unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-left})");
|
24
|
-
}
|
25
|
-
|
26
|
-
&:focus {
|
27
|
-
outline: $govuk-focus-width solid $govuk-focus-colour;
|
28
|
-
background-color: $govuk-focus-colour;
|
29
|
-
|
30
|
-
// Undo unwanted changes when global styles are enabled
|
31
|
-
@if ($govuk-global-styles) {
|
32
|
-
box-shadow: none;
|
33
|
-
text-decoration: underline;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
1
|
+
@import "../../base";
|
2
|
+
@import "./index";
|
@@ -0,0 +1,153 @@
|
|
1
|
+
@include govuk-exports("govuk/component/summary-list") {
|
2
|
+
|
3
|
+
.govuk-summary-list {
|
4
|
+
@include govuk-font($size: 19);
|
5
|
+
@include govuk-text-colour;
|
6
|
+
@include govuk-media-query($from: tablet) {
|
7
|
+
display: table;
|
8
|
+
width: 100%;
|
9
|
+
table-layout: fixed; // Required to allow us to wrap words that overflow.
|
10
|
+
}
|
11
|
+
margin: 0; // Reset default user agent styles
|
12
|
+
@include govuk-responsive-margin(6, "bottom");
|
13
|
+
}
|
14
|
+
|
15
|
+
.govuk-summary-list__row {
|
16
|
+
@include govuk-media-query($until: tablet) {
|
17
|
+
margin-bottom: govuk-spacing(3);
|
18
|
+
border-bottom: 1px solid $govuk-border-colour;
|
19
|
+
}
|
20
|
+
@include govuk-media-query($from: tablet) {
|
21
|
+
display: table-row;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.govuk-summary-list__key,
|
26
|
+
.govuk-summary-list__value,
|
27
|
+
.govuk-summary-list__actions {
|
28
|
+
margin: 0; // Reset default user agent styles
|
29
|
+
|
30
|
+
@include govuk-media-query($from: tablet) {
|
31
|
+
display: table-cell;
|
32
|
+
padding-right: govuk-spacing(4);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.govuk-summary-list__key,
|
37
|
+
.govuk-summary-list__value,
|
38
|
+
.govuk-summary-list__actions {
|
39
|
+
@include govuk-media-query($from: tablet) {
|
40
|
+
padding-top: govuk-spacing(2);
|
41
|
+
padding-bottom: govuk-spacing(2);
|
42
|
+
border-bottom: 1px solid $govuk-border-colour;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.govuk-summary-list__actions {
|
47
|
+
margin-bottom: govuk-spacing(3);
|
48
|
+
@include govuk-media-query($from: tablet) {
|
49
|
+
width: 20%;
|
50
|
+
padding-right: 0;
|
51
|
+
text-align: right;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.govuk-summary-list__key,
|
56
|
+
.govuk-summary-list__value {
|
57
|
+
// Automatic wrapping for unbreakable text (e.g. URLs)
|
58
|
+
word-wrap: break-word; // Fallback for older browsers only
|
59
|
+
overflow-wrap: break-word;
|
60
|
+
}
|
61
|
+
|
62
|
+
.govuk-summary-list__key {
|
63
|
+
margin-bottom: govuk-spacing(1);
|
64
|
+
@include govuk-typography-weight-bold;
|
65
|
+
@include govuk-media-query($from: tablet) {
|
66
|
+
width: 30%;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
.govuk-summary-list__value {
|
71
|
+
@include govuk-media-query($until: tablet) {
|
72
|
+
margin-bottom: govuk-spacing(3);
|
73
|
+
}
|
74
|
+
@include govuk-media-query($from: tablet) {
|
75
|
+
width: 50%;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
// Expand width when value is last column (no action)
|
80
|
+
.govuk-summary-list__value:last-child {
|
81
|
+
@include govuk-media-query($from: tablet) {
|
82
|
+
width: 70%;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.govuk-summary-list__value > p {
|
87
|
+
margin-bottom: govuk-spacing(2);
|
88
|
+
}
|
89
|
+
|
90
|
+
.govuk-summary-list__value > :last-child {
|
91
|
+
margin-bottom: 0;
|
92
|
+
}
|
93
|
+
|
94
|
+
.govuk-summary-list__actions-list {
|
95
|
+
width: 100%;
|
96
|
+
margin: 0; // Reset default user agent styles
|
97
|
+
padding: 0; // Reset default user agent styles
|
98
|
+
}
|
99
|
+
|
100
|
+
.govuk-summary-list__actions-list-item {
|
101
|
+
display: inline;
|
102
|
+
margin-right: govuk-spacing(2);
|
103
|
+
padding-right: govuk-spacing(2);
|
104
|
+
}
|
105
|
+
|
106
|
+
// In older browsers such as IE8, :last-child is not available,
|
107
|
+
// so only show the border divider where it is available.
|
108
|
+
.govuk-summary-list__actions-list-item:not(:last-child) {
|
109
|
+
border-right: 1px solid $govuk-border-colour;
|
110
|
+
}
|
111
|
+
|
112
|
+
.govuk-summary-list__actions-list-item:last-child {
|
113
|
+
margin-right: 0;
|
114
|
+
padding-right: 0;
|
115
|
+
border: 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
// No border on entire summary list
|
119
|
+
.govuk-summary-list--no-border {
|
120
|
+
@include govuk-media-query($until: tablet) {
|
121
|
+
.govuk-summary-list__row {
|
122
|
+
border: 0;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
@include govuk-media-query($from: tablet) {
|
127
|
+
.govuk-summary-list__key,
|
128
|
+
.govuk-summary-list__value,
|
129
|
+
.govuk-summary-list__actions {
|
130
|
+
// Remove 1px border, add 1px height back on
|
131
|
+
padding-bottom: govuk-spacing(2) + 1px;
|
132
|
+
border: 0;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
// No border on specific rows
|
138
|
+
.govuk-summary-list__row--no-border {
|
139
|
+
@include govuk-media-query($until: tablet) {
|
140
|
+
border: 0;
|
141
|
+
}
|
142
|
+
|
143
|
+
@include govuk-media-query($from: tablet) {
|
144
|
+
.govuk-summary-list__key,
|
145
|
+
.govuk-summary-list__value,
|
146
|
+
.govuk-summary-list__actions {
|
147
|
+
// Remove 1px border, add 1px height back on
|
148
|
+
padding-bottom: govuk-spacing(2) + 1px;
|
149
|
+
border: 0;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
@@ -1,157 +1,2 @@
|
|
1
|
-
@import "../../
|
2
|
-
@import "
|
3
|
-
@import "../../helpers/all";
|
4
|
-
|
5
|
-
@include govuk-exports("govuk/component/summary-list") {
|
6
|
-
|
7
|
-
.govuk-summary-list {
|
8
|
-
@include govuk-font($size: 19);
|
9
|
-
@include govuk-text-colour;
|
10
|
-
@include govuk-media-query($from: tablet) {
|
11
|
-
display: table;
|
12
|
-
width: 100%;
|
13
|
-
table-layout: fixed; // Required to allow us to wrap words that overflow.
|
14
|
-
}
|
15
|
-
margin: 0; // Reset default user agent styles
|
16
|
-
@include govuk-responsive-margin(6, "bottom");
|
17
|
-
}
|
18
|
-
|
19
|
-
.govuk-summary-list__row {
|
20
|
-
@include govuk-media-query($until: tablet) {
|
21
|
-
margin-bottom: govuk-spacing(3);
|
22
|
-
border-bottom: 1px solid $govuk-border-colour;
|
23
|
-
}
|
24
|
-
@include govuk-media-query($from: tablet) {
|
25
|
-
display: table-row;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
.govuk-summary-list__key,
|
30
|
-
.govuk-summary-list__value,
|
31
|
-
.govuk-summary-list__actions {
|
32
|
-
margin: 0; // Reset default user agent styles
|
33
|
-
|
34
|
-
@include govuk-media-query($from: tablet) {
|
35
|
-
display: table-cell;
|
36
|
-
padding-right: govuk-spacing(4);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
.govuk-summary-list__key,
|
41
|
-
.govuk-summary-list__value,
|
42
|
-
.govuk-summary-list__actions {
|
43
|
-
@include govuk-media-query($from: tablet) {
|
44
|
-
padding-top: govuk-spacing(2);
|
45
|
-
padding-bottom: govuk-spacing(2);
|
46
|
-
border-bottom: 1px solid $govuk-border-colour;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
.govuk-summary-list__actions {
|
51
|
-
margin-bottom: govuk-spacing(3);
|
52
|
-
@include govuk-media-query($from: tablet) {
|
53
|
-
width: 20%;
|
54
|
-
padding-right: 0;
|
55
|
-
text-align: right;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
.govuk-summary-list__key,
|
60
|
-
.govuk-summary-list__value {
|
61
|
-
// Automatic wrapping for unbreakable text (e.g. URLs)
|
62
|
-
word-wrap: break-word; // Fallback for older browsers only
|
63
|
-
overflow-wrap: break-word;
|
64
|
-
}
|
65
|
-
|
66
|
-
.govuk-summary-list__key {
|
67
|
-
margin-bottom: govuk-spacing(1);
|
68
|
-
@include govuk-typography-weight-bold;
|
69
|
-
@include govuk-media-query($from: tablet) {
|
70
|
-
width: 30%;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
.govuk-summary-list__value {
|
75
|
-
@include govuk-media-query($until: tablet) {
|
76
|
-
margin-bottom: govuk-spacing(3);
|
77
|
-
}
|
78
|
-
@include govuk-media-query($from: tablet) {
|
79
|
-
width: 50%;
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
// Expand width when value is last column (no action)
|
84
|
-
.govuk-summary-list__value:last-child {
|
85
|
-
@include govuk-media-query($from: tablet) {
|
86
|
-
width: 70%;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
|
90
|
-
.govuk-summary-list__value > p {
|
91
|
-
margin-bottom: govuk-spacing(2);
|
92
|
-
}
|
93
|
-
|
94
|
-
.govuk-summary-list__value > :last-child {
|
95
|
-
margin-bottom: 0;
|
96
|
-
}
|
97
|
-
|
98
|
-
.govuk-summary-list__actions-list {
|
99
|
-
width: 100%;
|
100
|
-
margin: 0; // Reset default user agent styles
|
101
|
-
padding: 0; // Reset default user agent styles
|
102
|
-
}
|
103
|
-
|
104
|
-
.govuk-summary-list__actions-list-item {
|
105
|
-
display: inline;
|
106
|
-
margin-right: govuk-spacing(2);
|
107
|
-
padding-right: govuk-spacing(2);
|
108
|
-
}
|
109
|
-
|
110
|
-
// In older browsers such as IE8, :last-child is not available,
|
111
|
-
// so only show the border divider where it is available.
|
112
|
-
.govuk-summary-list__actions-list-item:not(:last-child) {
|
113
|
-
border-right: 1px solid $govuk-border-colour;
|
114
|
-
}
|
115
|
-
|
116
|
-
.govuk-summary-list__actions-list-item:last-child {
|
117
|
-
margin-right: 0;
|
118
|
-
padding-right: 0;
|
119
|
-
border: 0;
|
120
|
-
}
|
121
|
-
|
122
|
-
// No border on entire summary list
|
123
|
-
.govuk-summary-list--no-border {
|
124
|
-
@include govuk-media-query($until: tablet) {
|
125
|
-
.govuk-summary-list__row {
|
126
|
-
border: 0;
|
127
|
-
}
|
128
|
-
}
|
129
|
-
|
130
|
-
@include govuk-media-query($from: tablet) {
|
131
|
-
.govuk-summary-list__key,
|
132
|
-
.govuk-summary-list__value,
|
133
|
-
.govuk-summary-list__actions {
|
134
|
-
// Remove 1px border, add 1px height back on
|
135
|
-
padding-bottom: govuk-spacing(2) + 1px;
|
136
|
-
border: 0;
|
137
|
-
}
|
138
|
-
}
|
139
|
-
}
|
140
|
-
|
141
|
-
// No border on specific rows
|
142
|
-
.govuk-summary-list__row--no-border {
|
143
|
-
@include govuk-media-query($until: tablet) {
|
144
|
-
border: 0;
|
145
|
-
}
|
146
|
-
|
147
|
-
@include govuk-media-query($from: tablet) {
|
148
|
-
.govuk-summary-list__key,
|
149
|
-
.govuk-summary-list__value,
|
150
|
-
.govuk-summary-list__actions {
|
151
|
-
// Remove 1px border, add 1px height back on
|
152
|
-
padding-bottom: govuk-spacing(2) + 1px;
|
153
|
-
border: 0;
|
154
|
-
}
|
155
|
-
}
|
156
|
-
}
|
157
|
-
}
|
1
|
+
@import "../../base";
|
2
|
+
@import "./index";
|
@@ -0,0 +1,50 @@
|
|
1
|
+
@include govuk-exports("govuk/component/table") {
|
2
|
+
.govuk-table {
|
3
|
+
@include govuk-font($size: 19);
|
4
|
+
@include govuk-text-colour;
|
5
|
+
width: 100%;
|
6
|
+
@include govuk-responsive-margin(6, "bottom");
|
7
|
+
|
8
|
+
border-spacing: 0;
|
9
|
+
border-collapse: collapse;
|
10
|
+
}
|
11
|
+
|
12
|
+
.govuk-table__header {
|
13
|
+
@include govuk-typography-weight-bold;
|
14
|
+
}
|
15
|
+
|
16
|
+
.govuk-table__header,
|
17
|
+
.govuk-table__cell {
|
18
|
+
padding: govuk-spacing(2) govuk-spacing(4) govuk-spacing(2) 0;
|
19
|
+
border-bottom: 1px solid $govuk-border-colour;
|
20
|
+
text-align: left;
|
21
|
+
vertical-align: top;
|
22
|
+
// GOV.UK Elements sets the font-size and line-height for all headers and cells
|
23
|
+
// in tables.
|
24
|
+
@include govuk-compatibility(govuk_elements) {
|
25
|
+
font-size: inherit;
|
26
|
+
line-height: inherit;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.govuk-table__cell--numeric {
|
31
|
+
@include govuk-font($size: false, $tabular: true);
|
32
|
+
}
|
33
|
+
|
34
|
+
.govuk-table__header--numeric,
|
35
|
+
.govuk-table__cell--numeric {
|
36
|
+
text-align: right;
|
37
|
+
}
|
38
|
+
|
39
|
+
.govuk-table__header:last-child,
|
40
|
+
.govuk-table__cell:last-child {
|
41
|
+
padding-right: 0;
|
42
|
+
}
|
43
|
+
|
44
|
+
.govuk-table__caption {
|
45
|
+
@include govuk-typography-weight-bold;
|
46
|
+
|
47
|
+
display: table-caption;
|
48
|
+
text-align: left;
|
49
|
+
}
|
50
|
+
}
|
@@ -1,54 +1,2 @@
|
|
1
|
-
@import "../../
|
2
|
-
@import "
|
3
|
-
@import "../../helpers/all";
|
4
|
-
|
5
|
-
@include govuk-exports("govuk/component/table") {
|
6
|
-
.govuk-table {
|
7
|
-
@include govuk-font($size: 19);
|
8
|
-
@include govuk-text-colour;
|
9
|
-
width: 100%;
|
10
|
-
@include govuk-responsive-margin(6, "bottom");
|
11
|
-
|
12
|
-
border-spacing: 0;
|
13
|
-
border-collapse: collapse;
|
14
|
-
}
|
15
|
-
|
16
|
-
.govuk-table__header {
|
17
|
-
@include govuk-typography-weight-bold;
|
18
|
-
}
|
19
|
-
|
20
|
-
.govuk-table__header,
|
21
|
-
.govuk-table__cell {
|
22
|
-
padding: govuk-spacing(2) govuk-spacing(4) govuk-spacing(2) 0;
|
23
|
-
border-bottom: 1px solid $govuk-border-colour;
|
24
|
-
text-align: left;
|
25
|
-
vertical-align: top;
|
26
|
-
// GOV.UK Elements sets the font-size and line-height for all headers and cells
|
27
|
-
// in tables.
|
28
|
-
@include govuk-compatibility(govuk_elements) {
|
29
|
-
font-size: inherit;
|
30
|
-
line-height: inherit;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
.govuk-table__cell--numeric {
|
35
|
-
@include govuk-font($size: false, $tabular: true);
|
36
|
-
}
|
37
|
-
|
38
|
-
.govuk-table__header--numeric,
|
39
|
-
.govuk-table__cell--numeric {
|
40
|
-
text-align: right;
|
41
|
-
}
|
42
|
-
|
43
|
-
.govuk-table__header:last-child,
|
44
|
-
.govuk-table__cell:last-child {
|
45
|
-
padding-right: 0;
|
46
|
-
}
|
47
|
-
|
48
|
-
.govuk-table__caption {
|
49
|
-
@include govuk-typography-weight-bold;
|
50
|
-
|
51
|
-
display: table-caption;
|
52
|
-
text-align: left;
|
53
|
-
}
|
54
|
-
}
|
1
|
+
@import "../../base";
|
2
|
+
@import "./index";
|