@nationalarchives/frontend 0.1.51 → 0.1.53
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/nationalarchives/all.css +1 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/all.js +1 -1
- package/nationalarchives/all.js.map +1 -1
- package/nationalarchives/all.mjs +7 -0
- package/nationalarchives/analytics.js +1 -1
- package/nationalarchives/analytics.js.map +1 -1
- package/nationalarchives/analytics.mjs +4 -4
- package/nationalarchives/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +9 -8
- package/nationalarchives/components/button/button-group.stories.js +0 -8
- package/nationalarchives/components/button/button.css +1 -1
- package/nationalarchives/components/button/button.css.map +1 -1
- package/nationalarchives/components/button/button.scss +12 -6
- package/nationalarchives/components/button/fixtures.json +76 -0
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +1 -1
- package/nationalarchives/components/card/macro-options.json +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.scss +3 -2
- package/nationalarchives/components/compound-filters/compound-filters.css +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.scss +10 -6
- package/nationalarchives/components/cookie-banner/README.md +6 -2
- 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/cookie-banner.js +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.js.map +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.mjs +2 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.stories.js +7 -8
- package/nationalarchives/components/date-input/date-input.css +1 -1
- package/nationalarchives/components/date-input/date-input.css.map +1 -1
- package/nationalarchives/components/date-search/date-search.css +1 -1
- package/nationalarchives/components/date-search/date-search.css.map +1 -1
- package/nationalarchives/components/date-search/date-search.scss +2 -0
- package/nationalarchives/components/error-summary/error-summary.css +1 -1
- package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
- package/nationalarchives/components/featured-records/featured-records.css +1 -1
- package/nationalarchives/components/featured-records/featured-records.css.map +1 -1
- package/nationalarchives/components/featured-records/featured-records.scss +5 -3
- package/nationalarchives/components/footer/analytics.js +8 -0
- package/nationalarchives/components/footer/fixtures.json +2 -2
- package/nationalarchives/components/footer/footer.css +1 -1
- package/nationalarchives/components/footer/footer.css.map +1 -1
- package/nationalarchives/components/footer/footer.js +2 -0
- package/nationalarchives/components/footer/footer.js.map +1 -0
- package/nationalarchives/components/footer/footer.mjs +87 -0
- package/nationalarchives/components/footer/footer.scss +28 -8
- package/nationalarchives/components/footer/footer.stories.js +62 -3
- package/nationalarchives/components/footer/template.njk +168 -120
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/gallery/gallery.scss +2 -1
- package/nationalarchives/components/global-header/README.md +1 -1
- package/nationalarchives/components/global-header/global-header.css +1 -1
- package/nationalarchives/components/global-header/global-header.css.map +1 -1
- package/nationalarchives/components/global-header/global-header.scss +26 -29
- package/nationalarchives/components/grid/grid.css +1 -1
- package/nationalarchives/components/grid/grid.css.map +1 -1
- package/nationalarchives/components/grid/grid.scss +3 -3
- package/nationalarchives/components/header/header.css +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/header/header.scss +30 -47
- package/nationalarchives/components/hero/fixtures.json +106 -18
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +80 -20
- package/nationalarchives/components/hero/hero.stories.js +60 -32
- package/nationalarchives/components/hero/macro-options.json +34 -3
- package/nationalarchives/components/hero/template.njk +27 -6
- 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/macro-options.json +1 -1
- package/nationalarchives/components/pagination/pagination.css +1 -1
- package/nationalarchives/components/pagination/pagination.css.map +1 -1
- package/nationalarchives/components/pagination/pagination.scss +2 -2
- package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
- package/nationalarchives/components/picture/picture.css +1 -1
- package/nationalarchives/components/picture/picture.css.map +1 -1
- package/nationalarchives/components/picture/picture.scss +5 -1
- package/nationalarchives/components/quick-filters/quick-filters.css +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.scss +4 -2
- package/nationalarchives/components/radios/radios.css +1 -1
- package/nationalarchives/components/radios/radios.css.map +1 -1
- package/nationalarchives/components/radios/radios.scss +3 -2
- package/nationalarchives/components/search-field/search-field.css +1 -1
- package/nationalarchives/components/search-field/search-field.css.map +1 -1
- package/nationalarchives/components/search-field/search-field.scss +24 -7
- package/nationalarchives/components/search-filters/search-filters.css +1 -1
- package/nationalarchives/components/search-filters/search-filters.css.map +1 -1
- package/nationalarchives/components/search-filters/search-filters.scss +7 -6
- package/nationalarchives/components/select/select.css +1 -1
- package/nationalarchives/components/select/select.css.map +1 -1
- 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 +7 -6
- package/nationalarchives/components/skip-link/skip-link.css +1 -1
- package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
- package/nationalarchives/components/skip-link/skip-link.scss +4 -4
- package/nationalarchives/components/tabs/tabs.css +1 -1
- package/nationalarchives/components/tabs/tabs.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.scss +8 -6
- package/nationalarchives/components/text-input/text-input.css +1 -1
- package/nationalarchives/components/text-input/text-input.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.css +1 -1
- package/nationalarchives/components/textarea/textarea.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.scss +7 -4
- package/nationalarchives/components/warning/warning.css +1 -1
- package/nationalarchives/components/warning/warning.css.map +1 -1
- package/nationalarchives/components/warning/warning.scss +7 -5
- package/nationalarchives/global-header-package.css +1 -1
- package/nationalarchives/global-header-package.css.map +1 -1
- package/nationalarchives/lib/cookies.mjs +21 -4
- package/nationalarchives/lib/functions.css +1 -0
- package/nationalarchives/lib/functions.css.map +1 -0
- package/nationalarchives/lib/functions.scss +16 -0
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/nationalarchives/stories/utilities/colour-schemes/colour-combinations.stories.js +83 -34
- package/nationalarchives/stories/utilities/colour-schemes/colour-themes.stories.js +74 -41
- package/nationalarchives/templates/fixtures.json +4 -4
- package/nationalarchives/tools/_a11y.scss +0 -4
- package/nationalarchives/tools/_colour.scss +30 -68
- package/nationalarchives/tools/_typography.scss +8 -9
- package/nationalarchives/utilities/_a11y.scss +4 -4
- package/nationalarchives/utilities/_colour.scss +3 -36
- package/nationalarchives/utilities/_debug.scss +2 -2
- package/nationalarchives/utilities/_global.scss +8 -0
- package/nationalarchives/utilities/_imports.scss +57 -0
- package/nationalarchives/utilities/_index.scss +1 -0
- package/nationalarchives/utilities/_lists.scss +36 -19
- package/nationalarchives/utilities/_tables.scss +8 -8
- package/nationalarchives/utilities/_typography.scss +6 -42
- package/nationalarchives/variables/_colour.scss +7 -2
- package/nationalarchives/variables/_typography.scss +55 -4
- package/package.json +23 -21
- package/nationalarchives/assets/fonts/OpenSans-Italic.ttf +0 -0
@@ -1,5 +1,5 @@
|
|
1
|
-
@use "sass:map";
|
2
1
|
@use "sass:list";
|
2
|
+
@use "sass:map";
|
3
3
|
@use "../variables/borders";
|
4
4
|
@use "../variables/colour";
|
5
5
|
@use "../tools/media";
|
@@ -154,65 +154,43 @@
|
|
154
154
|
solid;
|
155
155
|
}
|
156
156
|
|
157
|
+
// Use light theme colours (except for "form-error")
|
157
158
|
%light {
|
158
159
|
@include colour-css-vars("form-error");
|
159
160
|
|
160
161
|
@media (prefers-contrast: more) {
|
161
162
|
@include colour-css-vars-high-contrast("form-error");
|
162
163
|
}
|
163
|
-
|
164
|
-
.tna-template--high-contrast-theme & {
|
165
|
-
@include colour-css-vars-high-contrast("form-error");
|
166
|
-
}
|
167
164
|
}
|
168
165
|
|
169
166
|
@mixin light {
|
170
167
|
@extend %light;
|
171
168
|
}
|
172
169
|
|
173
|
-
|
174
|
-
|
170
|
+
// Remove accent and contrast values (except for "form-error")
|
171
|
+
%plain {
|
172
|
+
@include colour-css-vars("form-error");
|
175
173
|
|
176
174
|
@media (prefers-contrast: more) {
|
177
|
-
@include colour-css-vars-high-contrast
|
178
|
-
}
|
179
|
-
|
180
|
-
.tna-template--high-contrast-theme & {
|
181
|
-
@include colour-css-vars-high-contrast-dark("form-error");
|
175
|
+
@include colour-css-vars-high-contrast("form-error");
|
182
176
|
}
|
183
|
-
}
|
184
|
-
|
185
|
-
@mixin dark {
|
186
|
-
@extend %dark;
|
187
|
-
}
|
188
177
|
|
189
|
-
%plain {
|
190
178
|
.tna-template--system-theme & {
|
191
|
-
@extend %light;
|
192
|
-
|
193
179
|
@media (prefers-color-scheme: dark) {
|
194
|
-
@include colour-css-vars-dark;
|
180
|
+
@include colour-css-vars-dark("form-error");
|
195
181
|
}
|
196
182
|
|
197
183
|
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
|
198
|
-
@include colour-css-vars-high-contrast-dark;
|
184
|
+
@include colour-css-vars-high-contrast-dark("form-error");
|
199
185
|
}
|
200
186
|
}
|
201
187
|
|
202
|
-
.tna-template--light-theme & {
|
203
|
-
@include colour-css-vars;
|
204
|
-
}
|
205
|
-
|
206
188
|
.tna-template--dark-theme & {
|
207
|
-
@include colour-css-vars-dark;
|
208
|
-
}
|
209
|
-
|
210
|
-
.tna-template--high-contrast-theme & {
|
211
|
-
@include colour-css-vars-high-contrast;
|
212
|
-
}
|
189
|
+
@include colour-css-vars-dark("form-error");
|
213
190
|
|
214
|
-
|
215
|
-
|
191
|
+
@media (prefers-contrast: more) {
|
192
|
+
@include colour-css-vars-high-contrast-dark("form-error");
|
193
|
+
}
|
216
194
|
}
|
217
195
|
|
218
196
|
@include colour-background("background");
|
@@ -272,6 +250,18 @@
|
|
272
250
|
@extend %contrast-on-mobile;
|
273
251
|
}
|
274
252
|
|
253
|
+
%tint {
|
254
|
+
--background: var(--background-tint);
|
255
|
+
|
256
|
+
@include colour-background("background");
|
257
|
+
|
258
|
+
@include colour-font("font-base");
|
259
|
+
}
|
260
|
+
|
261
|
+
@mixin tint {
|
262
|
+
@extend %tint;
|
263
|
+
}
|
264
|
+
|
275
265
|
%accent {
|
276
266
|
--background: var(--accent-background);
|
277
267
|
--font-base: var(--accent-font-base);
|
@@ -292,34 +282,12 @@
|
|
292
282
|
@extend %accent;
|
293
283
|
}
|
294
284
|
|
295
|
-
%tint {
|
296
|
-
--background: var(--background-tint);
|
297
|
-
|
298
|
-
@include colour-background("background");
|
299
|
-
|
300
|
-
@include colour-font("font-base");
|
301
|
-
}
|
302
|
-
|
303
|
-
@mixin tint {
|
304
|
-
@extend %tint;
|
305
|
-
}
|
306
|
-
|
307
|
-
%accent-background {
|
308
|
-
@include colour-background("accent-background");
|
309
|
-
}
|
310
|
-
|
311
|
-
@mixin accent-background {
|
312
|
-
@extend %accent-background;
|
313
|
-
}
|
314
|
-
|
315
285
|
%accent-light {
|
316
286
|
--background: var(--accent-background-light);
|
317
287
|
--font-base: #{map.get(colour.$colour-palette-default, "font-base")};
|
318
288
|
--font-dark: #{map.get(colour.$colour-palette-default, "font-dark")};
|
319
289
|
--font-light: #{map.get(colour.$colour-palette-default, "font-light")};
|
320
290
|
--icon-light: #{map.get(colour.$colour-palette-default, "icon-light")};
|
321
|
-
// --link: #{map.get(colour.$colour-palette-default, "link")};
|
322
|
-
// --link-visited: #{map.get(colour.$colour-palette-default, "link-visited")};
|
323
291
|
--keyline: #{map.get(colour.$colour-palette-default, "keyline")};
|
324
292
|
--keyline-dark: #{map.get(colour.$colour-palette-default, "keyline-dark")};
|
325
293
|
--button-text: #{map.get(colour.$colour-palette-default, "button-text")};
|
@@ -336,9 +304,6 @@
|
|
336
304
|
"button-hover-background"
|
337
305
|
)};
|
338
306
|
|
339
|
-
@include colour-background("background");
|
340
|
-
@include colour-font("font-base");
|
341
|
-
|
342
307
|
.tna-template--system-theme & {
|
343
308
|
@media (prefers-color-scheme: dark) {
|
344
309
|
--link: #{map.get(colour.$colour-palette-default, "link")};
|
@@ -350,6 +315,9 @@
|
|
350
315
|
--link: #{map.get(colour.$colour-palette-default, "link")};
|
351
316
|
--link-visited: #{map.get(colour.$colour-palette-default, "link-visited")};
|
352
317
|
}
|
318
|
+
|
319
|
+
@include colour-background("background");
|
320
|
+
@include colour-font("font-base");
|
353
321
|
}
|
354
322
|
|
355
323
|
@mixin accent-light {
|
@@ -367,8 +335,8 @@
|
|
367
335
|
--accent-link-visited: #{colour.brand-colour("black")} !important;
|
368
336
|
--accent-keyline: #{colour.brand-colour("black", 0.5)} !important;
|
369
337
|
--accent-keyline-dark: #{colour.brand-colour("black", 0.8)} !important;
|
370
|
-
--button-accent-text: #{colour.brand-colour("
|
371
|
-
--button-accent-background: #{colour.brand-colour("
|
338
|
+
--button-accent-text: #{colour.brand-colour("white")} !important;
|
339
|
+
--button-accent-background: #{colour.brand-colour("brown")} !important;
|
372
340
|
}
|
373
341
|
|
374
342
|
@mixin yellow-accent {
|
@@ -444,15 +412,9 @@
|
|
444
412
|
}
|
445
413
|
|
446
414
|
@mixin on-high-contrast {
|
447
|
-
|
415
|
+
@media (prefers-contrast: more) {
|
448
416
|
@content;
|
449
417
|
}
|
450
|
-
|
451
|
-
.tna-template--system-theme & {
|
452
|
-
@media (prefers-contrast: more) {
|
453
|
-
@content;
|
454
|
-
}
|
455
|
-
}
|
456
418
|
}
|
457
419
|
|
458
420
|
@mixin on-forced-colours {
|
@@ -21,14 +21,14 @@
|
|
21
21
|
|
22
22
|
@mixin main-font($bold: false) {
|
23
23
|
font-family: typography.$main-font-family;
|
24
|
+
font-style: normal;
|
25
|
+
font-optical-sizing: auto;
|
26
|
+
font-variation-settings: "wdth" 100;
|
24
27
|
@if $bold {
|
25
28
|
@include main-font-weight-bold;
|
26
29
|
} @else {
|
27
30
|
@include main-font-weight;
|
28
31
|
}
|
29
|
-
font-optical-sizing: auto;
|
30
|
-
font-style: normal;
|
31
|
-
font-variation-settings: "wdth" 100;
|
32
32
|
}
|
33
33
|
|
34
34
|
@mixin heading-font {
|
@@ -38,20 +38,20 @@
|
|
38
38
|
|
39
39
|
@mixin detail-font($bold: false) {
|
40
40
|
font-family: typography.$detail-font-family;
|
41
|
+
font-style: normal;
|
42
|
+
font-optical-sizing: auto;
|
41
43
|
@if $bold {
|
42
44
|
font-weight: typography.$detail-font-weight-bold;
|
43
45
|
} @else {
|
44
46
|
font-weight: typography.$detail-font-weight;
|
45
47
|
}
|
46
|
-
font-optical-sizing: auto;
|
47
|
-
font-style: normal;
|
48
48
|
}
|
49
49
|
|
50
50
|
@mixin detail-font-small {
|
51
51
|
@include detail-font;
|
52
52
|
@include relative-font-size(14);
|
53
|
-
text-transform: uppercase;
|
54
53
|
line-height: 1.1;
|
54
|
+
text-transform: uppercase;
|
55
55
|
}
|
56
56
|
|
57
57
|
@mixin interacted-text-decoration {
|
@@ -66,14 +66,13 @@
|
|
66
66
|
$font-size-tiny,
|
67
67
|
$line-height
|
68
68
|
) {
|
69
|
-
@include relative-font-size($font-size-default);
|
70
|
-
line-height: $line-height;
|
71
|
-
|
72
69
|
$small-and-tiny-identical: $font-size-small == $font-size-tiny;
|
73
70
|
$medium-small-and-tiny-identical: $font-size-medium == $font-size-small and
|
74
71
|
$small-and-tiny-identical;
|
75
72
|
$all-identical: $font-size-default == $font-size-medium and
|
76
73
|
$medium-small-and-tiny-identical and $small-and-tiny-identical;
|
74
|
+
line-height: $line-height;
|
75
|
+
@include relative-font-size($font-size-default);
|
77
76
|
|
78
77
|
@if $all-identical != true {
|
79
78
|
@if $medium-small-and-tiny-identical != true {
|
@@ -7,18 +7,18 @@
|
|
7
7
|
margin: 0 !important;
|
8
8
|
padding: 0 !important;
|
9
9
|
|
10
|
+
overflow: hidden !important;
|
11
|
+
|
10
12
|
position: absolute !important;
|
11
13
|
top: -9999px !important;
|
12
14
|
left: -9999px !important;
|
13
15
|
z-index: -1 !important;
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
clip: rect(0, 0, 0, 0) !important;
|
17
|
+
background-color: transparent !important;
|
18
18
|
|
19
19
|
border: 0 !important;
|
20
20
|
|
21
|
-
|
21
|
+
clip: rect(0, 0, 0, 0) !important;
|
22
22
|
|
23
23
|
// &::before,
|
24
24
|
// &::after {
|
@@ -1,41 +1,20 @@
|
|
1
1
|
@use "../tools/colour";
|
2
2
|
|
3
3
|
.tna-template {
|
4
|
-
@include colour.
|
5
|
-
|
6
|
-
&--system-theme,
|
7
|
-
&--light-theme {
|
8
|
-
@include colour.colour-css-vars;
|
4
|
+
@include colour.light;
|
9
5
|
|
10
|
-
|
11
|
-
@include colour.colour-css-vars-high-contrast;
|
12
|
-
}
|
13
|
-
}
|
6
|
+
@include colour.colour-background("background");
|
14
7
|
|
15
8
|
&--system-theme {
|
16
|
-
// @include colour.colour-css-vars;
|
17
|
-
|
18
9
|
@media (prefers-color-scheme: dark) {
|
19
10
|
@include colour.colour-css-vars-dark;
|
20
11
|
}
|
21
12
|
|
22
|
-
// @media (prefers-contrast: more) {
|
23
|
-
// @include colour.colour-css-vars-high-contrast;
|
24
|
-
// }
|
25
|
-
|
26
13
|
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
|
27
14
|
@include colour.colour-css-vars-high-contrast-dark;
|
28
15
|
}
|
29
16
|
}
|
30
17
|
|
31
|
-
// &--light-theme {
|
32
|
-
// @include colour.colour-css-vars;
|
33
|
-
|
34
|
-
// @media (prefers-contrast: more) {
|
35
|
-
// @include colour.colour-css-vars-high-contrast;
|
36
|
-
// }
|
37
|
-
// }
|
38
|
-
|
39
18
|
&--dark-theme {
|
40
19
|
@include colour.colour-css-vars-dark;
|
41
20
|
|
@@ -44,19 +23,7 @@
|
|
44
23
|
}
|
45
24
|
}
|
46
25
|
|
47
|
-
|
48
|
-
// @include colour.colour-css-vars-high-contrast;
|
49
|
-
|
50
|
-
// * {
|
51
|
-
// background-image: none !important;
|
52
|
-
// }
|
53
|
-
|
54
|
-
// &.tna-template--dark-theme {
|
55
|
-
// @include colour.colour-css-vars-high-contrast-dark;
|
56
|
-
// }
|
57
|
-
// }
|
58
|
-
|
59
|
-
&--black--accent {
|
26
|
+
&--black-accent {
|
60
27
|
@include colour.black-accent;
|
61
28
|
}
|
62
29
|
|
@@ -19,6 +19,8 @@
|
|
19
19
|
0 0 0.5rem #f0a !important;
|
20
20
|
|
21
21
|
&::after {
|
22
|
+
content: "";
|
23
|
+
|
22
24
|
width: 20px;
|
23
25
|
height: 20px;
|
24
26
|
|
@@ -39,8 +41,6 @@
|
|
39
41
|
0 0 0.5rem #0f3 !important;
|
40
42
|
|
41
43
|
transform: translateX(-50%) translateY(-50%);
|
42
|
-
|
43
|
-
content: "";
|
44
44
|
}
|
45
45
|
|
46
46
|
&:not(.tna-checkboxes__item-label, .tna-radios__item-label) {
|
@@ -1,4 +1,12 @@
|
|
1
1
|
.tna-template {
|
2
|
+
/*
|
3
|
+
* ------------------------------------------
|
4
|
+
* A minimum page width of 320px is needed in
|
5
|
+
* order to meet the WCAG AA success criteria
|
6
|
+
* for 1.4.10 (Reflow)
|
7
|
+
* https://www.w3.org/WAI/WCAG21/Understanding/reflow.html
|
8
|
+
* ------------------------------------------
|
9
|
+
*/
|
2
10
|
min-width: 320px;
|
3
11
|
width: 100%;
|
4
12
|
height: 100%;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
@use "../variables/assets";
|
2
|
+
@use "../variables/typography";
|
3
|
+
@use "../lib/functions";
|
4
|
+
|
5
|
+
@if typography.$use-local-fonts {
|
6
|
+
@font-face {
|
7
|
+
font-family: typography.$main-font-family-name;
|
8
|
+
src: url("#{assets.$tna-font-path}/#{typography.$main-font-file}");
|
9
|
+
font-weight: typography.$main-font-weight;
|
10
|
+
font-style: normal;
|
11
|
+
font-display: swap;
|
12
|
+
}
|
13
|
+
|
14
|
+
@font-face {
|
15
|
+
font-family: typography.$main-font-family-name;
|
16
|
+
src: url("#{assets.$tna-font-path}/#{typography.$main-font-file-medium}");
|
17
|
+
font-weight: typography.$main-font-weight-medium;
|
18
|
+
font-style: normal;
|
19
|
+
font-display: swap;
|
20
|
+
}
|
21
|
+
|
22
|
+
@font-face {
|
23
|
+
font-family: typography.$main-font-family-name;
|
24
|
+
src: url("#{assets.$tna-font-path}/#{typography.$main-font-file-bold}");
|
25
|
+
font-weight: typography.$main-font-weight-bold;
|
26
|
+
font-style: normal;
|
27
|
+
font-display: swap;
|
28
|
+
}
|
29
|
+
|
30
|
+
@font-face {
|
31
|
+
font-family: typography.$detail-font-family-name;
|
32
|
+
src: url("#{assets.$tna-font-path}/#{typography.$detail-font-file}");
|
33
|
+
font-weight: typography.$detail-font-weight;
|
34
|
+
font-style: normal;
|
35
|
+
font-display: swap;
|
36
|
+
}
|
37
|
+
|
38
|
+
@font-face {
|
39
|
+
font-family: typography.$detail-font-family-name;
|
40
|
+
src: url("#{assets.$tna-font-path}/#{typography.$detail-font-file-bold}");
|
41
|
+
font-weight: typography.$detail-font-weight-bold;
|
42
|
+
font-style: normal;
|
43
|
+
font-display: swap;
|
44
|
+
}
|
45
|
+
} @else {
|
46
|
+
$main-font-family-name: functions.str-replace(
|
47
|
+
typography.$main-font-family-name,
|
48
|
+
" ",
|
49
|
+
"+"
|
50
|
+
);
|
51
|
+
$detail-font-family-name: functions.str-replace(
|
52
|
+
typography.$detail-font-family-name,
|
53
|
+
" ",
|
54
|
+
"+"
|
55
|
+
);
|
56
|
+
@import url("https://fonts.googleapis.com/css2?family=#{$main-font-family-name}:wght@#{typography.$main-font-weight}..#{typography.$main-font-weight-bold}&family=#{$detail-font-family-name}:wght@#{typography.$detail-font-weight}..#{typography.$detail-font-weight-bold}&display=swap"); /* stylelint-disable-line */
|
57
|
+
}
|
@@ -4,28 +4,45 @@
|
|
4
4
|
@use "../tools/typography";
|
5
5
|
|
6
6
|
.tna-ul,
|
7
|
-
.tna-
|
8
|
-
|
9
|
-
|
7
|
+
.tna-ul ul {
|
8
|
+
list-style-type: disc;
|
9
|
+
}
|
10
10
|
|
11
|
-
|
11
|
+
.tna-ul,
|
12
|
+
.tna-ol {
|
13
|
+
ul,
|
14
|
+
ol {
|
12
15
|
margin-top: 0;
|
13
16
|
}
|
14
17
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
18
|
+
&,
|
19
|
+
& ul,
|
20
|
+
& ol {
|
21
|
+
margin: spacing.space(1) 0 0;
|
22
|
+
padding: 0 0 0 spacing.space(2);
|
19
23
|
|
20
|
-
|
21
|
-
|
24
|
+
&--plain {
|
25
|
+
padding-left: 0;
|
22
26
|
|
23
|
-
|
24
|
-
|
27
|
+
&,
|
28
|
+
& ul,
|
29
|
+
& ol {
|
30
|
+
list-style: none;
|
31
|
+
}
|
32
|
+
}
|
25
33
|
|
26
|
-
|
27
|
-
|
28
|
-
|
34
|
+
&:first-child {
|
35
|
+
margin-top: 0;
|
36
|
+
}
|
37
|
+
|
38
|
+
li::marker {
|
39
|
+
@include colour.colour-font("accent-background");
|
40
|
+
font-weight: 700;
|
41
|
+
|
42
|
+
.tna-background-accent & {
|
43
|
+
@include colour.colour-font("font-dark");
|
44
|
+
}
|
45
|
+
}
|
29
46
|
}
|
30
47
|
}
|
31
48
|
|
@@ -64,9 +81,9 @@
|
|
64
81
|
}
|
65
82
|
|
66
83
|
dd {
|
67
|
-
background: transparent !important;
|
68
|
-
|
69
84
|
margin-left: 0;
|
85
|
+
|
86
|
+
background: transparent !important;
|
70
87
|
}
|
71
88
|
}
|
72
89
|
}
|
@@ -86,10 +103,10 @@
|
|
86
103
|
margin: 0;
|
87
104
|
padding: spacing.space(0.5) spacing.space(1);
|
88
105
|
|
89
|
-
position: relative;
|
90
|
-
|
91
106
|
box-sizing: border-box;
|
92
107
|
|
108
|
+
position: relative;
|
109
|
+
|
93
110
|
word-wrap: break-word;
|
94
111
|
}
|
95
112
|
|
@@ -8,12 +8,12 @@
|
|
8
8
|
|
9
9
|
.tna-table {
|
10
10
|
width: 100%;
|
11
|
-
@include spacing.space-above;
|
12
|
-
|
13
|
-
border-collapse: collapse;
|
14
11
|
|
15
12
|
text-align: left;
|
16
13
|
|
14
|
+
border-collapse: collapse;
|
15
|
+
@include spacing.space-above;
|
16
|
+
|
17
17
|
&:first-child {
|
18
18
|
margin-top: 0;
|
19
19
|
}
|
@@ -85,18 +85,18 @@
|
|
85
85
|
|
86
86
|
.tna-table-wrapper {
|
87
87
|
width: 100%;
|
88
|
-
@include spacing.space-above;
|
89
|
-
padding-left: grid.gutter-width();
|
90
88
|
padding-right: grid.gutter-width();
|
89
|
+
padding-left: grid.gutter-width();
|
90
|
+
|
91
|
+
overflow: auto;
|
91
92
|
|
92
93
|
position: relative;
|
93
94
|
left: -#{grid.gutter-width()};
|
94
|
-
|
95
|
-
overflow: auto;
|
95
|
+
@include spacing.space-above;
|
96
96
|
|
97
97
|
@include media.on-tiny {
|
98
|
-
padding-left: grid.gutter-width-tiny();
|
99
98
|
padding-right: grid.gutter-width-tiny();
|
99
|
+
padding-left: grid.gutter-width-tiny();
|
100
100
|
|
101
101
|
left: -#{grid.gutter-width-tiny()};
|
102
102
|
}
|
@@ -1,57 +1,20 @@
|
|
1
1
|
@use "sass:math";
|
2
2
|
@use "sass:selector";
|
3
|
-
@use "../variables/assets";
|
4
3
|
@use "../variables/typography" as typographyVars;
|
5
4
|
@use "../tools/colour";
|
6
5
|
@use "../tools/media";
|
7
6
|
@use "../tools/spacing";
|
8
7
|
@use "../tools/typography";
|
9
8
|
|
10
|
-
@if typographyVars.$use-local-fonts {
|
11
|
-
@font-face {
|
12
|
-
font-family: "Open Sans";
|
13
|
-
src: url("#{assets.$tna-font-path}/OpenSans-Regular.ttf");
|
14
|
-
font-weight: typographyVars.$main-font-weight;
|
15
|
-
font-style: normal;
|
16
|
-
font-display: swap;
|
17
|
-
}
|
18
|
-
|
19
|
-
@font-face {
|
20
|
-
font-family: "Open Sans";
|
21
|
-
src: url("#{assets.$tna-font-path}/OpenSans-Bold.ttf");
|
22
|
-
font-weight: typographyVars.$main-font-weight-bold;
|
23
|
-
font-style: normal;
|
24
|
-
font-display: swap;
|
25
|
-
}
|
26
|
-
|
27
|
-
@font-face {
|
28
|
-
font-family: "Roboto Mono";
|
29
|
-
src: url("#{assets.$tna-font-path}/RobotoMono-Regular.ttf");
|
30
|
-
font-weight: typographyVars.$detail-font-weight;
|
31
|
-
font-style: normal;
|
32
|
-
font-display: swap;
|
33
|
-
}
|
34
|
-
|
35
|
-
@font-face {
|
36
|
-
font-family: "Roboto Mono";
|
37
|
-
src: url("#{assets.$tna-font-path}/RobotoMono-Medium.ttf");
|
38
|
-
font-weight: typographyVars.$detail-font-weight-bold;
|
39
|
-
font-style: normal;
|
40
|
-
font-display: swap;
|
41
|
-
}
|
42
|
-
} @else {
|
43
|
-
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&family=Roboto+Mono:wght@100..700&display=swap"); /* stylelint-disable-line */
|
44
|
-
}
|
45
|
-
|
46
9
|
.tna-template {
|
47
10
|
@include colour.colour-font("font-base");
|
48
11
|
@include typography.main-font;
|
49
|
-
|
50
|
-
-webkit-font-smoothing: antialiased;
|
12
|
+
direction: ltr;
|
51
13
|
text-rendering: optimizeLegibility;
|
52
14
|
-webkit-text-size-adjust: none;
|
53
15
|
text-size-adjust: none;
|
54
|
-
|
16
|
+
-moz-osx-font-smoothing: grayscale;
|
17
|
+
-webkit-font-smoothing: antialiased;
|
55
18
|
}
|
56
19
|
|
57
20
|
.tna-template__body {
|
@@ -121,6 +84,7 @@ small {
|
|
121
84
|
@include colour.colour-font("font-base");
|
122
85
|
@include typography.detail-font-small;
|
123
86
|
line-height: 1;
|
87
|
+
text-align: center;
|
124
88
|
}
|
125
89
|
|
126
90
|
%chip-plain {
|
@@ -227,13 +191,13 @@ small {
|
|
227
191
|
display: inline-block;
|
228
192
|
|
229
193
|
&::after {
|
194
|
+
content: "\203A";
|
195
|
+
|
230
196
|
padding-left: spacing.space(0.5);
|
231
197
|
|
232
198
|
display: inline-block;
|
233
199
|
|
234
200
|
font-weight: 700;
|
235
|
-
|
236
|
-
content: "\203A";
|
237
201
|
}
|
238
202
|
|
239
203
|
&:hover {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
@use "sass:color";
|
1
2
|
@use "sass:map";
|
2
3
|
|
3
4
|
$colour-palette-brand: (
|
@@ -27,9 +28,11 @@ $colour-palette-brand: (
|
|
27
28
|
|
28
29
|
@function hex-to-rgb($hex, $opacity: 1) {
|
29
30
|
@if $opacity == 1 {
|
30
|
-
@return rgb(red($hex) green($hex) blue($hex));
|
31
|
+
@return rgb(color.red($hex) color.green($hex) color.blue($hex));
|
31
32
|
} @else {
|
32
|
-
@return rgb(
|
33
|
+
@return rgb(
|
34
|
+
color.red($hex) color.green($hex) color.blue($hex) / #{$opacity}
|
35
|
+
);
|
33
36
|
}
|
34
37
|
}
|
35
38
|
|
@@ -136,6 +139,7 @@ $colour-palette-high-contrast: map.merge(
|
|
136
139
|
$colour-palette-default,
|
137
140
|
(
|
138
141
|
"background": brand-colour("white"),
|
142
|
+
"background-tint": #f4f4f4,
|
139
143
|
"font-base": brand-colour("black"),
|
140
144
|
"font-light": brand-colour("black"),
|
141
145
|
"icon-light": brand-colour("black", 0.75),
|
@@ -148,6 +152,7 @@ $colour-palette-high-contrast: map.merge(
|
|
148
152
|
"contrast-font-base": brand-colour("black"),
|
149
153
|
"contrast-font-dark": brand-colour("black"),
|
150
154
|
"contrast-font-light": brand-colour("black"),
|
155
|
+
"contrast-icon-light": brand-colour("black", 0.45),
|
151
156
|
"contrast-link": #34d,
|
152
157
|
"contrast-link-visited": #848,
|
153
158
|
"contrast-keyline": brand-colour("black"),
|