@nationalarchives/frontend 0.2.18 → 0.4.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.
- package/nationalarchives/all+analytics.js +1 -1
- package/nationalarchives/all+analytics.js.map +1 -1
- 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/analytics.js +1 -1
- package/nationalarchives/analytics.js.map +1 -1
- package/nationalarchives/analytics.mjs +11 -5
- package/nationalarchives/components/_presentation.scss +0 -1
- package/nationalarchives/components/accordion/accordion.css.map +1 -1
- package/nationalarchives/components/breadcrumbs/analytics.js +17 -0
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
- package/nationalarchives/components/button/button.css.map +1 -1
- 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/checkboxes/checkboxes.css.map +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.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/date-input/date-input.css.map +1 -1
- package/nationalarchives/components/date-search/date-search.css.map +1 -1
- package/nationalarchives/components/details/details.css.map +1 -1
- package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
- package/nationalarchives/components/files-list/files-list.css.map +1 -1
- package/nationalarchives/components/files-list/fixtures.json +4 -4
- package/nationalarchives/components/files-list/template.njk +1 -1
- 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 +1 -1
- package/nationalarchives/components/footer/footer.js.map +1 -1
- package/nationalarchives/components/footer/footer.scss +0 -1
- package/nationalarchives/components/footer/template.njk +7 -4
- package/nationalarchives/components/gallery/analytics.js +26 -0
- package/nationalarchives/components/gallery/fixtures.json +33 -2
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/gallery/gallery.js +1 -1
- package/nationalarchives/components/gallery/gallery.js.map +1 -1
- package/nationalarchives/components/gallery/gallery.mjs +4 -7
- package/nationalarchives/components/gallery/gallery.scss +22 -9
- package/nationalarchives/components/gallery/macro-options.json +6 -0
- package/nationalarchives/components/gallery/template.njk +6 -3
- 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 +7 -5
- package/nationalarchives/components/global-header/template.njk +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +7 -14
- package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
- package/nationalarchives/components/pagination/fixtures.json +5 -5
- package/nationalarchives/components/pagination/template.njk +2 -2
- package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
- package/nationalarchives/components/picture/picture.css.map +1 -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 +2 -0
- package/nationalarchives/components/radios/radios.css.map +1 -1
- package/nationalarchives/components/search-field/search-field.css.map +1 -1
- package/nationalarchives/components/select/select.css.map +1 -1
- package/nationalarchives/components/sidebar/sidebar.css.map +1 -1
- package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.css.map +1 -1
- package/nationalarchives/components/text-input/text-input.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.scss +2 -3
- package/nationalarchives/components/warning/warning.css.map +1 -1
- package/nationalarchives/lib/analytics-helpers.mjs +17 -13
- package/nationalarchives/lib/cookies.mjs +16 -5
- package/nationalarchives/print.css.map +1 -1
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/nationalarchives/tools/_colour.scss +2 -1
- package/nationalarchives/utilities/_reset.scss +15 -0
- package/nationalarchives/utilities/typography/_index.scss +7 -3
- package/package.json +14 -14
- package/nationalarchives/components/records-list/_index.scss +0 -1
- package/nationalarchives/components/records-list/fixtures.json +0 -42
- package/nationalarchives/components/records-list/macro-options.json +0 -70
- package/nationalarchives/components/records-list/macro.njk +0 -3
- package/nationalarchives/components/records-list/records-list.css +0 -1
- package/nationalarchives/components/records-list/records-list.css.map +0 -1
- package/nationalarchives/components/records-list/records-list.scss +0 -92
- package/nationalarchives/components/records-list/template.njk +0 -21
@@ -57,7 +57,8 @@
|
|
57
57
|
}
|
58
58
|
|
59
59
|
@mixin colour-background-brand($brandColour, $important: false) {
|
60
|
-
background-color: #{brand-colour($brandColour)}
|
60
|
+
background-color: #{brand-colour($brandColour)}
|
61
|
+
if($important, !important, null);
|
61
62
|
}
|
62
63
|
|
63
64
|
@mixin colour-border(
|
@@ -14,6 +14,21 @@
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
|
17
|
+
/*
|
18
|
+
* ------------------------------------------
|
19
|
+
* If the browser supports -apple-system-body
|
20
|
+
* which at the moment is just iOS then using
|
21
|
+
* the system body font we can respond to the
|
22
|
+
* Dynamic Type setting in iOS
|
23
|
+
* ------------------------------------------
|
24
|
+
*/
|
25
|
+
@supports (font: -apple-system-body) {
|
26
|
+
html {
|
27
|
+
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
|
28
|
+
font: -apple-system-body;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
17
32
|
img,
|
18
33
|
svg,
|
19
34
|
picture,
|
@@ -434,9 +434,8 @@ small {
|
|
434
434
|
}
|
435
435
|
|
436
436
|
@include media.on-tiny {
|
437
|
-
padding: spacing.space(0.5) spacing.space(0.5) spacing.space(0.5)
|
438
|
-
|
439
|
-
)};
|
437
|
+
padding: spacing.space(0.5) spacing.space(0.5) spacing.space(0.5)
|
438
|
+
#{spacing.space(1)};
|
440
439
|
}
|
441
440
|
}
|
442
441
|
|
@@ -449,6 +448,11 @@ small {
|
|
449
448
|
@include media.on-mobile {
|
450
449
|
@include typography.font-size(20);
|
451
450
|
}
|
451
|
+
|
452
|
+
&--bold {
|
453
|
+
@include colour.colour-font("font-base");
|
454
|
+
@include typography.main-font-weight-medium;
|
455
|
+
}
|
452
456
|
}
|
453
457
|
|
454
458
|
.tna-scene-setter {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nationalarchives/frontend",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.4.0",
|
4
4
|
"description": "The National Archives frontend styles",
|
5
5
|
"scripts": {
|
6
6
|
"start": "storybook dev -p 6006",
|
@@ -47,16 +47,16 @@
|
|
47
47
|
"@babel/core": "^7.25.8",
|
48
48
|
"@babel/preset-env": "^7.25.8",
|
49
49
|
"@mdx-js/react": "^3.0.1",
|
50
|
-
"@storybook/addon-a11y": "^8.
|
51
|
-
"@storybook/addon-docs": "^8.
|
52
|
-
"@storybook/addon-essentials": "^8.
|
53
|
-
"@storybook/addon-interactions": "^8.
|
54
|
-
"@storybook/addon-links": "^8.
|
55
|
-
"@storybook/addon-mdx-gfm": "^8.
|
56
|
-
"@storybook/html": "^8.
|
57
|
-
"@storybook/html-webpack5": "^8.
|
58
|
-
"@storybook/test": "^8.
|
59
|
-
"@storybook/test-runner": "^0.
|
50
|
+
"@storybook/addon-a11y": "^8.4.7",
|
51
|
+
"@storybook/addon-docs": "^8.4.7",
|
52
|
+
"@storybook/addon-essentials": "^8.4.7",
|
53
|
+
"@storybook/addon-interactions": "^8.4.7",
|
54
|
+
"@storybook/addon-links": "^8.4.7",
|
55
|
+
"@storybook/addon-mdx-gfm": "^8.4.7",
|
56
|
+
"@storybook/html": "^8.4.7",
|
57
|
+
"@storybook/html-webpack5": "^8.4.7",
|
58
|
+
"@storybook/test": "^8.4.7",
|
59
|
+
"@storybook/test-runner": "^0.20.1",
|
60
60
|
"axe-playwright": "^2.0.3",
|
61
61
|
"babel-jest": "^29.7.0",
|
62
62
|
"babel-loader": "^9.2.1",
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"css-loader": "^7.1.2",
|
66
66
|
"diff": "^7.0.0",
|
67
67
|
"eslint": "^8.57.1",
|
68
|
-
"eslint-plugin-storybook": "^0.
|
68
|
+
"eslint-plugin-storybook": "^0.11.1",
|
69
69
|
"glob": "^11.0.0",
|
70
70
|
"html-validate": "^8.24.1",
|
71
71
|
"jest-environment-jsdom": "^29.7.0",
|
@@ -76,10 +76,10 @@
|
|
76
76
|
"sass": "^1.79.5",
|
77
77
|
"sass-loader": "^16.0.2",
|
78
78
|
"simple-nunjucks-loader": "^3.2.0",
|
79
|
-
"storybook": "^8.
|
79
|
+
"storybook": "^8.4.7",
|
80
80
|
"style-loader": "^4.0.0",
|
81
81
|
"stylelint": "^16.10.0",
|
82
|
-
"stylelint-config-standard-scss": "^
|
82
|
+
"stylelint-config-standard-scss": "^14.0.0",
|
83
83
|
"stylelint-order": "^6.0.4",
|
84
84
|
"stylelint-selector-bem-pattern": "^4.0.1",
|
85
85
|
"webpack": "^5.95.0",
|
@@ -1 +0,0 @@
|
|
1
|
-
@use "records-list";
|
@@ -1,42 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"component": "records list",
|
3
|
-
"fixtures": [
|
4
|
-
{
|
5
|
-
"name": "basic records list",
|
6
|
-
"options": {
|
7
|
-
"items": [
|
8
|
-
{
|
9
|
-
"collection": "TS 11/45/167",
|
10
|
-
"title": "Court records relating to Robert Wedderburn's trial",
|
11
|
-
"href": "#",
|
12
|
-
"date": "1819–1820"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"collection": "HO 42/191",
|
16
|
-
"title": "Home office letters",
|
17
|
-
"href": "#",
|
18
|
-
"date": "1819"
|
19
|
-
}
|
20
|
-
]
|
21
|
-
},
|
22
|
-
"html": "<ul class=\"tna-records-list\"><li class=\"tna-records-list__item\"><dl class=\"tna-records-list__details\"><dt class=\"tna-records-list__collection-label tna-chip tna-chip--plain\">From our collection</dt><dd class=\"tna-records-list__collection-description tna-chip tna-chip--plain\">TS 11/45/167</dd><dt class=\"tna-records-list__title-label\">Title</dt><dd class=\"tna-records-list__title-description\"><a href=\"#\">Court records relating to Robert Wedderburn's trial</a></dd><dt class=\"tna-records-list__date-label\">Date</dt><dd class=\"tna-records-list__date-description\">1819–1820</dd></dl></li><li class=\"tna-records-list__item\"><dl class=\"tna-records-list__details\"><dt class=\"tna-records-list__collection-label tna-chip tna-chip--plain\">From our collection</dt><dd class=\"tna-records-list__collection-description tna-chip tna-chip--plain\">HO 42/191</dd><dt class=\"tna-records-list__title-label\">Title</dt><dd class=\"tna-records-list__title-description\"><a href=\"#\">Home office letters</a></dd><dt class=\"tna-records-list__date-label\">Date</dt><dd class=\"tna-records-list__date-description\">1819</dd></dl></li></ul>"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"name": "records list with images",
|
26
|
-
"options": {
|
27
|
-
"items": [
|
28
|
-
{
|
29
|
-
"imageSrc": "https://beta.nationalarchives.gov.uk/media/images/wedderburn-trial.max-832x591.format-webp_i3c9pUH.webp",
|
30
|
-
"imageWidth": 576,
|
31
|
-
"imageHeight": 591,
|
32
|
-
"collection": "TS 11/45/167",
|
33
|
-
"title": "Court records relating to Robert Wedderburn's trial",
|
34
|
-
"href": "#",
|
35
|
-
"date": "1819–1820"
|
36
|
-
}
|
37
|
-
]
|
38
|
-
},
|
39
|
-
"html": "<ul class=\"tna-records-list\"><li class=\"tna-records-list__item\"><img src=\"https://beta.nationalarchives.gov.uk/media/images/wedderburn-trial.max-832x591.format-webp_i3c9pUH.webp\" width=\"576\" height=\"591\" class=\"tna-records-list__image\" alt=\"\"><dl class=\"tna-records-list__details\"><dt class=\"tna-records-list__collection-label tna-chip tna-chip--plain\">From our collection</dt><dd class=\"tna-records-list__collection-description tna-chip tna-chip--plain\">TS 11/45/167</dd><dt class=\"tna-records-list__title-label\">Title</dt><dd class=\"tna-records-list__title-description\"><a href=\"#\">Court records relating to Robert Wedderburn's trial</a></dd><dt class=\"tna-records-list__date-label\">Date</dt><dd class=\"tna-records-list__date-description\">1819–1820</dd></dl></li></ul>"
|
40
|
-
}
|
41
|
-
]
|
42
|
-
}
|
@@ -1,70 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"name": "items",
|
4
|
-
"type": "array",
|
5
|
-
"required": true,
|
6
|
-
"description": "",
|
7
|
-
"params": [
|
8
|
-
{
|
9
|
-
"name": "imageSrc",
|
10
|
-
"type": "string",
|
11
|
-
"required": false,
|
12
|
-
"description": ""
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"name": "imageAlt",
|
16
|
-
"type": "string",
|
17
|
-
"required": false,
|
18
|
-
"description": ""
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"name": "imageWidth",
|
22
|
-
"type": "number",
|
23
|
-
"required": false,
|
24
|
-
"description": ""
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"name": "imageHeight",
|
28
|
-
"type": "number",
|
29
|
-
"required": false,
|
30
|
-
"description": ""
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"name": "collection",
|
34
|
-
"type": "string",
|
35
|
-
"required": true,
|
36
|
-
"description": ""
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"name": "title",
|
40
|
-
"type": "string",
|
41
|
-
"required": true,
|
42
|
-
"description": ""
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"name": "href",
|
46
|
-
"type": "string",
|
47
|
-
"required": true,
|
48
|
-
"description": ""
|
49
|
-
},
|
50
|
-
{
|
51
|
-
"name": "date",
|
52
|
-
"type": "string",
|
53
|
-
"required": false,
|
54
|
-
"description": ""
|
55
|
-
}
|
56
|
-
]
|
57
|
-
},
|
58
|
-
{
|
59
|
-
"name": "classes",
|
60
|
-
"type": "string",
|
61
|
-
"required": false,
|
62
|
-
"description": "Classes to add to the filters."
|
63
|
-
},
|
64
|
-
{
|
65
|
-
"name": "attributes",
|
66
|
-
"type": "object",
|
67
|
-
"required": false,
|
68
|
-
"description": "HTML attributes (for example data attributes) to add to the filters."
|
69
|
-
}
|
70
|
-
]
|
@@ -1 +0,0 @@
|
|
1
|
-
.tna-records-list{margin-top:32px}.tna-records-list:first-child{margin-top:0}.tna-records-list{margin-bottom:0;padding:0;list-style:none;border-top:5px var(--accent-border, rgb(140, 150, 148)) solid}.tna-records-list__item{padding:16px 24px;display:flex;align-items:center;justify-content:flex-start;gap:32px;border:1px var(--keyline, rgba(38, 38, 42, 0.25)) solid;border-top-width:0}.tna-records-list__image{width:6rem;height:auto}.tna-records-list__details{margin:0;flex:1}.tna-records-list__title-label,.tna-records-list__date-label{display:none}.tna-records-list__collection-description,.tna-records-list__title-description,.tna-records-list__date-description{width:100%;margin:0}.tna-records-list__collection-label,.tna-records-list__collection-description{display:inline-block}.tna-records-list__collection-label::after{content:":";content:":"/""}.tna-records-list__title-description{padding-bottom:4px;font-family:Roboto Mono,monospace;font-style:normal;font-optical-sizing:auto;font-weight:500}.tna-records-list__date-description{color:var(--font-light, rgba(1, 1, 1, 0.58));font-size:1rem}@media(max-width: 30em){.tna-records-list__item{padding:16px;flex-direction:column;align-items:flex-start;gap:16px}}/*# sourceMappingURL=records-list.css.map */
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../src/nationalarchives/tools/_spacing.scss","../../../../src/nationalarchives/components/records-list/records-list.scss","../../../../src/nationalarchives/tools/_colour.scss","../../../../src/nationalarchives/tools/_typography.scss","../../../../src/nationalarchives/variables/_typography.scss","../../../../src/nationalarchives/tools/_media.scss"],"names":[],"mappings":"AAUA,kBACE,gBAEA,8BACE,aCTJ,kBAEE,gBACA,UAEA,gBC6DI,8DDzDJ,wBACE,kBAEA,aACA,mBACA,2BACA,SC6DE,wDD1DF,mBAGF,yBACE,WACA,YAGF,2BACE,SAEA,OAGF,6DAEE,aAGF,mHAGE,WACA,SAGF,8EAEE,qBAIA,2CACE,YACA,eAUJ,qCACE,mBExBF,YCuBA,sBDtBA,kBACA,yBAEE,YCsBsB,IHMxB,oCCzBA,6CC7CA,eEoDA,wBJwBE,wBACE,aAEA,sBACA,uBAEA","file":"records-list.css","sourcesContent":["@use \"sass:map\";\n@use \"sass:math\";\n@use \"../variables/spacing\";\n@use \"../variables/typography\";\n@use \"../tools/media\";\n\n@function space($size) {\n @return #{$size * spacing.$spacing-unit-px}px;\n}\n\n%space-above {\n margin-top: space(2);\n\n &:first-child {\n margin-top: 0;\n }\n}\n\n%space-only-above {\n margin: #{space(2)} 0 0;\n\n &:first-child {\n margin-top: 0;\n }\n}\n\n@mixin space-above($zero-other-margins: false) {\n @if $zero-other-margins {\n @extend %space-only-above;\n } @else {\n @extend %space-above;\n }\n}\n\n@mixin no-spacing-generator($suffix: \"\") {\n @if $suffix != \"\" {\n $suffix: \"-\" + $suffix;\n }\n @each $property in margin, padding {\n @each $direction in top, bottom {\n $combined-direction: \"\";\n @if $direction == top or $direction == bottom {\n $combined-direction: vertical;\n } @else if $direction == right or $direction == left {\n $combined-direction: horizontal;\n }\n @if $combined-direction {\n .tna-\\!--no-#{$property}-#{$direction}#{$suffix},\n .tna-\\!--no-#{$property}-#{$combined-direction}#{$suffix} {\n #{$property}-#{$direction}: 0 !important;\n }\n } @else {\n .tna-\\!--no-#{$property}-#{$direction}#{$suffix} {\n #{$property}-#{$direction}: 0 !important;\n }\n }\n }\n }\n}\n\n@mixin spacing-generator($suffix: \"\") {\n @each $property in margin, padding {\n @each $direction in top, bottom {\n @each $size, $amount in spacing.$spacing {\n @if $direction == all {\n .tna-\\!--#{$property}-#{$size} {\n #{$property}: #{space($amount)} !important;\n }\n } @else {\n $combined-direction: \"\";\n @if $direction == top or $direction == bottom {\n $combined-direction: vertical;\n } @else if $direction == right or $direction == left {\n $combined-direction: horizontal;\n }\n @if $combined-direction {\n .tna-\\!--#{$property}-#{$direction}-#{$size},\n .tna-\\!--#{$property}-#{$combined-direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n } @else {\n .tna-\\!--#{$property}-#{$direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n }\n }\n }\n }\n }\n\n @include media.on-mobile {\n @each $property in margin, padding {\n @each $direction in top, bottom {\n @each $size, $amount in spacing.$spacing-mobile {\n @if $direction == all {\n .tna-\\!--#{$property}-#{$size} {\n #{$property}: #{space($amount)} !important;\n }\n } @else {\n $combined-direction: \"\";\n @if $direction == top or $direction == bottom {\n $combined-direction: vertical;\n } @else if $direction == right or $direction == left {\n $combined-direction: horizontal;\n }\n @if $combined-direction {\n .tna-\\!--#{$property}-#{$direction}-#{$size},\n .tna-\\!--#{$property}-#{$combined-direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n } @else {\n .tna-\\!--#{$property}-#{$direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n }\n }\n }\n }\n }\n }\n}\n","@use \"../../tools/colour\";\n@use \"../../tools/media\";\n@use \"../../tools/spacing\";\n@use \"../../tools/typography\";\n\n.tna-records-list {\n @include spacing.space-above;\n margin-bottom: 0;\n padding: 0;\n\n list-style: none;\n\n @include colour.thick-keyline-accent(top);\n\n &__item {\n padding: spacing.space(1) spacing.space(1.5);\n\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: spacing.space(2);\n\n @include colour.colour-border(\"keyline\", 1px);\n border-top-width: 0;\n }\n\n &__image {\n width: 6rem;\n height: auto;\n }\n\n &__details {\n margin: 0;\n\n flex: 1;\n }\n\n &__title-label,\n &__date-label {\n display: none;\n }\n\n &__collection-description,\n &__title-description,\n &__date-description {\n width: 100%;\n margin: 0;\n }\n\n &__collection-label,\n &__collection-description {\n display: inline-block;\n }\n\n &__collection-label {\n &::after {\n content: \":\";\n content: \":\" / \"\";\n }\n }\n\n &__collection-description {\n }\n\n &__title-label {\n }\n\n &__title-description {\n padding-bottom: spacing.space(0.25);\n\n @include typography.detail-font(true);\n }\n\n &__date-label {\n }\n\n &__date-description {\n @include colour.colour-font(\"font-light\");\n @include typography.font-size(16);\n }\n\n @include media.on-tiny {\n &__item {\n padding: spacing.space(1);\n\n flex-direction: column;\n align-items: flex-start;\n\n gap: spacing.space(1);\n }\n }\n}\n","@use \"sass:list\";\n@use \"sass:map\";\n@use \"../variables/borders\";\n@use \"../variables/colour\";\n@use \"../variables/features\";\n@use \"../tools/media\";\n\n@function brand-colour($colour, $opacity: 1) {\n @return colour.brand-colour($colour, $opacity);\n}\n\n@mixin colour-css-vars($excludes...) {\n @each $name, $value in colour.$colour-palette-default {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n }\n }\n}\n\n@mixin colour-css-vars-dark($excludes...) {\n @each $name, $value in colour.$colour-palette-dark {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n }\n }\n}\n\n@mixin colour-css-vars-high-contrast($excludes...) {\n @each $name, $value in colour.$colour-palette-high-contrast {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n }\n }\n}\n\n@mixin colour-css-vars-high-contrast-dark($excludes...) {\n @each $name, $value in colour.$colour-palette-high-contrast-dark {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n }\n }\n}\n\n@function colour-var($colour) {\n @return var(\n --#{$colour},\n #{map.get(colour.$colour-palette-default, $colour)}\n );\n}\n\n@mixin colour-font($colour, $important: false) {\n color: colour-var($colour) if($important, !important, null);\n}\n\n@mixin colour-background($colour, $important: false) {\n background-color: colour-var($colour) if($important, !important, null);\n}\n\n@mixin colour-background-brand($brandColour, $important: false) {\n background-color: #{brand-colour($brandColour)} if($important, !important, null);\n}\n\n@mixin colour-border(\n $colour,\n $width: \"\",\n $style: solid,\n $direction: \"\",\n $important: false\n) {\n @if $direction != \"\" {\n @if $width != \"\" {\n border-#{$direction}: $width\n colour-var($colour)\n $style\n if($important, !important, null);\n } @else {\n border-#{$direction}-color: colour-var($colour)\n if($important, !important, null);\n }\n } @else {\n @if $width != \"\" {\n border: $width\n colour-var($colour)\n $style\n if($important, !important, null);\n } @else {\n border-color: var(\n --#{$colour},\n #{map.get(colour.$colour-palette-default, $colour)}\n )\n if($important, !important, null);\n }\n }\n}\n\n@mixin colour-outline($colour, $width: \"\", $style: solid, $important: false) {\n @if $width != \"\" {\n outline: $width colour-var($colour) $style if($important, !important, null);\n } @else {\n outline-color: colour-var($colour) if($important, !important, null);\n }\n}\n\n@mixin colour-fill($colour, $important: false) {\n fill: colour-var($colour) if($important, !important, null);\n}\n\n@mixin thick-keyline($direction: \"\") {\n @if $direction != \"\" {\n @include colour-border(\n \"keyline\",\n borders.$thick-border-width,\n solid,\n $direction\n );\n } @else {\n @include colour-border(\"keyline\", borders.$thick-border-width, solid);\n }\n}\n\n@mixin thick-keyline-dark($direction: \"\") {\n @if $direction != \"\" {\n @include colour-border(\n \"keyline-dark\",\n borders.$thick-border-width,\n solid,\n $direction\n );\n } @else {\n @include colour-border(\"keyline-dark\", borders.$thick-border-width, solid);\n }\n}\n\n@mixin thick-keyline-accent($direction: \"\") {\n @if $direction != \"\" {\n @include colour-border(\n \"accent-border\",\n borders.$thick-border-width,\n solid,\n $direction\n );\n } @else {\n @include colour-border(\"accent-border\", borders.$thick-border-width, solid);\n }\n}\n\n@mixin thick-keyline-error($direction: \"\") {\n @if $direction != \"\" {\n @include colour-border(\n \"form-error-border\",\n borders.$thick-border-width,\n solid,\n $direction\n );\n } @else {\n @include colour-border(\n \"form-error-border\",\n borders.$thick-border-width,\n solid\n );\n }\n}\n\n@mixin thick-keyline-brand($direction: \"\", $brandColour) {\n @if $direction != \"\" {\n border-#{$direction}: borders.$thick-border-width\n #{brand-colour($brandColour)}\n solid;\n } @else {\n border: borders.$thick-border-width #{brand-colour($brandColour)} solid;\n }\n}\n\n@mixin thick-keyline-transparent($direction: \"\") {\n @if $direction != \"\" {\n border-#{$direction}: borders.$thick-border-width transparent solid;\n } @else {\n border: borders.$thick-border-width transparent solid;\n }\n}\n\n// Use light theme colours (except for \"form-error-border\")\n%always-light {\n @include colour-css-vars(\"form-error-border\", \"focus-outline\");\n\n @media (prefers-contrast: more) {\n @include colour-css-vars-high-contrast(\n \"form-error-border\",\n \"focus-outline\"\n );\n }\n}\n\n@mixin always-light {\n @extend %always-light;\n}\n\n%contrast {\n --background: var(--contrast-background);\n --font-base: var(--contrast-font-base);\n --font-dark: var(--contrast-font-dark);\n --font-light: var(--contrast-font-light);\n --icon-light: var(--contrast-icon-light);\n --link: var(--contrast-link);\n --link-visited: var(--contrast-link-visited);\n --keyline: var(--contrast-keyline);\n --keyline-dark: var(--contrast-keyline-dark);\n --button-text: var(--contrast-button-text);\n --button-background: var(--contrast-button-background);\n --button-hover-text: var(--contrast-button-hover-text);\n --button-hover-background: var(--contrast-button-hover-background);\n --accent-list-marker: var(--accent-border);\n // --accent-list-marker: var(--font-base);\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n}\n\n@mixin contrast {\n @extend %contrast;\n}\n\n%contrast-on-mobile {\n @include media.on-mobile {\n --background: var(--contrast-background);\n --font-base: var(--contrast-font-base);\n --font-dark: var(--contrast-font-dark);\n --font-light: var(--contrast-font-light);\n --icon-light: var(--contrast-icon-light);\n --link: var(--contrast-link);\n --link-visited: var(--contrast-link-visited);\n --keyline: var(--contrast-keyline);\n --keyline-dark: var(--contrast-keyline-dark);\n --button-text: var(--contrast-button-text);\n --button-background: var(--contrast-button-background);\n --button-hover-text: var(--contrast-button-hover-text);\n --button-hover-background: var(--contrast-button-hover-background);\n --accent-list-marker: var(--accent-border);\n // --accent-list-marker: var(--font-base);\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n }\n}\n\n@mixin contrast-on-mobile {\n @extend %contrast-on-mobile;\n}\n\n%tint {\n --background: var(--background-tint);\n\n @include colour-background(\"background\");\n\n // @include colour-font(\"font-base\");\n}\n\n@mixin tint {\n @extend %tint;\n}\n\n%accent {\n --background: var(--accent-background);\n --font-base: var(--accent-font-base);\n --font-dark: var(--accent-font-dark);\n --font-light: var(--accent-font-light);\n --icon-light: var(--accent-icon-light);\n --link: var(--accent-link);\n --link-visited: var(--accent-link);\n --keyline: var(--accent-keyline);\n --keyline-dark: var(--accent-keyline-dark);\n --accent-list-marker: var(--accent-font-base);\n --accent-border: var(--accent-font-dark);\n --button-text: var(--accent-button-text);\n --button-background: var(--accent-button-background);\n --button-hover-text: var(--accent-button-hover-text);\n --button-hover-background: var(--accent-button-hover-background);\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n}\n\n@mixin accent {\n @extend %accent;\n}\n\n%accent-light {\n --background: var(--accent-background-light);\n --font-base: #{map.get(colour.$colour-palette-default, \"font-base\")};\n --font-dark: #{map.get(colour.$colour-palette-default, \"font-dark\")};\n --font-light: #{map.get(colour.$colour-palette-default, \"font-light\")};\n --icon-light: #{map.get(colour.$colour-palette-default, \"icon-light\")};\n --keyline: #{map.get(colour.$colour-palette-default, \"keyline\")};\n --keyline-dark: #{map.get(colour.$colour-palette-default, \"keyline-dark\")};\n --button-text: #{map.get(colour.$colour-palette-default, \"button-text\")};\n --button-background: #{map.get(\n colour.$colour-palette-default,\n \"button-background\"\n )};\n --button-hover-text: #{map.get(\n colour.$colour-palette-default,\n \"button-hover-text\"\n )};\n --button-hover-background: #{map.get(\n colour.$colour-palette-default,\n \"button-hover-background\"\n )};\n --accent-list-marker: var(--font-base);\n --accent-border: var(--accent-background);\n\n @include colour-background(\"background\");\n @include colour-font(\"font-base\");\n\n .tna-template--system-theme & {\n @media (prefers-color-scheme: dark) {\n // --link: #{map.get(colour.$colour-palette-default, \"link\")};\n // --link-visited: #{map.get(colour.$colour-palette-default, \"link-visited\")};\n\n --background: var(--accent-background);\n --font-base: var(--accent-font-base);\n --font-dark: var(--accent-font-dark);\n --font-light: var(--accent-font-light);\n --icon-light: var(--accent-icon-light);\n --link: var(--accent-link);\n --link-visited: var(--accent-link);\n --keyline: var(--accent-keyline);\n --keyline-dark: var(--accent-keyline-dark);\n --accent-list-marker: var(--accent-font-base);\n --accent-border: var(--accent-font-dark);\n --button-text: var(--accent-button-text);\n --button-background: var(--accent-button-background);\n --button-hover-text: var(--accent-button-hover-text);\n --button-hover-background: var(--accent-button-hover-background);\n }\n }\n\n .tna-template--dark-theme & {\n // --link: #{map.get(colour.$colour-palette-default, \"link\")};\n // --link-visited: #{map.get(colour.$colour-palette-default, \"link-visited\")};\n\n --background: var(--accent-background);\n --font-base: var(--accent-font-base);\n --font-dark: var(--accent-font-dark);\n --font-light: var(--accent-font-light);\n --icon-light: var(--accent-icon-light);\n --link: var(--accent-link);\n --link-visited: var(--accent-link);\n --keyline: var(--accent-keyline);\n --keyline-dark: var(--accent-keyline-dark);\n --accent-list-marker: var(--accent-font-base);\n --accent-border: var(--accent-font-dark);\n --button-text: var(--accent-button-text);\n --button-background: var(--accent-button-background);\n --button-hover-text: var(--accent-button-hover-text);\n --button-hover-background: var(--accent-button-hover-background);\n }\n}\n\n@mixin accent-light {\n @extend %accent-light;\n}\n\n%yellow-accent {\n --accent-background: #{colour.brand-colour(\"yellow\")} !important;\n --accent-background-light: #{colour.brand-colour(\"cream\")} !important;\n --accent-border: #{colour.brand-colour(\"yellow\")} !important;\n // --accent-list-marker: #{colour.brand-colour(\"brown\")} !important;\n --accent-font-base: #{colour.brand-colour(\"black\")} !important;\n --accent-font-dark: #{colour.brand-colour(\"black\")} !important;\n --accent-font-light: #{colour.brand-colour(\"black\", 0.7)} !important;\n --accent-icon-light: #{colour.brand-colour(\"black\", 0.45)} !important;\n --accent-link: #{colour.brand-colour(\"black\")} !important;\n --accent-link-visited: #{colour.brand-colour(\"black\")} !important;\n --accent-keyline: #{colour.brand-colour(\"black\", 0.5)} !important;\n --accent-keyline-dark: #{colour.brand-colour(\"black\", 0.8)} !important;\n --button-accented-text: #{colour.brand-colour(\"white\")} !important;\n --button-accented-background: #{colour.brand-colour(\"brown\")} !important;\n}\n\n@mixin yellow-accent {\n @extend %yellow-accent;\n}\n\n%accent-lighter-text {\n --accent-font-base: #{colour.brand-colour(\"white\")} !important;\n --accent-font-dark: #{colour.brand-colour(\"white\")} !important;\n --accent-font-light: #{colour.brand-colour(\"white\", 0.7)} !important;\n --accent-icon-light: #{colour.brand-colour(\"white\", 0.45)} !important;\n --accent-link: #{colour.brand-colour(\"white\")} !important;\n --accent-link-visited: #{colour.brand-colour(\"white\")} !important;\n --accent-keyline: #{colour.brand-colour(\"white\", 0.5)} !important;\n --accent-keyline-dark: #{colour.brand-colour(\"white\", 0.8)} !important;\n --button-accented-text: #{colour.brand-colour(\"white\")} !important;\n}\n\n%black-accent {\n --accent-background: #{colour.brand-colour(\"black\")} !important;\n --accent-background-light: #{colour.brand-colour(\"light-grey\")} !important;\n --accent-border: #{colour.brand-colour(\"black\")} !important;\n --accent-list-marker: #{colour.brand-colour(\"grey\")} !important;\n --button-accented-text: #{colour.brand-colour(\"black\")} !important;\n --button-accented-background: #{colour.brand-colour(\"grey\")} !important;\n}\n\n@mixin black-accent {\n @extend %accent-lighter-text;\n @extend %black-accent;\n}\n\n%pink-accent {\n --accent-background: #{colour.brand-colour(\"maroon\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-pink\")} !important;\n --accent-border: #{colour.brand-colour(\"pink\")} !important;\n --accent-list-marker: #{colour.brand-colour(\"pink\")} !important;\n --button-accented-background: #{colour.brand-colour(\"maroon\")} !important;\n}\n\n@mixin pink-accent {\n @extend %accent-lighter-text;\n @extend %pink-accent;\n}\n\n%orange-accent {\n --accent-background: #{colour.brand-colour(\"chestnut\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-orange\")} !important;\n --accent-border: #{colour.brand-colour(\"orange\")} !important;\n --accent-list-marker: #{colour.brand-colour(\"orange\")} !important;\n --button-accented-background: #{colour.brand-colour(\"chestnut\")} !important;\n}\n\n@mixin orange-accent {\n @extend %accent-lighter-text;\n @extend %orange-accent;\n}\n\n%green-accent {\n --accent-background: #{colour.brand-colour(\"forest\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-green\")} !important;\n --accent-border: #{colour.brand-colour(\"green\")} !important;\n --accent-list-marker: #{colour.brand-colour(\"green\")} !important;\n --button-accented-background: #{colour.brand-colour(\"forest\")} !important;\n}\n\n@mixin green-accent {\n @extend %accent-lighter-text;\n @extend %green-accent;\n}\n\n%blue-accent {\n --accent-background: #{colour.brand-colour(\"navy\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-blue\")} !important;\n --accent-border: #{colour.brand-colour(\"blue\")} !important;\n --accent-list-marker: #{colour.brand-colour(\"blue\")} !important;\n --button-accented-background: #{colour.brand-colour(\"navy\")} !important;\n}\n\n@mixin blue-accent {\n @extend %accent-lighter-text;\n @extend %blue-accent;\n}\n\n@mixin on-high-contrast {\n @media (prefers-contrast: more) {\n @content;\n }\n}\n\n@mixin on-forced-colours {\n @media (forced-colors: active) {\n @content;\n }\n}\n\n@mixin on-high-contrast-and-forced-colours {\n @include on-forced-colours {\n @content;\n }\n\n @include on-high-contrast {\n @content;\n }\n}\n\n@mixin image-loader-background {\n @if not features.$disable-image-loader-animations {\n background: linear-gradient(\n -45deg,\n rgba(0 0 0 / 25%),\n rgba(255 255 255 / 25%),\n rgba(0 0 0 / 25%)\n );\n background-size: 500% 500%;\n background-position: 0 50%;\n\n animation: image-loader-background ease-in-out 1.2s infinite;\n }\n}\n","@use \"sass:math\";\n@use \"../variables/typography\";\n@use \"colour\";\n@use \"media\";\n\n@mixin font-size($font-size-px) {\n font-size: #{math.div($font-size-px, typography.$relative-1rem-px)}rem;\n}\n\n@mixin relative-font-size($font-size-px) {\n @warn \"relative-font-size() will soon be deprecated in favour of font-size().\";\n @include font-size($font-size-px);\n}\n\n@mixin main-font-weight {\n font-weight: typography.$main-font-weight;\n}\n\n@mixin main-font-weight-medium {\n font-weight: typography.$main-font-weight-medium;\n}\n\n@mixin main-font-weight-bold {\n font-weight: typography.$main-font-weight-bold;\n}\n\n@mixin main-font($bold: false) {\n font-family: typography.$main-font-family;\n font-style: normal;\n font-optical-sizing: auto;\n font-variation-settings: \"wdth\" 100;\n @if $bold {\n @include main-font-weight-bold;\n } @else {\n @include main-font-weight;\n }\n}\n\n@mixin heading-font {\n font-family: typography.$heading-font-family;\n font-weight: typography.$heading-font-weight;\n}\n\n@mixin detail-font($bold: false) {\n font-family: typography.$detail-font-family;\n font-style: normal;\n font-optical-sizing: auto;\n @if $bold {\n font-weight: typography.$detail-font-weight-bold;\n } @else {\n font-weight: typography.$detail-font-weight;\n }\n}\n\n@mixin detail-font-small {\n @include detail-font;\n @include font-size(14);\n line-height: 1.1;\n text-transform: uppercase;\n}\n\n@mixin interacted-text-decoration {\n text-decoration: underline;\n text-decoration-thickness: typography.$interactive-text-decoration-thickness;\n}\n\n@mixin heading-generator(\n $font-size-default,\n $font-size-medium,\n $font-size-small,\n $font-size-tiny,\n $line-height\n) {\n $small-and-tiny-identical: $font-size-small == $font-size-tiny;\n $medium-small-and-tiny-identical: $font-size-medium == $font-size-small and\n $small-and-tiny-identical;\n $all-identical: $font-size-default == $font-size-medium and\n $medium-small-and-tiny-identical and $small-and-tiny-identical;\n line-height: $line-height;\n @include font-size($font-size-default);\n\n @if $all-identical != true {\n @if $medium-small-and-tiny-identical != true {\n @include media.on-medium {\n @include font-size($font-size-medium);\n }\n\n @if $small-and-tiny-identical != true {\n @include media.on-small {\n @include font-size($font-size-small);\n }\n\n @include media.on-tiny {\n @include font-size($font-size-tiny);\n }\n } @else {\n @include media.on-mobile {\n @include font-size($font-size-small);\n }\n }\n } @else {\n @include media.on-smaller-than-large {\n @include font-size($font-size-medium);\n }\n }\n }\n}\n","/*\n * ------------------------------------------\n * The typefaces, sizes and spacings that are\n * defined in this file have been selected to\n * ensure 100% match with the latest National\n * Archives brand guidelines - avoid changing\n * or overwriting any of these values without\n * signing off with the Digital Services team\n * first\n * ------------------------------------------\n */\n\n$relative-1rem-px: 16; // 16px = 1rem\n\n/*\n * ------------------------------------------\n * When true, use the included font files for\n * Open Sans and Roboto Mono, rather than the\n * versions hosted by Google Fonts\n * ------------------------------------------\n */\n$use-local-fonts: false !default;\n\n$body-font-size-px: 18 !default;\n$body-font-size-px-mobile: 17 !default;\n$body-line-height: 1.75 !default;\n\n$interactive-text-decoration-thickness: 3.5px !default;\n\n$main-font-family-name: \"Open Sans\" !default;\n$main-font-family:\n #{$main-font-family-name},\n sans-serif;\n$main-font-weight: 400 !default;\n$main-font-weight-medium: 600 !default;\n$main-font-weight-bold: 700 !default;\n$main-font-file: \"OpenSans-Regular.ttf\" !default;\n$main-font-file-medium: \"OpenSans-SemiBold.ttf\" !default;\n$main-font-file-bold: \"OpenSans-Bold.ttf\" !default;\n\n/*\n * ------------------------------------------\n * To use Supria Sans Condensed (which is the\n * approved heading typeface for The National\n * Archives), you need to obtain a licence to\n * properly embed the CSS files with the font\n * definitions in your service - check with a\n * member of the Digital Services team on how\n * to get a licence\n * ------------------------------------------\n */\n$heading-font-family-name: \"supria-sans-condensed\" !default;\n$heading-font-family:\n #{$heading-font-family-name},\n \"Arial Narrow\",\n sans-serif;\n$heading-font-weight: 500 !default;\n\n/*\n * ------------------------------------------\n * The detail font should be a monospace font\n * and is used for chips, supertitles as well\n * as the date search component\n * ------------------------------------------\n */\n$detail-font-family-name: \"Roboto Mono\" !default;\n$detail-font-family:\n #{$detail-font-family-name},\n monospace;\n$detail-font-weight: 400 !default;\n$detail-font-weight-bold: 500 !default;\n$detail-font-file: \"RobotoMono-Regular.ttf\" !default;\n$detail-font-file-bold: \"RobotoMono-Medium.ttf\" !default;\n\n$heading-xl-font-size-default: 64 !default;\n$heading-xl-font-size-medium: 48 !default;\n$heading-xl-font-size-small: 36 !default;\n$heading-xl-font-size-tiny: $heading-xl-font-size-small !default;\n$heading-xl-line-height: 1.1 !default;\n\n$heading-l-font-size-default: 36 !default;\n$heading-l-font-size-medium: 30 !default;\n$heading-l-font-size-small: 28 !default;\n$heading-l-font-size-tiny: 25 !default;\n$heading-l-line-height: 1.3 !default;\n\n$heading-m-font-size-default: 22 !default;\n$heading-m-font-size-medium: 21 !default;\n$heading-m-font-size-small: 20 !default;\n$heading-m-font-size-tiny: 19 !default;\n$heading-m-line-height: 1.6 !default;\n\n$heading-s-font-size-default: 18 !default;\n$heading-s-font-size-medium: $heading-s-font-size-default !default;\n$heading-s-font-size-small: $heading-s-font-size-default !default;\n$heading-s-font-size-tiny: $heading-s-font-size-default !default;\n$heading-s-line-height: 1.6 !default;\n","@use \"sass:math\";\n@use \"../variables/media\";\n@use \"../variables/typography\";\n\n$smallest-large-device-em: #{math.div(\n media.$largest-medium-device-px + 1,\n typography.$relative-1rem-px\n )}em;\n$largest-medium-device-em: #{math.div(\n media.$largest-medium-device-px,\n typography.$relative-1rem-px\n )}em;\n$smallest-medium-device-em: #{math.div(\n media.$largest-small-device-px + 1,\n typography.$relative-1rem-px\n )}em;\n$largest-small-device-em: #{math.div(\n media.$largest-small-device-px,\n typography.$relative-1rem-px\n )}em;\n$smallest-small-device-em: #{math.div(\n media.$largest-tiny-device-px + 1,\n typography.$relative-1rem-px\n )}em;\n$largest-tiny-device-em: #{math.div(\n media.$largest-tiny-device-px,\n typography.$relative-1rem-px\n )}em;\n\n$media-large: \"(min-width: #{$smallest-large-device-em})\";\n$media-lt-large: \"(max-width: #{$largest-medium-device-em})\";\n$media-medium: \"(min-width: #{$smallest-medium-device-em}) and (max-width: #{$largest-medium-device-em})\";\n$media-gt-mobile: \"(min-width: #{$smallest-medium-device-em})\";\n$media-mobile: \"(max-width: #{$largest-small-device-em})\";\n$media-small: \"(min-width: #{$smallest-small-device-em}) and (max-width: #{$largest-small-device-em})\";\n$media-gt-tiny: \"(min-width: #{$smallest-small-device-em})\";\n$media-tiny: \"(max-width: #{$largest-tiny-device-em})\";\n\n// https://nationalarchives.github.io/design-system/styles/media/#media-queries\n@mixin on-large() {\n @media #{$media-large} {\n @content;\n }\n}\n\n@mixin on-medium() {\n @media #{$media-medium} {\n @content;\n }\n}\n\n@mixin on-small() {\n @media #{$media-small} {\n @content;\n }\n}\n\n@mixin on-tiny() {\n @media #{$media-tiny} {\n @content;\n }\n}\n\n@mixin on-larger-than-mobile() {\n @media #{$media-gt-mobile} {\n @content;\n }\n}\n\n@mixin on-larger-than-tiny() {\n @media #{$media-gt-tiny} {\n @content;\n }\n}\n\n@mixin on-smaller-than-large() {\n @media #{$media-lt-large} {\n @content;\n }\n}\n\n@mixin on-mobile() {\n @media #{$media-mobile} {\n @content;\n }\n}\n\n@mixin on-print() {\n @media print {\n @content;\n }\n}\n"]}
|
@@ -1,92 +0,0 @@
|
|
1
|
-
@use "../../tools/colour";
|
2
|
-
@use "../../tools/media";
|
3
|
-
@use "../../tools/spacing";
|
4
|
-
@use "../../tools/typography";
|
5
|
-
|
6
|
-
.tna-records-list {
|
7
|
-
@include spacing.space-above;
|
8
|
-
margin-bottom: 0;
|
9
|
-
padding: 0;
|
10
|
-
|
11
|
-
list-style: none;
|
12
|
-
|
13
|
-
@include colour.thick-keyline-accent(top);
|
14
|
-
|
15
|
-
&__item {
|
16
|
-
padding: spacing.space(1) spacing.space(1.5);
|
17
|
-
|
18
|
-
display: flex;
|
19
|
-
align-items: center;
|
20
|
-
justify-content: flex-start;
|
21
|
-
gap: spacing.space(2);
|
22
|
-
|
23
|
-
@include colour.colour-border("keyline", 1px);
|
24
|
-
border-top-width: 0;
|
25
|
-
}
|
26
|
-
|
27
|
-
&__image {
|
28
|
-
width: 6rem;
|
29
|
-
height: auto;
|
30
|
-
}
|
31
|
-
|
32
|
-
&__details {
|
33
|
-
margin: 0;
|
34
|
-
|
35
|
-
flex: 1;
|
36
|
-
}
|
37
|
-
|
38
|
-
&__title-label,
|
39
|
-
&__date-label {
|
40
|
-
display: none;
|
41
|
-
}
|
42
|
-
|
43
|
-
&__collection-description,
|
44
|
-
&__title-description,
|
45
|
-
&__date-description {
|
46
|
-
width: 100%;
|
47
|
-
margin: 0;
|
48
|
-
}
|
49
|
-
|
50
|
-
&__collection-label,
|
51
|
-
&__collection-description {
|
52
|
-
display: inline-block;
|
53
|
-
}
|
54
|
-
|
55
|
-
&__collection-label {
|
56
|
-
&::after {
|
57
|
-
content: ":";
|
58
|
-
content: ":" / "";
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
&__collection-description {
|
63
|
-
}
|
64
|
-
|
65
|
-
&__title-label {
|
66
|
-
}
|
67
|
-
|
68
|
-
&__title-description {
|
69
|
-
padding-bottom: spacing.space(0.25);
|
70
|
-
|
71
|
-
@include typography.detail-font(true);
|
72
|
-
}
|
73
|
-
|
74
|
-
&__date-label {
|
75
|
-
}
|
76
|
-
|
77
|
-
&__date-description {
|
78
|
-
@include colour.colour-font("font-light");
|
79
|
-
@include typography.font-size(16);
|
80
|
-
}
|
81
|
-
|
82
|
-
@include media.on-tiny {
|
83
|
-
&__item {
|
84
|
-
padding: spacing.space(1);
|
85
|
-
|
86
|
-
flex-direction: column;
|
87
|
-
align-items: flex-start;
|
88
|
-
|
89
|
-
gap: spacing.space(1);
|
90
|
-
}
|
91
|
-
}
|
92
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
{%- set containerClasses = [params.classes] if params.classes else [] -%}
|
2
|
-
{%- set classes = containerClasses | join(' ') -%}
|
3
|
-
<ul class="tna-records-list{% if classes %} {{ classes }}{% endif %}" {%- for attribute, value in params.attributes %} {{ attribute }}{% if value !== '' %}="{{ value }}"{% endif %}{% endfor %}>
|
4
|
-
{%- for item in params.items %}
|
5
|
-
<li class="tna-records-list__item">
|
6
|
-
{%- if item.imageSrc %}
|
7
|
-
<img src="{{ item.imageSrc }}" width="{{ item.imageWidth }}" height="{{ item.imageHeight }}" class="tna-records-list__image" alt="{{ item.imageAlt }}">
|
8
|
-
{%- endif %}
|
9
|
-
<dl class="tna-records-list__details">
|
10
|
-
<dt class="tna-records-list__collection-label tna-chip tna-chip--plain">From our collection</dt>
|
11
|
-
<dd class="tna-records-list__collection-description tna-chip tna-chip--plain">{{ item.collection }}</dd>
|
12
|
-
<dt class="tna-records-list__title-label">Title</dt>
|
13
|
-
<dd class="tna-records-list__title-description">
|
14
|
-
<a href="{{ item.href }}">{{ item.title }}</a>
|
15
|
-
</dd>
|
16
|
-
<dt class="tna-records-list__date-label">Date</dt>
|
17
|
-
<dd class="tna-records-list__date-description">{{ item.date }}</dd>
|
18
|
-
</dl>
|
19
|
-
</li>
|
20
|
-
{%- endfor %}
|
21
|
-
</ul>
|