@nationalarchives/frontend 0.1.21-prerelease → 0.1.23-prerelease
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.
- package/govuk-prototype-kit.config.json +2 -2
- package/nationalarchives/_prototype-kit.scss +2 -2
- package/nationalarchives/all.css +2 -2
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/all.js +1 -1
- package/nationalarchives/all.js.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.js +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.js.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.mjs +5 -15
- package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +2 -4
- package/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +64 -0
- package/nationalarchives/components/breadcrumbs/fixtures.json +2 -2
- package/nationalarchives/components/breadcrumbs/template.njk +11 -15
- package/nationalarchives/components/button/_button-group.scss +1 -1
- package/nationalarchives/components/button/button.css +1 -1
- package/nationalarchives/components/button/button.css.map +1 -1
- package/nationalarchives/components/button/button.scss +2 -1
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +3 -1
- package/nationalarchives/components/card/card.stories.js +4 -1
- package/nationalarchives/components/card/fixtures.json +17 -17
- package/nationalarchives/components/card/macro-options.json +6 -0
- package/nationalarchives/components/card/template.njk +5 -5
- package/nationalarchives/components/cookie-banner/cookie-banner.css +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
- package/nationalarchives/components/cookie-banner/template.njk +1 -1
- package/nationalarchives/components/filters/filters.css +1 -1
- package/nationalarchives/components/filters/filters.css.map +1 -1
- package/nationalarchives/components/filters/filters.scss +1 -1
- package/nationalarchives/components/footer/fixtures.json +1 -1
- package/nationalarchives/components/footer/footer.css +1 -1
- package/nationalarchives/components/footer/footer.css.map +1 -1
- package/nationalarchives/components/footer/footer.scss +7 -48
- package/nationalarchives/components/footer/footer.stories.js +1 -1
- package/nationalarchives/components/footer/template.njk +11 -10
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/gallery/template.njk +2 -2
- package/nationalarchives/components/grid/grid.css +1 -1
- package/nationalarchives/components/grid/grid.css.map +1 -1
- package/nationalarchives/components/grid/grid.stories.js +21 -0
- package/nationalarchives/components/grid/macro-options.json +48 -0
- package/nationalarchives/components/grid/template.njk +29 -3
- package/nationalarchives/components/header/header.css +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/header/header.scss +54 -123
- package/nationalarchives/components/header/header.stories.js +2 -0
- package/nationalarchives/components/header/macro-options.json +12 -0
- package/nationalarchives/components/header/template.njk +6 -1
- package/nationalarchives/components/hero/fixtures.json +88 -7
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +12 -3
- package/nationalarchives/components/hero/hero.stories.js +27 -3
- package/nationalarchives/components/hero/macro-options.json +44 -0
- package/nationalarchives/components/hero/template.njk +10 -2
- package/nationalarchives/components/index-grid/index-grid.css +1 -1
- package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
- package/nationalarchives/components/index-grid/index-grid.scss +0 -7
- package/nationalarchives/components/index-grid/template.njk +1 -1
- package/nationalarchives/components/message/message.css +1 -1
- package/nationalarchives/components/message/message.css.map +1 -1
- package/nationalarchives/components/message/message.scss +4 -0
- package/nationalarchives/components/pagination/pagination.css +1 -1
- package/nationalarchives/components/pagination/pagination.css.map +1 -1
- package/nationalarchives/components/pagination/pagination.scss +22 -3
- package/nationalarchives/components/phase-banner/phase-banner.css +1 -1
- package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
- package/nationalarchives/components/phase-banner/phase-banner.scss +5 -1
- package/nationalarchives/components/picture/picture.css +1 -1
- package/nationalarchives/components/picture/picture.css.map +1 -1
- package/nationalarchives/components/picture/picture.scss +1 -9
- package/nationalarchives/components/profile/profile.css +1 -1
- package/nationalarchives/components/profile/profile.css.map +1 -1
- package/nationalarchives/components/profile/template.njk +2 -2
- package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.scss +0 -2
- package/nationalarchives/components/skip-link/skip-link.css +1 -1
- package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.css +1 -1
- package/nationalarchives/components/tabs/tabs.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.scss +1 -2
- package/nationalarchives/components/tabs/tabs.stories.js +6 -6
- package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js +56 -49
- package/nationalarchives/stories/utilities/overrides/overrides.stories.js +10 -21
- package/nationalarchives/stories/utilities/typography/heading-groups.stories.js +2 -2
- package/nationalarchives/stories/utilities/typography/headings.stories.js +2 -2
- package/nationalarchives/stories/utilities/typography/typography.stories.js +1 -1
- package/nationalarchives/templates/homepage.njk +1 -1
- package/nationalarchives/templates/layouts/_generic.njk +7 -9
- package/nationalarchives/templates/layouts/_prototype-kit.njk +6 -5
- package/nationalarchives/templates/search-results.njk +1 -1
- package/nationalarchives/tools/_colour.scss +35 -5
- package/nationalarchives/tools/_grid.scss +12 -12
- package/nationalarchives/tools/_spacing.scss +6 -6
- package/nationalarchives/utilities/_columns.scss +42 -0
- package/nationalarchives/utilities/_global.scss +9 -7
- package/nationalarchives/utilities/_index.scss +2 -0
- package/nationalarchives/utilities/_lists.scss +172 -0
- package/nationalarchives/utilities/_typography.scss +99 -271
- package/nationalarchives/variables/_colour.scss +1 -2
- package/nationalarchives/variables/_typography.scss +3 -3
- package/package.json +15 -14
- package/nationalarchives/stories/design/about.mdx +0 -25
@@ -0,0 +1,172 @@
|
|
1
|
+
@use "../tools/colour";
|
2
|
+
@use "../tools/media";
|
3
|
+
@use "../tools/spacing";
|
4
|
+
@use "../tools/typography";
|
5
|
+
|
6
|
+
.tna-ul,
|
7
|
+
.tna-ol {
|
8
|
+
margin: 1rem 0 0;
|
9
|
+
padding: 0 0 0 2rem;
|
10
|
+
|
11
|
+
&:first-child {
|
12
|
+
margin-top: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
li::marker {
|
16
|
+
@include colour.colour-font("accent-background");
|
17
|
+
font-weight: 700;
|
18
|
+
}
|
19
|
+
|
20
|
+
&--plain {
|
21
|
+
padding-left: 0;
|
22
|
+
|
23
|
+
list-style: none;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.tna-dl {
|
28
|
+
margin: 1rem 0 0;
|
29
|
+
|
30
|
+
display: flex;
|
31
|
+
flex-wrap: wrap;
|
32
|
+
|
33
|
+
&:first-child {
|
34
|
+
margin-top: 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
dt,
|
38
|
+
dd {
|
39
|
+
margin: 0;
|
40
|
+
padding: 0.5rem 1rem;
|
41
|
+
|
42
|
+
position: relative;
|
43
|
+
|
44
|
+
box-sizing: border-box;
|
45
|
+
|
46
|
+
word-wrap: break-word;
|
47
|
+
}
|
48
|
+
|
49
|
+
&--plain {
|
50
|
+
dt {
|
51
|
+
padding-left: 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
dd {
|
55
|
+
padding-right: 0;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
dt {
|
60
|
+
width: 30%;
|
61
|
+
|
62
|
+
@include typography.main-font-weight-bold;
|
63
|
+
}
|
64
|
+
|
65
|
+
dd {
|
66
|
+
width: 70%;
|
67
|
+
|
68
|
+
+ dd {
|
69
|
+
margin-left: 30%;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
&--icon-padding {
|
74
|
+
dt {
|
75
|
+
padding-left: 3rem !important;
|
76
|
+
|
77
|
+
position: relative;
|
78
|
+
|
79
|
+
.fa-solid {
|
80
|
+
overflow: visible;
|
81
|
+
|
82
|
+
position: absolute;
|
83
|
+
top: 50%;
|
84
|
+
left: 1rem;
|
85
|
+
|
86
|
+
@include colour.colour-font("icon-light");
|
87
|
+
text-align: left;
|
88
|
+
|
89
|
+
transform: translateY(-50%);
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
&--icon-padding#{&}--plain {
|
95
|
+
dt {
|
96
|
+
padding-left: 2rem !important;
|
97
|
+
|
98
|
+
.fa-solid {
|
99
|
+
left: 0;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
dd {
|
104
|
+
padding-left: 2rem;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
&:not(&--plain) {
|
109
|
+
dt:first-child,
|
110
|
+
dd:nth-of-type(2n) + dt,
|
111
|
+
dd:nth-of-type(2n + 1) {
|
112
|
+
@include colour.colour-background("background-tint");
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
@include media.on-small {
|
117
|
+
dt {
|
118
|
+
width: 35%;
|
119
|
+
}
|
120
|
+
|
121
|
+
dd {
|
122
|
+
width: 65%;
|
123
|
+
|
124
|
+
+ dd {
|
125
|
+
margin-left: 35%;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
@include media.on-tiny {
|
131
|
+
dt,
|
132
|
+
dd {
|
133
|
+
width: 100%;
|
134
|
+
margin-left: 0;
|
135
|
+
}
|
136
|
+
|
137
|
+
dd {
|
138
|
+
padding-left: 1rem;
|
139
|
+
}
|
140
|
+
|
141
|
+
&--plain {
|
142
|
+
dt {
|
143
|
+
padding-bottom: 0;
|
144
|
+
}
|
145
|
+
|
146
|
+
dd {
|
147
|
+
padding-top: 0;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
&:not(&--plain) {
|
152
|
+
dt {
|
153
|
+
@include colour.colour-background("background-tint");
|
154
|
+
}
|
155
|
+
|
156
|
+
dd {
|
157
|
+
background: transparent !important;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
@include colour.on-high-contrast {
|
163
|
+
@include colour.colour-border("keyline-dark", 1px, solid, bottom);
|
164
|
+
|
165
|
+
dt,
|
166
|
+
dd {
|
167
|
+
background: transparent !important;
|
168
|
+
|
169
|
+
@include colour.colour-border("keyline-dark", 1px, solid, top);
|
170
|
+
}
|
171
|
+
}
|
172
|
+
}
|
@@ -14,6 +14,7 @@
|
|
14
14
|
src: url("#{assets.$tna-font-path}/OpenSans-Medium.ttf");
|
15
15
|
font-weight: normal;
|
16
16
|
font-style: normal;
|
17
|
+
// font-display: swap;
|
17
18
|
}
|
18
19
|
|
19
20
|
@font-face {
|
@@ -21,6 +22,7 @@
|
|
21
22
|
src: url("#{assets.$tna-font-path}/OpenSans-Bold.ttf");
|
22
23
|
font-weight: bold;
|
23
24
|
font-style: normal;
|
25
|
+
// font-display: swap;
|
24
26
|
}
|
25
27
|
|
26
28
|
@font-face {
|
@@ -28,6 +30,7 @@
|
|
28
30
|
src: url("#{assets.$tna-font-path}/RobotoMono-Regular.ttf");
|
29
31
|
font-weight: normal;
|
30
32
|
font-style: normal;
|
33
|
+
// font-display: swap;
|
31
34
|
}
|
32
35
|
|
33
36
|
.tna-template {
|
@@ -74,14 +77,14 @@ strong {
|
|
74
77
|
}
|
75
78
|
|
76
79
|
p {
|
77
|
-
margin: 0 0
|
80
|
+
margin: 2rem 0 0;
|
78
81
|
|
79
|
-
|
80
|
-
margin-
|
82
|
+
+ p {
|
83
|
+
margin-top: 1rem;
|
81
84
|
}
|
82
85
|
|
83
|
-
&:
|
84
|
-
margin-
|
86
|
+
&:first-child {
|
87
|
+
margin-top: 0;
|
85
88
|
}
|
86
89
|
}
|
87
90
|
|
@@ -97,20 +100,6 @@ a {
|
|
97
100
|
&:active {
|
98
101
|
@include typography.interacted-text-decoration;
|
99
102
|
}
|
100
|
-
|
101
|
-
&.tna-chip {
|
102
|
-
text-decoration: none;
|
103
|
-
|
104
|
-
&,
|
105
|
-
&:link,
|
106
|
-
&:visited {
|
107
|
-
@include colour.colour-font("font-dark");
|
108
|
-
}
|
109
|
-
|
110
|
-
&:hover {
|
111
|
-
@include typography.interacted-text-decoration;
|
112
|
-
}
|
113
|
-
}
|
114
103
|
}
|
115
104
|
|
116
105
|
small {
|
@@ -119,178 +108,18 @@ small {
|
|
119
108
|
);
|
120
109
|
}
|
121
110
|
|
122
|
-
.tna-
|
123
|
-
.
|
124
|
-
margin-
|
125
|
-
|
126
|
-
margin-left: 0;
|
127
|
-
padding: 0 0 0 2rem;
|
128
|
-
|
129
|
-
@include spacing.space-below;
|
130
|
-
|
131
|
-
li::marker {
|
132
|
-
@include colour.colour-font("accent-background");
|
133
|
-
font-weight: 700;
|
134
|
-
}
|
135
|
-
|
136
|
-
&--plain {
|
137
|
-
padding-left: 0;
|
138
|
-
|
139
|
-
list-style: none;
|
140
|
-
}
|
141
|
-
}
|
111
|
+
.tna-chip-list {
|
112
|
+
@include spacing.space-above;
|
113
|
+
margin-bottom: 0;
|
114
|
+
padding-left: 0;
|
142
115
|
|
143
|
-
.tna-dl {
|
144
116
|
display: flex;
|
145
117
|
flex-wrap: wrap;
|
118
|
+
gap: 1rem;
|
146
119
|
|
147
|
-
|
148
|
-
|
149
|
-
dt,
|
150
|
-
dd {
|
151
|
-
margin: 0;
|
152
|
-
padding: 0.5rem 1rem;
|
153
|
-
|
154
|
-
position: relative;
|
155
|
-
|
156
|
-
box-sizing: border-box;
|
157
|
-
|
158
|
-
word-wrap: break-word;
|
159
|
-
// word-break: break-all;
|
160
|
-
}
|
161
|
-
|
162
|
-
&--plain {
|
163
|
-
dt {
|
164
|
-
padding-left: 0;
|
165
|
-
}
|
166
|
-
|
167
|
-
dd {
|
168
|
-
padding-right: 0;
|
169
|
-
}
|
170
|
-
}
|
171
|
-
|
172
|
-
dt {
|
173
|
-
width: 25%;
|
174
|
-
|
175
|
-
@include typography.main-font-weight-bold;
|
176
|
-
}
|
177
|
-
|
178
|
-
dd {
|
179
|
-
width: 75%;
|
180
|
-
|
181
|
-
+ dd {
|
182
|
-
margin-left: 25%;
|
183
|
-
}
|
184
|
-
}
|
185
|
-
|
186
|
-
&--icon-padding {
|
187
|
-
dt {
|
188
|
-
padding-left: 3rem !important;
|
189
|
-
|
190
|
-
position: relative;
|
191
|
-
|
192
|
-
.fa-solid {
|
193
|
-
overflow: visible;
|
194
|
-
|
195
|
-
position: absolute;
|
196
|
-
top: 50%;
|
197
|
-
left: 1rem;
|
198
|
-
|
199
|
-
@include colour.colour-font("icon-light");
|
200
|
-
text-align: left;
|
201
|
-
|
202
|
-
transform: translateY(-50%);
|
203
|
-
}
|
204
|
-
}
|
205
|
-
}
|
206
|
-
|
207
|
-
&--icon-padding#{&}--plain {
|
208
|
-
dt {
|
209
|
-
padding-left: 2rem !important;
|
210
|
-
|
211
|
-
.fa-solid {
|
212
|
-
left: 0;
|
213
|
-
}
|
214
|
-
}
|
215
|
-
}
|
216
|
-
|
217
|
-
&:not(&--plain) {
|
218
|
-
dt,
|
219
|
-
dd {
|
220
|
-
// padding-left: 1rem;
|
221
|
-
// padding-right: 1rem;
|
222
|
-
}
|
223
|
-
|
224
|
-
dt:first-child,
|
225
|
-
dd:nth-of-type(2n) + dt,
|
226
|
-
dd:nth-of-type(2n + 1) {
|
227
|
-
@include colour.colour-background("background-tint");
|
228
|
-
}
|
229
|
-
}
|
230
|
-
|
231
|
-
@include media.on-small {
|
232
|
-
dt {
|
233
|
-
width: 35%;
|
234
|
-
}
|
235
|
-
|
236
|
-
dd {
|
237
|
-
width: 65%;
|
238
|
-
|
239
|
-
+ dd {
|
240
|
-
margin-left: 35%;
|
241
|
-
}
|
242
|
-
}
|
243
|
-
}
|
244
|
-
|
245
|
-
@include media.on-tiny {
|
246
|
-
dt,
|
247
|
-
dd {
|
248
|
-
width: 100%;
|
249
|
-
margin-left: 0;
|
250
|
-
}
|
251
|
-
|
252
|
-
dd {
|
253
|
-
padding-left: 1rem;
|
254
|
-
}
|
255
|
-
|
256
|
-
&--plain {
|
257
|
-
dt {
|
258
|
-
padding-bottom: 0;
|
259
|
-
}
|
260
|
-
|
261
|
-
dd {
|
262
|
-
padding-top: 0;
|
263
|
-
// padding-left: 2rem;
|
264
|
-
|
265
|
-
+ dt {
|
266
|
-
// @include colour.colour-border("keyline", 1px, solid, top);
|
267
|
-
}
|
268
|
-
}
|
269
|
-
}
|
270
|
-
|
271
|
-
&:not(&--plain) {
|
272
|
-
dt {
|
273
|
-
@include colour.colour-background("background-tint");
|
274
|
-
}
|
275
|
-
|
276
|
-
dd {
|
277
|
-
background: transparent !important;
|
278
|
-
}
|
279
|
-
}
|
280
|
-
}
|
281
|
-
|
282
|
-
@include colour.on-high-contrast {
|
283
|
-
@include colour.colour-border("keyline-dark", 1px, solid, bottom);
|
284
|
-
|
285
|
-
dt,
|
286
|
-
dd {
|
287
|
-
// padding-left: 0;
|
288
|
-
// padding-right: 0;
|
289
|
-
|
290
|
-
background: transparent !important;
|
120
|
+
list-style: none;
|
291
121
|
|
292
|
-
|
293
|
-
}
|
122
|
+
&__item {
|
294
123
|
}
|
295
124
|
}
|
296
125
|
|
@@ -310,20 +139,35 @@ small {
|
|
310
139
|
|
311
140
|
.tna-chip {
|
312
141
|
@extend %chip;
|
313
|
-
}
|
314
142
|
|
315
|
-
|
316
|
-
|
143
|
+
&--plain {
|
144
|
+
color: inherit;
|
317
145
|
|
318
|
-
|
319
|
-
flex-wrap: wrap;
|
320
|
-
gap: 1rem;
|
146
|
+
background-color: transparent;
|
321
147
|
|
322
|
-
|
148
|
+
border-color: transparent;
|
149
|
+
}
|
150
|
+
}
|
323
151
|
|
324
|
-
|
152
|
+
a.tna-chip {
|
153
|
+
text-decoration: none;
|
325
154
|
|
326
|
-
|
155
|
+
&,
|
156
|
+
&:link,
|
157
|
+
&:visited {
|
158
|
+
@include colour.colour-font("font-dark");
|
159
|
+
}
|
160
|
+
|
161
|
+
&:hover {
|
162
|
+
@include typography.interacted-text-decoration;
|
163
|
+
}
|
164
|
+
|
165
|
+
&--plain {
|
166
|
+
&,
|
167
|
+
&:link,
|
168
|
+
&:visited {
|
169
|
+
color: inherit;
|
170
|
+
}
|
327
171
|
}
|
328
172
|
}
|
329
173
|
|
@@ -356,6 +200,8 @@ small {
|
|
356
200
|
}
|
357
201
|
|
358
202
|
%heading-xl {
|
203
|
+
@extend %heading;
|
204
|
+
|
359
205
|
@include typography.heading-font;
|
360
206
|
@include typography.relative-font-size(64);
|
361
207
|
line-height: 1.2;
|
@@ -370,6 +216,8 @@ small {
|
|
370
216
|
}
|
371
217
|
|
372
218
|
%heading-l {
|
219
|
+
@extend %heading;
|
220
|
+
|
373
221
|
@include typography.heading-font;
|
374
222
|
@include typography.relative-font-size(32);
|
375
223
|
line-height: 1.3;
|
@@ -384,38 +232,74 @@ small {
|
|
384
232
|
}
|
385
233
|
|
386
234
|
%heading-m {
|
235
|
+
@extend %heading;
|
236
|
+
|
387
237
|
@include typography.main-font-weight-bold;
|
388
238
|
@include typography.relative-font-size(22);
|
389
239
|
line-height: 1.6;
|
240
|
+
|
241
|
+
@include media.on-mobile {
|
242
|
+
@include typography.relative-font-size(20);
|
243
|
+
}
|
390
244
|
}
|
391
245
|
|
392
246
|
%heading-s {
|
247
|
+
@extend %heading;
|
248
|
+
|
393
249
|
@include typography.main-font-weight-bold;
|
394
250
|
@include typography.relative-font-size(18);
|
395
251
|
line-height: 1.6;
|
396
252
|
}
|
397
253
|
|
398
|
-
|
399
|
-
@
|
254
|
+
%headings-and-heading-groups {
|
255
|
+
@include spacing.space-above;
|
256
|
+
margin-bottom: 0;
|
257
|
+
padding-top: 1rem;
|
258
|
+
|
259
|
+
&:first-child {
|
260
|
+
padding-top: 0;
|
261
|
+
}
|
262
|
+
|
263
|
+
&:last-child {
|
264
|
+
margin-bottom: 0;
|
265
|
+
padding-bottom: 0;
|
266
|
+
}
|
400
267
|
|
401
|
-
|
268
|
+
+ p {
|
269
|
+
margin-top: 1rem;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
|
273
|
+
.tna-heading {
|
274
|
+
&-xl {
|
402
275
|
@extend %heading-xl;
|
276
|
+
@extend %headings-and-heading-groups;
|
403
277
|
}
|
404
278
|
|
405
|
-
|
279
|
+
&-l {
|
406
280
|
@extend %heading-l;
|
281
|
+
@extend %headings-and-heading-groups;
|
407
282
|
}
|
408
283
|
|
409
|
-
|
284
|
+
&-m {
|
410
285
|
@extend %heading-m;
|
286
|
+
@extend %headings-and-heading-groups;
|
411
287
|
}
|
412
288
|
|
413
|
-
|
289
|
+
&-s {
|
414
290
|
@extend %heading-s;
|
291
|
+
@extend %headings-and-heading-groups;
|
415
292
|
}
|
416
293
|
}
|
417
294
|
|
418
295
|
.tna-hgroup {
|
296
|
+
&-xl,
|
297
|
+
&-l,
|
298
|
+
&-m,
|
299
|
+
&-s {
|
300
|
+
@extend %headings-and-heading-groups;
|
301
|
+
}
|
302
|
+
|
419
303
|
&__supertitle {
|
420
304
|
margin: 0 0 0.25rem;
|
421
305
|
|
@@ -426,56 +310,34 @@ small {
|
|
426
310
|
margin: 0;
|
427
311
|
|
428
312
|
display: block;
|
429
|
-
|
430
|
-
@extend %heading;
|
431
313
|
}
|
432
314
|
|
433
|
-
|
315
|
+
&-xl &__title {
|
434
316
|
@extend %heading-xl;
|
435
317
|
}
|
436
318
|
|
437
|
-
|
319
|
+
&-l &__title {
|
438
320
|
@extend %heading-l;
|
439
321
|
}
|
440
322
|
|
441
|
-
|
323
|
+
&-m &__title {
|
442
324
|
@extend %heading-m;
|
443
325
|
}
|
444
326
|
|
445
|
-
|
327
|
+
&-s &__title {
|
446
328
|
@extend %heading-s;
|
447
329
|
}
|
448
330
|
}
|
449
331
|
|
450
|
-
.tna-heading,
|
451
|
-
.tna-hgroup {
|
452
|
-
margin-top: 3rem;
|
453
|
-
margin-bottom: 1rem;
|
454
|
-
|
455
|
-
// &--m,
|
456
|
-
// &--s {
|
457
|
-
// margin-bottom: 0.5rem;
|
458
|
-
// }
|
459
|
-
|
460
|
-
&:first-child {
|
461
|
-
margin-top: 0;
|
462
|
-
}
|
463
|
-
|
464
|
-
&:last-child {
|
465
|
-
margin-bottom: 0;
|
466
|
-
}
|
467
|
-
}
|
468
|
-
|
469
332
|
.tna-blockquote {
|
470
|
-
|
333
|
+
@include spacing.space-above;
|
471
334
|
margin-right: 0;
|
335
|
+
margin-bottom: 0;
|
472
336
|
margin-left: 0;
|
473
337
|
padding: 1rem 1rem 1rem 2rem;
|
474
338
|
|
475
339
|
@include colour.colour-border("accent-background", 0.35rem, solid, left);
|
476
340
|
|
477
|
-
@include spacing.space-below;
|
478
|
-
|
479
341
|
&__quote {
|
480
342
|
font-weight: 700;
|
481
343
|
}
|
@@ -493,14 +355,20 @@ small {
|
|
493
355
|
}
|
494
356
|
}
|
495
357
|
|
358
|
+
.tna-large-paragraph {
|
359
|
+
@include spacing.space-above;
|
360
|
+
|
361
|
+
@include typography.relative-font-size(20);
|
362
|
+
}
|
363
|
+
|
496
364
|
.tna-scene-setter {
|
365
|
+
@include spacing.space-above;
|
366
|
+
|
497
367
|
@include typography.detail-font;
|
498
368
|
@include colour.colour-font("font-dark");
|
499
369
|
@include typography.relative-font-size(30);
|
500
370
|
line-height: math.div(50, 30);
|
501
371
|
|
502
|
-
@include spacing.space-below;
|
503
|
-
|
504
372
|
@include media.on-mobile {
|
505
373
|
@include typography.relative-font-size(24);
|
506
374
|
line-height: 2;
|
@@ -515,43 +383,3 @@ small {
|
|
515
383
|
}
|
516
384
|
}
|
517
385
|
}
|
518
|
-
|
519
|
-
.tna-columns {
|
520
|
-
column-gap: grid.$gutter-width;
|
521
|
-
|
522
|
-
&--2 {
|
523
|
-
column-count: 2;
|
524
|
-
}
|
525
|
-
|
526
|
-
&--3 {
|
527
|
-
column-count: 3;
|
528
|
-
}
|
529
|
-
|
530
|
-
@include media.on-tiny {
|
531
|
-
column-gap: grid.$gutter-width-tiny;
|
532
|
-
}
|
533
|
-
|
534
|
-
@include media.on-small {
|
535
|
-
@for $i from 1 through 4 {
|
536
|
-
&--#{$i}-small {
|
537
|
-
column-count: $i;
|
538
|
-
}
|
539
|
-
}
|
540
|
-
}
|
541
|
-
|
542
|
-
@include media.on-tiny {
|
543
|
-
@for $i from 1 through 4 {
|
544
|
-
&--#{$i}-tiny {
|
545
|
-
column-count: $i;
|
546
|
-
}
|
547
|
-
}
|
548
|
-
}
|
549
|
-
|
550
|
-
&__block {
|
551
|
-
break-inside: avoid;
|
552
|
-
}
|
553
|
-
|
554
|
-
&:has(&__block:only-of-type) {
|
555
|
-
column-count: 1;
|
556
|
-
}
|
557
|
-
}
|
@@ -162,13 +162,12 @@ DARK, HIGH_CONTRAST THEME
|
|
162
162
|
$colour-palette-high-contrast-dark: map.merge(
|
163
163
|
$colour-palette-dark,
|
164
164
|
(
|
165
|
-
"page-background": brand-colour("black"),
|
166
165
|
"font-base": brand-colour("white"),
|
167
166
|
"font-light": brand-colour("white"),
|
168
167
|
"icon-light": brand-colour("white", 0.75),
|
169
168
|
"link": brand-colour("white"),
|
170
169
|
"link-visited": brand-colour("white"),
|
171
170
|
"keyline": brand-colour("white"),
|
172
|
-
"contrast-background":
|
171
|
+
"contrast-background": brand-colour("black"),
|
173
172
|
)
|
174
173
|
) !default;
|
@@ -9,11 +9,11 @@ $body-line-height: #{math.div(16, 18) * 2} !default; // 1.77777
|
|
9
9
|
$interactive-text-decoration-thickness: 3.5px !default;
|
10
10
|
|
11
11
|
$font-family-main: "Open Sans", sans-serif !default;
|
12
|
-
$font-weight-main: normal !default;
|
13
|
-
$font-weight-main-bold: bold !default;
|
12
|
+
$font-weight-main: normal !default; // Defined in utilities/_typography.scss
|
13
|
+
$font-weight-main-bold: bold !default; // Defined in utilities/_typography.scss
|
14
14
|
|
15
15
|
$font-family-heading: supria-sans-condensed, "Arial Narrow", sans-serif !default;
|
16
|
-
$font-weight-heading:
|
16
|
+
$font-weight-heading: 500 !default;
|
17
17
|
|
18
18
|
$font-family-detail: "Roboto Mono", monospace !default;
|
19
19
|
$font-weight-detail: normal !default;
|