govuk_publishing_components 52.1.0 → 54.0.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/app/assets/stylesheets/component_guide/application.scss +14 -20
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +12 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +5 -14
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +4 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +3 -12
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +2 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +2 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +1 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +2 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -14
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +2 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +17 -59
- data/app/controllers/govuk_publishing_components/audit_controller.rb +1 -0
- data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +2 -1
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +3 -0
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +6 -20
- data/app/views/govuk_publishing_components/components/_search.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_search_with_autocomplete.html.erb +6 -2
- data/app/views/govuk_publishing_components/components/_select.html.erb +5 -2
- data/app/views/govuk_publishing_components/components/docs/heading.yml +4 -0
- data/app/views/govuk_publishing_components/components/docs/inverse_header.yml +14 -8
- data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +0 -1
- data/app/views/govuk_publishing_components/components/docs/search_with_autocomplete.yml +7 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +16 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +0 -56
- data/app/views/govuk_publishing_components/components/_title.html.erb +0 -38
- data/app/views/govuk_publishing_components/components/docs/title.yml +0 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45d09b1fcf62542a7497ba78e1b60618d092fc528646495b1f296aa64f54e59e
|
4
|
+
data.tar.gz: b25260a62d83b0395457eb8921ca7547eb775802c2c0a4fbbf851e8c5df46a1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acac17226a90dbd3083c33379ded3fcd64d9e53b6ee9a5f9390240a9bf7b720ac90c5eff2b94133ad5d34f0d347efb7f646c6a51af89eca386e03d0413d5aa85
|
7
|
+
data.tar.gz: 2840251f9834711840167a93322dd66508397f8f52769115cbb0023327eb44a9f9586c100dc3243f978c2d482a8a70920f0cc6b3b31049600bcef16d5ad90b55
|
@@ -13,7 +13,7 @@ $gem-guide-border-width: 1px;
|
|
13
13
|
@extend %govuk-list--bullet;
|
14
14
|
|
15
15
|
li {
|
16
|
-
margin-bottom:
|
16
|
+
margin-bottom: govuk-spacing(3);
|
17
17
|
@include govuk-font($size: 19);
|
18
18
|
}
|
19
19
|
|
@@ -27,7 +27,7 @@ $gem-guide-border-width: 1px;
|
|
27
27
|
|
28
28
|
.js-enabled & {
|
29
29
|
display: block;
|
30
|
-
margin-top:
|
30
|
+
margin-top: govuk-spacing(9);
|
31
31
|
}
|
32
32
|
}
|
33
33
|
|
@@ -45,8 +45,8 @@ $gem-guide-border-width: 1px;
|
|
45
45
|
|
46
46
|
.component-violation {
|
47
47
|
border: 3px solid $govuk-error-colour;
|
48
|
-
margin: 0 0
|
49
|
-
padding:
|
48
|
+
margin: 0 0 govuk-spacing(6);
|
49
|
+
padding: govuk-spacing(6);
|
50
50
|
@include govuk-text-colour;
|
51
51
|
|
52
52
|
.component-violation__title {
|
@@ -57,13 +57,13 @@ $gem-guide-border-width: 1px;
|
|
57
57
|
.component-violation__link {
|
58
58
|
display: block;
|
59
59
|
color: $govuk-error-colour;
|
60
|
-
margin:
|
60
|
+
margin: govuk-spacing(3) 0;
|
61
61
|
@include govuk-font($size: 19, $weight: bold);
|
62
62
|
}
|
63
63
|
}
|
64
64
|
|
65
65
|
.component-doc-h2 {
|
66
|
-
margin: (
|
66
|
+
margin: (govuk-spacing(6) * 1.5) 0 govuk-spacing(6);
|
67
67
|
@include govuk-text-colour;
|
68
68
|
@include govuk-font($size: 27, $weight: bold);
|
69
69
|
|
@@ -72,15 +72,9 @@ $gem-guide-border-width: 1px;
|
|
72
72
|
}
|
73
73
|
}
|
74
74
|
|
75
|
-
.component-doc-h3 {
|
76
|
-
margin: $govuk-gutter 0 $govuk-gutter-half;
|
77
|
-
@include govuk-text-colour;
|
78
|
-
@include govuk-font($size: 19, $weight: bold);
|
79
|
-
}
|
80
|
-
|
81
75
|
.component-call {
|
82
76
|
margin-top: -$gem-guide-border-width;
|
83
|
-
margin-bottom:
|
77
|
+
margin-bottom: govuk-spacing(3);
|
84
78
|
|
85
79
|
font-family: Consolas, Monaco, "Andale Mono", monospace;
|
86
80
|
font-size: 16px;
|
@@ -97,7 +91,7 @@ $gem-guide-border-width: 1px;
|
|
97
91
|
|
98
92
|
> pre {
|
99
93
|
margin: 0;
|
100
|
-
padding:
|
94
|
+
padding: govuk-spacing(6);
|
101
95
|
max-height: 300px;
|
102
96
|
overflow: auto;
|
103
97
|
font-family: inherit;
|
@@ -116,7 +110,7 @@ $gem-guide-border-width: 1px;
|
|
116
110
|
}
|
117
111
|
|
118
112
|
.component-guide-preview {
|
119
|
-
padding:
|
113
|
+
padding: govuk-spacing(6);
|
120
114
|
border: $gem-guide-border-width solid $govuk-border-colour;
|
121
115
|
position: relative;
|
122
116
|
|
@@ -168,7 +162,7 @@ $gem-guide-border-width: 1px;
|
|
168
162
|
h3,
|
169
163
|
h4 {
|
170
164
|
margin-top: 0;
|
171
|
-
margin-bottom:
|
165
|
+
margin-bottom: govuk-spacing(3);
|
172
166
|
}
|
173
167
|
|
174
168
|
h3 a {
|
@@ -176,7 +170,7 @@ $gem-guide-border-width: 1px;
|
|
176
170
|
}
|
177
171
|
|
178
172
|
h3:not(:first-child) {
|
179
|
-
margin-top:
|
173
|
+
margin-top: govuk-spacing(6);
|
180
174
|
}
|
181
175
|
|
182
176
|
ul {
|
@@ -219,10 +213,10 @@ $gem-guide-border-width: 1px;
|
|
219
213
|
|
220
214
|
.examples {
|
221
215
|
.component-example {
|
222
|
-
margin: 0 0
|
216
|
+
margin: 0 0 govuk-spacing(6) * 1.5;
|
223
217
|
|
224
218
|
.example-title {
|
225
|
-
margin:
|
219
|
+
margin: govuk-spacing(3) 0;
|
226
220
|
@include govuk-text-colour;
|
227
221
|
@include govuk-font($size: 24, $weight: bold);
|
228
222
|
}
|
@@ -255,7 +249,7 @@ html {
|
|
255
249
|
}
|
256
250
|
|
257
251
|
.component-guide-preview-page {
|
258
|
-
padding: (
|
252
|
+
padding: (govuk-spacing(6) * 1.5) 0;
|
259
253
|
position: relative;
|
260
254
|
|
261
255
|
.preview-title {
|
@@ -76,6 +76,18 @@ $thumbnail-icon-border-colour: govuk-colour("mid-grey");
|
|
76
76
|
}
|
77
77
|
}
|
78
78
|
|
79
|
+
.govspeak,
|
80
|
+
.gem-c-govspeak {
|
81
|
+
.gem-c-attachment__title {
|
82
|
+
@include govuk-font($size: 27, $weight: regular);
|
83
|
+
margin: 0 0 govuk-spacing(3) 0;
|
84
|
+
}
|
85
|
+
|
86
|
+
.gem-c-attachment__metadata {
|
87
|
+
margin: 0 0 govuk-spacing(3) 0;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
79
91
|
.gem-c-attachment__metadata--compact {
|
80
92
|
margin-bottom: 0;
|
81
93
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss
CHANGED
@@ -25,16 +25,16 @@
|
|
25
25
|
@include govuk-font($size: 27, $weight: bold);
|
26
26
|
}
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
* + h2,
|
29
|
+
* + h3 {
|
30
|
+
padding-top: govuk-spacing(3);
|
30
31
|
|
31
32
|
@include govuk-media-query($from: tablet) {
|
32
|
-
|
33
|
+
padding-top: govuk-spacing(9);
|
33
34
|
}
|
34
35
|
}
|
35
36
|
|
36
|
-
|
37
|
-
h3 {
|
37
|
+
.stat-headline:first-child {
|
38
38
|
margin-top: govuk-spacing(6);
|
39
39
|
|
40
40
|
@include govuk-media-query($from: tablet) {
|
@@ -42,15 +42,6 @@
|
|
42
42
|
}
|
43
43
|
}
|
44
44
|
|
45
|
-
h2:first-child,
|
46
|
-
h3:first-child {
|
47
|
-
margin-top: govuk-spacing(4);
|
48
|
-
|
49
|
-
@include govuk-media-query($from: tablet) {
|
50
|
-
margin-top: 0;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
45
|
h3 .number,
|
55
46
|
h4 .number,
|
56
47
|
h5 .number,
|
@@ -641,7 +641,7 @@ $after-button-padding-left: govuk-spacing(4);
|
|
641
641
|
right: 0;
|
642
642
|
|
643
643
|
@include focus-not-focus-visible {
|
644
|
-
border-bottom: 1px solid
|
644
|
+
border-bottom: 1px solid transparent;
|
645
645
|
border-left: none;
|
646
646
|
position: relative;
|
647
647
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss
CHANGED
@@ -9,28 +9,14 @@
|
|
9
9
|
|
10
10
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
11
11
|
.gem-c-govspeak {
|
12
|
-
// Scope attachment and attachment-link component styles to gem-c-govspeak
|
13
|
-
@import "../attachment-link";
|
14
|
-
@import "../attachment";
|
15
|
-
@import "../details";
|
16
|
-
|
17
|
-
// This block is duplicated from Whitehall as a transitional step, see the
|
18
|
-
// commit message for 2d893c10ee3f2cab27162b9aba38b12379a71d07 before making
|
19
|
-
// changes, original version:
|
20
|
-
// https://github.com/alphagov/whitehall/blob/main/app/assets/stylesheets/frontend/helpers/_attachment.scss
|
21
12
|
$thumbnail-width: 99px;
|
22
13
|
|
23
14
|
.attachment {
|
24
15
|
position: relative;
|
25
|
-
margin: govuk-spacing(6) 0;
|
26
|
-
padding:
|
16
|
+
margin: 0 0 govuk-spacing(6) 0;
|
17
|
+
padding: 0 0 0 ($thumbnail-width + govuk-spacing(6));
|
27
18
|
@include govuk-clearfix;
|
28
19
|
|
29
|
-
&:first-child {
|
30
|
-
margin-top: 0;
|
31
|
-
padding-top: 0;
|
32
|
-
}
|
33
|
-
|
34
20
|
@include govuk-media-query($media-type: print) {
|
35
21
|
padding-left: 0;
|
36
22
|
}
|
@@ -64,12 +50,12 @@
|
|
64
50
|
|
65
51
|
.attachment-details {
|
66
52
|
h2 {
|
67
|
-
margin: 0;
|
53
|
+
margin: 0 0 govuk-spacing(2) 0;
|
68
54
|
@include govuk-font($size: 27);
|
69
55
|
}
|
70
56
|
|
71
57
|
p {
|
72
|
-
margin: govuk-spacing(2) 0;
|
58
|
+
margin: 0 0 govuk-spacing(2) 0;
|
73
59
|
}
|
74
60
|
|
75
61
|
.metadata {
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss
CHANGED
@@ -9,18 +9,9 @@
|
|
9
9
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
10
10
|
.gem-c-govspeak {
|
11
11
|
.call-to-action {
|
12
|
-
margin:
|
12
|
+
margin: 0 0 govuk-spacing(4) 0;
|
13
13
|
background-color: govuk-colour("light-grey");
|
14
|
-
padding:
|
15
|
-
|
16
|
-
&:first-child {
|
17
|
-
margin-top: 0;
|
18
|
-
}
|
19
|
-
|
20
|
-
p:last-child,
|
21
|
-
ul:last-child,
|
22
|
-
ol:last-child {
|
23
|
-
margin-bottom: 0;
|
24
|
-
}
|
14
|
+
padding: govuk-spacing(6);
|
15
|
+
padding-bottom: govuk-spacing(2);
|
25
16
|
}
|
26
17
|
}
|
@@ -9,15 +9,8 @@
|
|
9
9
|
.gem-c-govspeak {
|
10
10
|
.example {
|
11
11
|
border-left: 10px solid govuk-colour("mid-grey");
|
12
|
-
padding:
|
13
|
-
margin:
|
14
|
-
|
15
|
-
// Remove margin from the last element
|
16
|
-
p:last-child,
|
17
|
-
ul:last-child,
|
18
|
-
ol:last-child {
|
19
|
-
margin-bottom: 0;
|
20
|
-
}
|
12
|
+
padding: govuk-spacing(4) 0 0.1234px govuk-spacing(4); // non-zero padding on bottom keeps margin of last element inside parent, simulating padding
|
13
|
+
margin: 0 0 govuk-spacing(4) 0;
|
21
14
|
|
22
15
|
strong {
|
23
16
|
display: block;
|
@@ -15,20 +15,11 @@
|
|
15
15
|
.gem-c-govspeak {
|
16
16
|
.footnotes {
|
17
17
|
border-top: 1px solid govuk-colour("mid-grey");
|
18
|
-
margin
|
19
|
-
padding-top: govuk-spacing(
|
18
|
+
margin: 0 0 govuk-spacing(4) 0;
|
19
|
+
padding-top: govuk-spacing(4);
|
20
20
|
|
21
21
|
a {
|
22
22
|
overflow-wrap: break-word;
|
23
23
|
}
|
24
|
-
|
25
|
-
ol {
|
26
|
-
margin-top: 0;
|
27
|
-
padding-top: 0;
|
28
|
-
|
29
|
-
li p {
|
30
|
-
margin: 10px 0;
|
31
|
-
}
|
32
|
-
}
|
33
24
|
}
|
34
25
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss
CHANGED
@@ -1,11 +1,7 @@
|
|
1
1
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
2
2
|
.gem-c-govspeak {
|
3
3
|
.form-download {
|
4
|
-
|
5
|
-
|
6
|
-
@include govuk-media-query($until: tablet) {
|
7
|
-
margin: 1em 0 1.5em;
|
8
|
-
}
|
4
|
+
margin: 0 0 govuk-spacing(4) 0;
|
9
5
|
|
10
6
|
p {
|
11
7
|
padding-right: 3em;
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss
CHANGED
@@ -10,7 +10,7 @@ $highlight-answer-color: govuk-colour("white");
|
|
10
10
|
color: $highlight-answer-color;
|
11
11
|
text-align: center;
|
12
12
|
padding: govuk-spacing(5) govuk-spacing(2) govuk-spacing(4);
|
13
|
-
margin: 0 0 govuk-spacing(
|
13
|
+
margin: 0 0 govuk-spacing(4);
|
14
14
|
|
15
15
|
p {
|
16
16
|
color: $highlight-answer-color;
|
@@ -29,7 +29,6 @@ $highlight-answer-color: govuk-colour("white");
|
|
29
29
|
}
|
30
30
|
|
31
31
|
@include govuk-media-query($until: tablet) {
|
32
|
-
margin: 0 0 govuk-spacing(2);
|
33
32
|
@include govuk-font($size: 48);
|
34
33
|
|
35
34
|
p {
|
@@ -10,14 +10,7 @@
|
|
10
10
|
.gem-c-govspeak {
|
11
11
|
.info-notice {
|
12
12
|
border-left: 10px solid govuk-colour("mid-grey");
|
13
|
-
padding:
|
14
|
-
margin:
|
15
|
-
|
16
|
-
// Remove margin from the last element
|
17
|
-
p:last-child,
|
18
|
-
ul:last-child,
|
19
|
-
ol:last-child {
|
20
|
-
margin-bottom: 0;
|
21
|
-
}
|
13
|
+
padding: govuk-spacing(4) 0 0.1234px govuk-spacing(4); // non-zero padding on bottom keeps margin of last element inside parent, simulating padding
|
14
|
+
margin: 0 0 govuk-spacing(4) 0;
|
22
15
|
}
|
23
16
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss
CHANGED
@@ -9,19 +9,6 @@
|
|
9
9
|
.gem-c-govspeak {
|
10
10
|
.legislative-list {
|
11
11
|
list-style: none;
|
12
|
-
margin:
|
13
|
-
|
14
|
-
li {
|
15
|
-
margin: 5px 0;
|
16
|
-
}
|
17
|
-
|
18
|
-
p {
|
19
|
-
margin: 20px 0;
|
20
|
-
}
|
21
|
-
|
22
|
-
ol {
|
23
|
-
margin: govuk-spacing(2) 0 govuk-spacing(2) govuk-spacing(6);
|
24
|
-
list-style: none;
|
25
|
-
}
|
12
|
+
margin: 0 0 govuk-spacing(4) 0;
|
26
13
|
}
|
27
14
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
3
3
|
.gem-c-govspeak {
|
4
4
|
.place {
|
5
|
-
margin:
|
5
|
+
margin: 0 0 govuk-spacing(4) 0;
|
6
6
|
border-bottom: solid 1px govuk-colour("mid-grey");
|
7
7
|
padding-bottom: 1.5em;
|
8
8
|
|
@@ -25,10 +25,6 @@
|
|
25
25
|
margin: .25em 0;
|
26
26
|
}
|
27
27
|
}
|
28
|
-
|
29
|
-
@include govuk-media-query($until: tablet) {
|
30
|
-
margin: .75em 0;
|
31
|
-
}
|
32
28
|
}
|
33
29
|
}
|
34
30
|
// stylelint-enable max-nesting-depth
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss
CHANGED
@@ -8,13 +8,7 @@
|
|
8
8
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
9
9
|
.gem-c-govspeak {
|
10
10
|
.stat-headline {
|
11
|
-
margin
|
12
|
-
margin-top: govuk-spacing(3);
|
13
|
-
|
14
|
-
@include govuk-media-query($from: tablet) {
|
15
|
-
margin-bottom: govuk-spacing(4);
|
16
|
-
margin-top: govuk-spacing(4);
|
17
|
-
}
|
11
|
+
margin: 0 0 govuk-spacing(4) 0;
|
18
12
|
|
19
13
|
p {
|
20
14
|
margin: 0;
|
@@ -23,7 +17,6 @@
|
|
23
17
|
|
24
18
|
em {
|
25
19
|
display: block;
|
26
|
-
margin: 3px 0 -5px;
|
27
20
|
@include govuk-font($size: 80, $weight: bold);
|
28
21
|
}
|
29
22
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
$icon-size: 35px;
|
15
15
|
$icon-spacing: 10px;
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
padding: govuk-spacing(3) 0 0 calc($icon-size + $icon-spacing);
|
18
|
+
margin: 0 0 govuk-spacing(6) 0;
|
19
19
|
position: relative;
|
20
20
|
|
21
21
|
&::before {
|
@@ -28,11 +28,4 @@
|
|
28
28
|
@include govuk-font($size: 19, $weight: bold);
|
29
29
|
}
|
30
30
|
}
|
31
|
-
|
32
|
-
// Prevent excessive spacing when placed in a call-to-action block
|
33
|
-
.call-to-action {
|
34
|
-
.help-notice:first-child {
|
35
|
-
margin-top: 0;
|
36
|
-
}
|
37
|
-
}
|
38
31
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss
CHANGED
@@ -1,25 +1,24 @@
|
|
1
1
|
@mixin markdown-typography {
|
2
2
|
@include govuk-text-colour;
|
3
|
-
|
4
3
|
@include govuk-font($size: 16);
|
5
4
|
|
6
|
-
$gutter-two-thirds: $govuk-gutter - calc($govuk-gutter / 3);
|
7
|
-
|
8
5
|
ol,
|
9
6
|
ul,
|
10
7
|
p {
|
11
|
-
margin
|
12
|
-
margin-bottom: $govuk-gutter-half;
|
8
|
+
margin: 0 0 govuk-spacing(4) 0;
|
13
9
|
@include govuk-font($size: 19);
|
14
|
-
|
15
|
-
@include govuk-media-query($from: tablet) {
|
16
|
-
margin-top: $gutter-two-thirds;
|
17
|
-
margin-bottom: $gutter-two-thirds;
|
18
|
-
}
|
19
10
|
}
|
20
11
|
|
21
12
|
// Headings
|
22
13
|
|
14
|
+
// put some spacing between any element followed by a heading
|
15
|
+
// has to be padding on the heading otherwise margins would overlap
|
16
|
+
|
17
|
+
* + h2,
|
18
|
+
* + h3 {
|
19
|
+
padding-top: govuk-spacing(4);
|
20
|
+
}
|
21
|
+
|
23
22
|
// Markdown is expected to be styled within a document with a H1 title
|
24
23
|
// thus H1's are not expected and are discouraged by bare styling
|
25
24
|
|
@@ -30,45 +29,22 @@
|
|
30
29
|
}
|
31
30
|
|
32
31
|
h2 {
|
33
|
-
margin
|
34
|
-
margin-bottom: govuk-spacing(4);
|
32
|
+
margin: 0 0 govuk-spacing(4) 0;
|
35
33
|
@include govuk-font($size: 27, $weight: bold);
|
36
|
-
|
37
|
-
@include govuk-media-query($from: desktop) {
|
38
|
-
margin-top: $govuk-gutter * 1.5;
|
39
|
-
}
|
40
34
|
}
|
41
35
|
|
42
36
|
h3 {
|
43
|
-
margin
|
44
|
-
margin-bottom: 0;
|
37
|
+
margin: 0 0 govuk-spacing(4) 0;
|
45
38
|
@include govuk-font($size: 19, $weight: bold);
|
46
39
|
}
|
47
40
|
|
48
41
|
// H4, H5 and H6 are discouraged and thus styled the same
|
49
42
|
|
50
43
|
h4,
|
51
|
-
h5,
|
52
|
-
h6 {
|
53
|
-
margin-top: $govuk-gutter + 5px;
|
54
|
-
margin-bottom: 0;
|
55
|
-
@include govuk-font($size: 19, $weight: bold);
|
56
|
-
|
57
|
-
+ p {
|
58
|
-
margin-top: 5px;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
44
|
h5,
|
63
45
|
h6 {
|
64
46
|
margin: 0;
|
65
|
-
|
66
|
-
|
67
|
-
h2:first-child,
|
68
|
-
h3:first-child,
|
69
|
-
h4:first-child,
|
70
|
-
p:first-child {
|
71
|
-
margin-top: 0;
|
47
|
+
@include govuk-font($size: 19, $weight: bold);
|
72
48
|
}
|
73
49
|
|
74
50
|
// Links
|
@@ -91,15 +67,8 @@
|
|
91
67
|
// utilise the type attribute for the formatting. Browsers default to a
|
92
68
|
// style of decimal.
|
93
69
|
list-style-position: outside;
|
94
|
-
margin
|
70
|
+
margin: 0 0 govuk-spacing(4) govuk-spacing(4);
|
95
71
|
padding: 0;
|
96
|
-
|
97
|
-
ul,
|
98
|
-
ol {
|
99
|
-
margin-top: 0;
|
100
|
-
margin-bottom: 0;
|
101
|
-
padding: 0;
|
102
|
-
}
|
103
72
|
}
|
104
73
|
|
105
74
|
ul {
|
@@ -107,22 +76,11 @@
|
|
107
76
|
}
|
108
77
|
|
109
78
|
li {
|
110
|
-
margin: 0 0
|
79
|
+
margin: 0 0 govuk-spacing(2);
|
111
80
|
padding: 0;
|
112
81
|
|
113
82
|
p {
|
114
|
-
margin: 0;
|
115
|
-
padding: 0;
|
116
|
-
}
|
117
|
-
|
118
|
-
p + p,
|
119
|
-
p + ul,
|
120
|
-
p + ol,
|
121
|
-
ul + p,
|
122
|
-
ul + ol,
|
123
|
-
ol + p,
|
124
|
-
ol + ul {
|
125
|
-
margin-top: 5px;
|
83
|
+
margin: 0 0 govuk-spacing(2);
|
126
84
|
}
|
127
85
|
}
|
128
86
|
|
@@ -142,8 +100,8 @@
|
|
142
100
|
// Horizontal Rule
|
143
101
|
|
144
102
|
hr {
|
145
|
-
margin-top:
|
146
|
-
margin-bottom:
|
103
|
+
margin-top: govuk-spacing(6) - 1px;
|
104
|
+
margin-bottom: govuk-spacing(6);
|
147
105
|
border-top: 1px solid $govuk-border-colour;
|
148
106
|
}
|
149
107
|
|
@@ -15,7 +15,8 @@
|
|
15
15
|
end
|
16
16
|
text = raw(text)
|
17
17
|
|
18
|
-
|
18
|
+
absolute_links_helper = GovukPublishingComponents::Presenters::AbsoluteLinksHelper.new()
|
19
|
+
cookie_preferences_href ||= absolute_links_helper.make_url_absolute("/help/cookies")
|
19
20
|
confirmation_message ||= raw(t("components.cookie_banner.confirmation_message.html",
|
20
21
|
link: link_to(
|
21
22
|
t("components.cookie_banner.confirmation_message.link"),
|
@@ -19,7 +19,6 @@
|
|
19
19
|
omit_footer_border ||= false
|
20
20
|
omit_header ||= false
|
21
21
|
product_name ||= nil
|
22
|
-
show_explore_header ||= false
|
23
22
|
show_cross_service_header ||= false
|
24
23
|
draft_watermark ||= false
|
25
24
|
show_search = local_assigns.include?(:show_search) ? local_assigns[:show_search] : true
|
@@ -102,32 +101,19 @@
|
|
102
101
|
href: "#content"
|
103
102
|
} %>
|
104
103
|
<% unless omit_header %>
|
105
|
-
<% if
|
106
|
-
<% if homepage %>
|
107
|
-
<%= render "govuk_publishing_components/components/layout_for_public/layout_super_navigation_header_homepage", {
|
108
|
-
logo_link: logo_link,
|
109
|
-
} %>
|
110
|
-
<% else %>
|
111
|
-
<%= render "govuk_publishing_components/components/layout_super_navigation_header", {
|
112
|
-
logo_link: logo_link,
|
113
|
-
} %>
|
114
|
-
<% end %>
|
115
|
-
<% elsif show_cross_service_header %>
|
104
|
+
<% if show_cross_service_header %>
|
116
105
|
<%= render "govuk_publishing_components/components/cross_service_header", {
|
117
106
|
one_login_navigation_items: one_login_navigation_items,
|
118
107
|
service_navigation_items: service_navigation_items,
|
119
108
|
product_name: product_name,
|
120
109
|
} %>
|
110
|
+
<% elsif homepage %>
|
111
|
+
<%= render "govuk_publishing_components/components/layout_for_public/layout_super_navigation_header_homepage", {
|
112
|
+
logo_link: logo_link,
|
113
|
+
} %>
|
121
114
|
<% else %>
|
122
|
-
<%= render "govuk_publishing_components/components/
|
123
|
-
search: show_search,
|
115
|
+
<%= render "govuk_publishing_components/components/layout_super_navigation_header", {
|
124
116
|
logo_link: logo_link,
|
125
|
-
navigation_items: navigation_items,
|
126
|
-
product_name: product_name,
|
127
|
-
|
128
|
-
# The (blue) bottom border needs to be underneath the emergency banner -
|
129
|
-
# so it has been turned off and added in manually.
|
130
|
-
remove_bottom_border: true,
|
131
117
|
} %>
|
132
118
|
<% end %>
|
133
119
|
<% end %>
|
@@ -18,6 +18,7 @@
|
|
18
18
|
no_border ||= false
|
19
19
|
size ||= ""
|
20
20
|
value ||= ""
|
21
|
+
local_assigns[:margin_bottom] ||= 6
|
21
22
|
|
22
23
|
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
23
24
|
component_helper.add_data_attribute({ module: "gem-toggle-input-class-on-focus" })
|
@@ -8,16 +8,20 @@
|
|
8
8
|
raise ArgumentError, "The search_with_autocomplete component requires source_url and source_key"
|
9
9
|
end
|
10
10
|
|
11
|
-
search_component_options = local_assigns.except(:autocomplete, :source_url, :source_key).merge(
|
11
|
+
search_component_options = local_assigns.except(:autocomplete, :source_url, :source_key, :margin_bottom).merge(
|
12
12
|
# The `search` component has an inline label by default, but this conflicts with the accessible-
|
13
13
|
# autocomplete component's markup and styling. Every potential use of this component is in
|
14
14
|
# situations where we want the label not to be inline anyway, so we override the default here.
|
15
|
-
inline_label: false
|
15
|
+
inline_label: false,
|
16
|
+
margin_bottom: 0
|
16
17
|
)
|
17
18
|
|
18
19
|
classes = %w[gem-c-search-with-autocomplete]
|
19
20
|
classes << "gem-c-search-with-autocomplete--large" if local_assigns[:size] == "large"
|
20
21
|
classes << "gem-c-search-with-autocomplete--on-govuk-blue" if local_assigns[:on_govuk_blue]
|
22
|
+
|
23
|
+
margin_bottom = [*0..9].include?(local_assigns[:margin_bottom]) ? local_assigns[:margin_bottom] : 6
|
24
|
+
classes << "govuk-!-margin-bottom-#{margin_bottom}" if margin_bottom
|
21
25
|
%>
|
22
26
|
<%= tag.div(
|
23
27
|
class: classes.join(" "),
|
@@ -16,8 +16,11 @@
|
|
16
16
|
<% if select_helper.options.any? && id && label %>
|
17
17
|
<%= content_tag :div, class: select_helper.css_classes do %>
|
18
18
|
<% if is_page_heading %>
|
19
|
-
<% add_gem_component_stylesheet("
|
20
|
-
<%=
|
19
|
+
<% add_gem_component_stylesheet("heading") %>
|
20
|
+
<%= render "govuk_publishing_components/components/heading", {
|
21
|
+
text: label_tag(id, label, class: select_helper.label_classes),
|
22
|
+
heading_level: 1
|
23
|
+
} %>
|
21
24
|
<% else %>
|
22
25
|
<%= label_tag(id, label, class: select_helper.label_classes) %>
|
23
26
|
<% end %>
|
@@ -14,9 +14,11 @@ examples:
|
|
14
14
|
data:
|
15
15
|
block: |
|
16
16
|
<!-- example content -->
|
17
|
-
<%= render "govuk_publishing_components/components/
|
18
|
-
|
19
|
-
|
17
|
+
<%= render "govuk_publishing_components/components/heading", {
|
18
|
+
text: "Education, Training and Skills",
|
19
|
+
font_size: "xl",
|
20
|
+
inverse: true,
|
21
|
+
padding: true,
|
20
22
|
} %>
|
21
23
|
<!-- end of example content -->
|
22
24
|
with_custom_padding:
|
@@ -38,9 +40,11 @@ examples:
|
|
38
40
|
full_width: true
|
39
41
|
block: |
|
40
42
|
<!-- example content -->
|
41
|
-
<%= render "govuk_publishing_components/components/
|
42
|
-
|
43
|
-
|
43
|
+
<%= render "govuk_publishing_components/components/heading", {
|
44
|
+
text: "Education, Training and Skills",
|
45
|
+
font_size: "xl",
|
46
|
+
inverse: true,
|
47
|
+
padding: true,
|
44
48
|
} %>
|
45
49
|
<!-- end of example content -->
|
46
50
|
with_subtext:
|
@@ -59,10 +63,12 @@ examples:
|
|
59
63
|
data:
|
60
64
|
block: |
|
61
65
|
<!-- example content -->
|
62
|
-
<%= render "govuk_publishing_components/components/
|
63
|
-
|
66
|
+
<%= render "govuk_publishing_components/components/heading", {
|
67
|
+
text: "LN5 0AT, Jackson Homes (Scopwick) Ltd: environmental permit application",
|
64
68
|
inverse: true,
|
65
69
|
context: "Notice",
|
70
|
+
padding: true,
|
71
|
+
font_size: "xl"
|
66
72
|
} %>
|
67
73
|
<p class="publication-header__last-changed">Published 22 April 2016</p>
|
68
74
|
<!-- end of example content -->
|
@@ -52,7 +52,6 @@ examples:
|
|
52
52
|
description: This allows for rendering the layout super navigation header in a different way for only the homepage.
|
53
53
|
data:
|
54
54
|
homepage: true
|
55
|
-
show_explore_header: true
|
56
55
|
omit_footer_navigation:
|
57
56
|
description: This allows the footer navigation to be omitted
|
58
57
|
data:
|
@@ -60,3 +60,10 @@ examples:
|
|
60
60
|
source_url: 'https://www.gov.uk/api/search.json?suggest=autocomplete'
|
61
61
|
source_key: suggested_autocomplete
|
62
62
|
label_text: <h2 class="govuk-heading-m govuk-!-margin-bottom-1">Search GOV.UK</h2>
|
63
|
+
with_margin_bottom:
|
64
|
+
description: |
|
65
|
+
The component accepts a number for margin bottom from `0` to `9` (`0px` to `60px`) using the [GOV.UK Frontend spacing scale](https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale). It defaults to having a margin bottom value of 6.
|
66
|
+
data:
|
67
|
+
source_url: 'https://www.gov.uk/api/search.json?suggest=autocomplete'
|
68
|
+
source_key: suggested_autocomplete
|
69
|
+
margin_bottom: 9
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 54.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-03 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: govuk_app_config
|
@@ -331,6 +331,20 @@ dependencies:
|
|
331
331
|
- - ">="
|
332
332
|
- !ruby/object:Gem::Version
|
333
333
|
version: '0'
|
334
|
+
- !ruby/object:Gem::Dependency
|
335
|
+
name: simplecov
|
336
|
+
requirement: !ruby/object:Gem::Requirement
|
337
|
+
requirements:
|
338
|
+
- - ">="
|
339
|
+
- !ruby/object:Gem::Version
|
340
|
+
version: '0'
|
341
|
+
type: :development
|
342
|
+
prerelease: false
|
343
|
+
version_requirements: !ruby/object:Gem::Requirement
|
344
|
+
requirements:
|
345
|
+
- - ">="
|
346
|
+
- !ruby/object:Gem::Version
|
347
|
+
version: '0'
|
334
348
|
- !ruby/object:Gem::Dependency
|
335
349
|
name: terser
|
336
350
|
requirement: !ruby/object:Gem::Requirement
|
@@ -594,7 +608,6 @@ files:
|
|
594
608
|
- app/assets/stylesheets/govuk_publishing_components/components/_table.scss
|
595
609
|
- app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss
|
596
610
|
- app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss
|
597
|
-
- app/assets/stylesheets/govuk_publishing_components/components/_title.scss
|
598
611
|
- app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss
|
599
612
|
- app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss
|
600
613
|
- app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss
|
@@ -740,7 +753,6 @@ files:
|
|
740
753
|
- app/views/govuk_publishing_components/components/_table.html.erb
|
741
754
|
- app/views/govuk_publishing_components/components/_tabs.html.erb
|
742
755
|
- app/views/govuk_publishing_components/components/_textarea.html.erb
|
743
|
-
- app/views/govuk_publishing_components/components/_title.html.erb
|
744
756
|
- app/views/govuk_publishing_components/components/_translation_nav.html.erb
|
745
757
|
- app/views/govuk_publishing_components/components/_warning_text.html.erb
|
746
758
|
- app/views/govuk_publishing_components/components/attachment/_thumbnail_document.html.erb
|
@@ -836,7 +848,6 @@ files:
|
|
836
848
|
- app/views/govuk_publishing_components/components/docs/table.yml
|
837
849
|
- app/views/govuk_publishing_components/components/docs/tabs.yml
|
838
850
|
- app/views/govuk_publishing_components/components/docs/textarea.yml
|
839
|
-
- app/views/govuk_publishing_components/components/docs/title.yml
|
840
851
|
- app/views/govuk_publishing_components/components/docs/translation_nav.yml
|
841
852
|
- app/views/govuk_publishing_components/components/docs/warning_text.yml
|
842
853
|
- app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb
|
@@ -1,56 +0,0 @@
|
|
1
|
-
@import "govuk_publishing_components/individual_component_support";
|
2
|
-
|
3
|
-
.gem-c-title {
|
4
|
-
@include govuk-media-query($from: tablet) {
|
5
|
-
padding-top: govuk-spacing(8);
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
.gem-c-title--inverse {
|
10
|
-
color: govuk-colour("white");
|
11
|
-
|
12
|
-
.gem-c-title__text,
|
13
|
-
.gem-c-title__context {
|
14
|
-
color: inherit;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
.gem-c-title__context-link {
|
19
|
-
text-decoration: none;
|
20
|
-
|
21
|
-
&:link,
|
22
|
-
&:visited {
|
23
|
-
color: inherit;
|
24
|
-
}
|
25
|
-
|
26
|
-
&:hover {
|
27
|
-
text-decoration: underline;
|
28
|
-
}
|
29
|
-
|
30
|
-
&:focus {
|
31
|
-
text-decoration: none;
|
32
|
-
color: $govuk-focus-text-colour;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
.gem-c-title__text {
|
37
|
-
margin: 0;
|
38
|
-
}
|
39
|
-
|
40
|
-
@include govuk-media-query($media-type: print) {
|
41
|
-
.gem-c-title {
|
42
|
-
margin: 5mm 0 10mm !important; // stylelint-disable-line declaration-no-important
|
43
|
-
}
|
44
|
-
|
45
|
-
.gem-c-title__context {
|
46
|
-
margin: 0;
|
47
|
-
}
|
48
|
-
|
49
|
-
.gem-c-title__text {
|
50
|
-
margin-top: 0;
|
51
|
-
}
|
52
|
-
|
53
|
-
.gem-c-title--inverse {
|
54
|
-
color: $govuk-print-text-colour;
|
55
|
-
}
|
56
|
-
}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
add_gem_component_stylesheet("title")
|
3
|
-
|
4
|
-
average_title_length ||= false
|
5
|
-
|
6
|
-
context ||= false
|
7
|
-
context_locale ||= false
|
8
|
-
context_inside ||= false
|
9
|
-
|
10
|
-
inverse ||= false
|
11
|
-
local_assigns[:margin_bottom] ||= 8
|
12
|
-
margin_bottom = [*0..9].include?(local_assigns[:margin_bottom]) ? "govuk-!-margin-bottom-#{local_assigns[:margin_bottom]}" : "govuk-!-margin-bottom-3"
|
13
|
-
|
14
|
-
classes = %w[gem-c-title]
|
15
|
-
classes << "gem-c-title--inverse" if inverse
|
16
|
-
classes << margin_bottom
|
17
|
-
|
18
|
-
heading_classes = %w[gem-c-title__text]
|
19
|
-
heading_classes << (average_title_length.present? ? 'govuk-heading-l' : 'govuk-heading-xl')
|
20
|
-
%>
|
21
|
-
<% @context_block = capture do %>
|
22
|
-
<span class="govuk-caption-xl gem-c-title__context" <%= "lang=#{context_locale}" if context_locale.present? %>>
|
23
|
-
<%= context %>
|
24
|
-
</span>
|
25
|
-
<% end %>
|
26
|
-
|
27
|
-
<%= content_tag(:div, class: classes) do %>
|
28
|
-
<% if context && !context_inside %>
|
29
|
-
<%= @context_block %>
|
30
|
-
<% end %>
|
31
|
-
|
32
|
-
<h1 class="<%= heading_classes.join(" ") %>">
|
33
|
-
<% if context && context_inside %>
|
34
|
-
<%= @context_block %>
|
35
|
-
<% end %>
|
36
|
-
<%= title %>
|
37
|
-
</h1>
|
38
|
-
<% end %>
|
@@ -1,64 +0,0 @@
|
|
1
|
-
name: Page title
|
2
|
-
description: A page title with optional context label
|
3
|
-
body: |
|
4
|
-
This contains an optional parameter for average title length. The two valid
|
5
|
-
values for this parameter are 'medium' or 'long'. Medium titles are titles
|
6
|
-
where the average is around 30 characters or less. Long titles would have
|
7
|
-
an average length of nearer 50 characters or more.
|
8
|
-
|
9
|
-
On average the titles on government bits of content are 50 characters. The
|
10
|
-
average for bits of general guidance are nearer 27 characters long.
|
11
|
-
accessibility_criteria: |
|
12
|
-
The page title must:
|
13
|
-
|
14
|
-
- be part of a correct heading structure for a page
|
15
|
-
- be semantically represented as a heading
|
16
|
-
- convey the heading level
|
17
|
-
shared_accessibility_criteria:
|
18
|
-
- link
|
19
|
-
examples:
|
20
|
-
default:
|
21
|
-
data:
|
22
|
-
title: My page title
|
23
|
-
with_context:
|
24
|
-
data:
|
25
|
-
context: Publication
|
26
|
-
title: My page title
|
27
|
-
with_context_inside:
|
28
|
-
description: |
|
29
|
-
If the context should be considered part of the page heading, you can nest the context within the <code><h1></code>.
|
30
|
-
data:
|
31
|
-
context: Publication
|
32
|
-
title: My page title
|
33
|
-
context_inside: true
|
34
|
-
with_context_language_labelled:
|
35
|
-
description: |
|
36
|
-
Sometimes this component appears on a page that has been translated. The title will naturally be supplied in the required language but the context string may fall back to the default. In these instances we need to label the language so the page remains semantic and screenreaders can handle the switch.
|
37
|
-
|
38
|
-
The `lang` attribute **must** be set to a [valid BCP47 string](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang#Language_tag_syntax). A valid code can be the two or three letter language code - for example, English is `en` or `eng`, Korean is `ko` or `kor` - but if in doubt please check.
|
39
|
-
data:
|
40
|
-
context: Publication
|
41
|
-
context_locale: en
|
42
|
-
title: My page title
|
43
|
-
long_title_with_context:
|
44
|
-
data:
|
45
|
-
context: Publication
|
46
|
-
title: My page title which is often really long and verbose and has lots of extra words it doesn't need
|
47
|
-
average_title_length: long
|
48
|
-
with_margin_bottom:
|
49
|
-
description: |
|
50
|
-
The component accepts a number for margin bottom from `0` to `9` (`0px` to `60px`) using the [GOV.UK Frontend spacing scale](https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale). It defaults to having a margin bottom of 50px.
|
51
|
-
|
52
|
-
This margin is responsive at certain sizes, see the link above for more detail. Note also that the component has a (responsive) top margin set as well, which cannot be modified.
|
53
|
-
data:
|
54
|
-
title: 'Margin bottom of 10px'
|
55
|
-
margin_bottom: 2
|
56
|
-
in_html_publication:
|
57
|
-
description: Page titles are used in HTML Publications ([see example](https://www.gov.uk/government/publications/fees-for-civil-and-family-courts/court-fees-for-the-high-court-county-court-and-family-court))
|
58
|
-
data:
|
59
|
-
context: Publication
|
60
|
-
title: HTML publication page title
|
61
|
-
inverse: true
|
62
|
-
margin_bottom: 0
|
63
|
-
context:
|
64
|
-
dark_background: true
|