@nationalarchives/frontend 0.1.23-prerelease → 0.1.24-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 +1 -1
- 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/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/nationalarchives/assets/fonts/RobotoMono-Medium.ttf +0 -0
- package/nationalarchives/components/_index.scss +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +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 +4 -4
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +3 -2
- package/nationalarchives/components/card/card.stories.js +21 -0
- package/nationalarchives/components/card/macro-options.json +6 -0
- package/nationalarchives/components/card/template.njk +1 -1
- 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.scss +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.stories.js +3 -3
- package/nationalarchives/components/cookie-banner/fixtures.json +57 -1
- package/nationalarchives/components/cookie-banner/template.njk +3 -3
- package/nationalarchives/components/featured-records/_index.scss +1 -0
- package/nationalarchives/components/featured-records/featured-records.css +1 -0
- package/nationalarchives/components/featured-records/featured-records.css.map +1 -0
- package/nationalarchives/components/featured-records/featured-records.scss +95 -0
- package/nationalarchives/components/featured-records/featured-records.stories.js +51 -0
- package/nationalarchives/components/featured-records/fixtures.json +4 -0
- package/nationalarchives/components/featured-records/macro-options.json +70 -0
- package/nationalarchives/components/featured-records/macro.njk +3 -0
- package/nationalarchives/components/featured-records/template.njk +20 -0
- package/nationalarchives/components/filters/filters.css +1 -1
- package/nationalarchives/components/filters/filters.css.map +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 +2 -5
- package/nationalarchives/components/footer/template.njk +1 -1
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/gallery/gallery.scss +2 -2
- package/nationalarchives/components/grid/grid.css +1 -1
- package/nationalarchives/components/grid/grid.css.map +1 -1
- package/nationalarchives/components/header/header.css +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/header/header.scss +46 -8
- package/nationalarchives/components/header/header.stories.js +4 -6
- package/nationalarchives/components/header/macro-options.json +2 -2
- package/nationalarchives/components/header/template.njk +2 -2
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +4 -4
- 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 +1 -1
- package/nationalarchives/components/message/message.css +1 -1
- package/nationalarchives/components/message/message.css.map +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 +1 -1
- package/nationalarchives/components/pagination/pagination.stories.js +354 -0
- package/nationalarchives/components/pagination/template.njk +1 -1
- package/nationalarchives/components/phase-banner/fixtures.json +5 -41
- package/nationalarchives/components/phase-banner/macro-options.json +6 -0
- 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 +1 -1
- package/nationalarchives/components/phase-banner/phase-banner.stories.js +4 -28
- package/nationalarchives/components/phase-banner/template.njk +3 -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 -4
- package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
- 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.js +1 -1
- package/nationalarchives/components/tabs/tabs.js.map +1 -1
- package/nationalarchives/components/tabs/tabs.mjs +0 -4
- package/nationalarchives/prototype-kit.css +23 -0
- package/nationalarchives/prototype-kit.css.map +1 -0
- package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js +38 -11
- package/nationalarchives/stories/utilities/lists/lists.mdx +18 -0
- package/nationalarchives/stories/utilities/{typography → lists}/lists.stories.js +1 -1
- package/nationalarchives/stories/utilities/overrides/overrides.mdx +27 -20
- package/nationalarchives/stories/utilities/overrides/overrides.stories.js +18 -2
- package/nationalarchives/stories/utilities/typography/typography.mdx +3 -25
- package/nationalarchives/stories/utilities/typography/typography.stories.js +28 -2
- package/nationalarchives/templates/layouts/_generic.njk +1 -0
- package/nationalarchives/templates/layouts/_prototype-kit.njk +2 -1
- package/nationalarchives/tools/_colour.scss +13 -20
- package/nationalarchives/tools/_spacing.scss +91 -2
- package/nationalarchives/tools/_typography.scss +15 -8
- package/nationalarchives/utilities/_a11y.scss +2 -1
- package/nationalarchives/utilities/_colour.scss +100 -0
- package/nationalarchives/utilities/_global.scss +2 -98
- package/nationalarchives/utilities/_index.scss +1 -0
- package/nationalarchives/utilities/_overrides.scss +16 -36
- package/nationalarchives/utilities/_typography.scss +145 -51
- package/nationalarchives/variables/_colour.scss +9 -8
- package/nationalarchives/variables/_spacing.scss +14 -9
- package/nationalarchives/variables/_typography.scss +10 -7
- package/package.json +9 -9
- package/nationalarchives/assets/fonts/OpenSans-Medium.ttf +0 -0
- package/nationalarchives/assets/fonts/fa-regular-400.ttf +0 -0
- package/nationalarchives/assets/fonts/fa-regular-400.woff2 +0 -0
- package/nationalarchives/components/profile/_index.scss +0 -1
- package/nationalarchives/components/profile/fixtures.json +0 -4
- package/nationalarchives/components/profile/macro-options.json +0 -14
- package/nationalarchives/components/profile/macro.njk +0 -3
- package/nationalarchives/components/profile/profile.css +0 -1
- package/nationalarchives/components/profile/profile.css.map +0 -1
- package/nationalarchives/components/profile/profile.scss +0 -5
- package/nationalarchives/components/profile/profile.stories.js +0 -31
- package/nationalarchives/components/profile/template.njk +0 -15
- package/nationalarchives/lib/font-awesome/regular.css +0 -5
- package/nationalarchives/lib/font-awesome/regular.css.map +0 -1
- package/nationalarchives/lib/font-awesome/regular.scss +0 -28
- package/nationalarchives/stories/development/about.mdx +0 -122
- package/nationalarchives/stories/development/contributing.mdx +0 -32
- package/nationalarchives/stories/development/cookies.mdx +0 -82
- package/nationalarchives/stories/development/publishing.mdx +0 -15
- package/nationalarchives/stories/development/structure.mdx +0 -88
- package/nationalarchives/stories/development/using/compiled.mdx +0 -9
- package/nationalarchives/stories/development/using/hosted.mdx +0 -53
- package/nationalarchives/stories/development/using/npm.mdx +0 -59
- /package/nationalarchives/{_prototype-kit.scss → prototype-kit.scss} +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@use "../tools/colour";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
@include colour.colour-css-vars;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.tna-template {
|
|
8
|
+
@include colour.colour-background("page-background");
|
|
9
|
+
|
|
10
|
+
accent-color: var(--accent);
|
|
11
|
+
|
|
12
|
+
&--system-theme {
|
|
13
|
+
@include colour.colour-css-vars;
|
|
14
|
+
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
@include colour.colour-css-vars-dark;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-contrast: more) {
|
|
20
|
+
@include colour.colour-css-vars-high-contrast;
|
|
21
|
+
|
|
22
|
+
* {
|
|
23
|
+
background-image: none !important;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
|
|
28
|
+
@include colour.colour-css-vars-high-contrast-dark;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&--light-theme {
|
|
33
|
+
@include colour.colour-css-vars;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--dark-theme {
|
|
37
|
+
@include colour.colour-css-vars-dark;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&--high-contrast-theme {
|
|
41
|
+
@include colour.colour-css-vars-high-contrast;
|
|
42
|
+
|
|
43
|
+
* {
|
|
44
|
+
background-image: none !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.tna-template--dark-theme {
|
|
48
|
+
@include colour.colour-css-vars-high-contrast-dark;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&--black-accent {
|
|
53
|
+
@include colour.accent-css-vars("black");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&--yellow-accent {
|
|
57
|
+
@include colour.accent-css-vars("yellow");
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&--pink-accent {
|
|
61
|
+
@include colour.accent-css-vars("pink");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&--orange-accent {
|
|
65
|
+
@include colour.accent-css-vars("orange");
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&--green-accent {
|
|
69
|
+
@include colour.accent-css-vars("green");
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&--blue-accent {
|
|
73
|
+
@include colour.accent-css-vars("blue");
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (prefers-reduced-motion) {
|
|
77
|
+
* {
|
|
78
|
+
animation: none !important;
|
|
79
|
+
transition: none !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tna-background {
|
|
85
|
+
&-tint {
|
|
86
|
+
@include colour.tint;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&-contrast {
|
|
90
|
+
@include colour.contrast;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-accent {
|
|
94
|
+
@include colour.accent;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&-accent-light {
|
|
98
|
+
@include colour.accent-light;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
@use "../tools/spacing";
|
|
4
4
|
@use "../variables/typography";
|
|
5
5
|
|
|
6
|
-
:root {
|
|
7
|
-
@include colour.colour-css-vars;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
6
|
.tna-template {
|
|
11
7
|
min-width: 320px;
|
|
12
8
|
width: 100%;
|
|
@@ -23,81 +19,6 @@
|
|
|
23
19
|
-webkit-overflow-scrolling: touch;
|
|
24
20
|
|
|
25
21
|
font-size: #{typography.$relative-1rem-px}px;
|
|
26
|
-
|
|
27
|
-
@include colour.colour-background("page-background");
|
|
28
|
-
|
|
29
|
-
accent-color: var(--accent);
|
|
30
|
-
|
|
31
|
-
&--system-theme {
|
|
32
|
-
@include colour.colour-css-vars;
|
|
33
|
-
|
|
34
|
-
@media (prefers-color-scheme: dark) {
|
|
35
|
-
@include colour.colour-css-vars-dark;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@media (prefers-contrast: more) {
|
|
39
|
-
@include colour.colour-css-vars-high-contrast;
|
|
40
|
-
|
|
41
|
-
* {
|
|
42
|
-
background-image: none !important;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
|
|
47
|
-
@include colour.colour-css-vars-high-contrast-dark;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&--light-theme {
|
|
52
|
-
@include colour.colour-css-vars;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&--dark-theme {
|
|
56
|
-
@include colour.colour-css-vars-dark;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&--high-contrast-theme {
|
|
60
|
-
@include colour.colour-css-vars-high-contrast;
|
|
61
|
-
|
|
62
|
-
* {
|
|
63
|
-
background-image: none !important;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&.tna-template--dark-theme {
|
|
67
|
-
@include colour.colour-css-vars-high-contrast-dark;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&--black-accent {
|
|
72
|
-
@include colour.accent-css-vars("black");
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&--yellow-accent {
|
|
76
|
-
@include colour.accent-css-vars("yellow");
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&--pink-accent {
|
|
80
|
-
@include colour.accent-css-vars("pink");
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&--orange-accent {
|
|
84
|
-
@include colour.accent-css-vars("orange");
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&--green-accent {
|
|
88
|
-
@include colour.accent-css-vars("green");
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&--blue-accent {
|
|
92
|
-
@include colour.accent-css-vars("blue");
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@media (prefers-reduced-motion) {
|
|
96
|
-
* {
|
|
97
|
-
animation: none !important;
|
|
98
|
-
transition: none !important;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
22
|
}
|
|
102
23
|
|
|
103
24
|
.tna-template__body {
|
|
@@ -109,7 +30,7 @@
|
|
|
109
30
|
display: flex;
|
|
110
31
|
flex-direction: column;
|
|
111
32
|
|
|
112
|
-
#main-content
|
|
33
|
+
#main-content {
|
|
113
34
|
flex: 1;
|
|
114
35
|
}
|
|
115
36
|
}
|
|
@@ -121,6 +42,7 @@ picture,
|
|
|
121
42
|
video,
|
|
122
43
|
canvas {
|
|
123
44
|
max-width: 100%;
|
|
45
|
+
height: auto;
|
|
124
46
|
|
|
125
47
|
display: block;
|
|
126
48
|
}
|
|
@@ -169,21 +91,3 @@ hr {
|
|
|
169
91
|
padding: 1rem;
|
|
170
92
|
}
|
|
171
93
|
}
|
|
172
|
-
|
|
173
|
-
.tna-background {
|
|
174
|
-
&--contrast {
|
|
175
|
-
@include colour.invert;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&--accent {
|
|
179
|
-
@include colour.accent;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&--accent-light {
|
|
183
|
-
@include colour.light-accent-background;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&--tint {
|
|
187
|
-
@include colour.tint-background;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
@@ -1,52 +1,32 @@
|
|
|
1
|
-
@use "
|
|
1
|
+
@use "sass:map";
|
|
2
2
|
@use "../tools/media";
|
|
3
|
+
@use "../tools/spacing";
|
|
3
4
|
|
|
4
|
-
@mixin
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@each $property in margin, padding {
|
|
10
|
-
@each $direction in top, bottom {
|
|
11
|
-
.tna-\!--no-#{$property}-#{$direction}#{$suffix},
|
|
12
|
-
.tna-\!--no-#{$property}-vertical#{$suffix} {
|
|
13
|
-
#{$property}-#{$direction}: 0 !important;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
5
|
+
@mixin hide-on($suffix) {
|
|
6
|
+
.tna-\!--hide-on-#{$suffix} {
|
|
7
|
+
display: none;
|
|
16
8
|
}
|
|
17
9
|
}
|
|
18
10
|
|
|
19
|
-
@
|
|
20
|
-
|
|
21
|
-
$suffix: "-" + $suffix;
|
|
22
|
-
}
|
|
11
|
+
@include spacing.no-spacing-generator;
|
|
12
|
+
@include spacing.spacing-generator;
|
|
23
13
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.tna-\!--#{$property}-#{$direction}-#{$size}#{$suffix},
|
|
28
|
-
.tna-\!--#{$property}-vertical-#{$size}#{$suffix} {
|
|
29
|
-
#{$property}-#{$direction}: #{$amount} !important;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
14
|
+
@include media.on-large {
|
|
15
|
+
@include spacing.no-spacing-generator("large");
|
|
16
|
+
@include hide-on("large");
|
|
34
17
|
}
|
|
35
18
|
|
|
36
|
-
@include no-spacing-generator;
|
|
37
|
-
@include overrides(spacing.$spacing);
|
|
38
|
-
|
|
39
19
|
@include media.on-medium {
|
|
40
|
-
@include no-spacing-generator("medium");
|
|
41
|
-
@include
|
|
20
|
+
@include spacing.no-spacing-generator("medium");
|
|
21
|
+
@include hide-on("medium");
|
|
42
22
|
}
|
|
43
23
|
|
|
44
24
|
@include media.on-small {
|
|
45
|
-
@include no-spacing-generator("small");
|
|
46
|
-
@include
|
|
25
|
+
@include spacing.no-spacing-generator("small");
|
|
26
|
+
@include hide-on("small");
|
|
47
27
|
}
|
|
48
28
|
|
|
49
29
|
@include media.on-tiny {
|
|
50
|
-
@include no-spacing-generator("tiny");
|
|
51
|
-
@include
|
|
30
|
+
@include spacing.no-spacing-generator("tiny");
|
|
31
|
+
@include hide-on("tiny");
|
|
52
32
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
|
+
@use "sass:selector";
|
|
2
3
|
@use "../tools/colour";
|
|
3
4
|
@use "../tools/media";
|
|
4
5
|
@use "../tools/spacing";
|
|
@@ -7,30 +8,41 @@
|
|
|
7
8
|
@use "../variables/grid";
|
|
8
9
|
@use "../variables/typography" as typographyVars;
|
|
9
10
|
|
|
10
|
-
@
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
11
|
+
@if typographyVars.$use-local-fonts {
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: "Open Sans";
|
|
14
|
+
src: url("#{assets.$tna-font-path}/OpenSans-Regular.ttf");
|
|
15
|
+
font-weight: typographyVars.$main-font-weight;
|
|
16
|
+
font-style: normal;
|
|
17
|
+
// font-display: swap;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: "Open Sans";
|
|
22
|
+
src: url("#{assets.$tna-font-path}/OpenSans-Bold.ttf");
|
|
23
|
+
font-weight: typographyVars.$main-font-weight-bold;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
// font-display: swap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@font-face {
|
|
29
|
+
font-family: "Roboto Mono";
|
|
30
|
+
src: url("#{assets.$tna-font-path}/RobotoMono-Regular.ttf");
|
|
31
|
+
font-weight: typographyVars.$detail-font-weight;
|
|
32
|
+
font-style: normal;
|
|
33
|
+
// font-display: swap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@font-face {
|
|
37
|
+
font-family: "Roboto Mono";
|
|
38
|
+
src: url("#{assets.$tna-font-path}/RobotoMono-Medium.ttf");
|
|
39
|
+
font-weight: typographyVars.$detail-font-weight-bold;
|
|
40
|
+
font-style: normal;
|
|
41
|
+
// font-display: swap;
|
|
42
|
+
}
|
|
43
|
+
} @else {
|
|
44
|
+
// @import "https://use.typekit.net/hkj3kuz.css";
|
|
45
|
+
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@#{typographyVars.$main-font-weight};#{typographyVars.$main-font-weight-bold}&family=Roboto+Mono:wght@#{typographyVars.$detail-font-weight};#{typographyVars.$detail-font-weight-bold}&display=swap"); /* stylelint-disable-line */
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
.tna-template {
|
|
@@ -66,12 +78,6 @@ ol {
|
|
|
66
78
|
margin-top: 0;
|
|
67
79
|
}
|
|
68
80
|
|
|
69
|
-
h1,
|
|
70
|
-
h2,
|
|
71
|
-
h3,
|
|
72
|
-
h4,
|
|
73
|
-
h5,
|
|
74
|
-
h6,
|
|
75
81
|
strong {
|
|
76
82
|
@include typography.main-font-weight-bold;
|
|
77
83
|
}
|
|
@@ -89,9 +95,13 @@ p {
|
|
|
89
95
|
}
|
|
90
96
|
|
|
91
97
|
a {
|
|
92
|
-
@include colour.colour-font("link");
|
|
93
98
|
text-decoration-thickness: 1.5px;
|
|
94
99
|
|
|
100
|
+
&,
|
|
101
|
+
&:link {
|
|
102
|
+
@include colour.colour-font("link");
|
|
103
|
+
}
|
|
104
|
+
|
|
95
105
|
&:visited {
|
|
96
106
|
@include colour.colour-font("link-visited");
|
|
97
107
|
}
|
|
@@ -100,6 +110,28 @@ a {
|
|
|
100
110
|
&:active {
|
|
101
111
|
@include typography.interacted-text-decoration;
|
|
102
112
|
}
|
|
113
|
+
|
|
114
|
+
&.tna-link--no-visited-state {
|
|
115
|
+
&:visited {
|
|
116
|
+
@include colour.colour-font("link");
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@include colour.on-high-contrast {
|
|
121
|
+
&:active {
|
|
122
|
+
box-shadow: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:hover:not(:focus) {
|
|
126
|
+
box-shadow: 0 0 0 0.3125rem var(--link);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// &[target="_blank"]:not([title*="opens in a new"]) {
|
|
131
|
+
// &::after {
|
|
132
|
+
// content: "" / " (opens in a new window)"
|
|
133
|
+
// }
|
|
134
|
+
// }
|
|
103
135
|
}
|
|
104
136
|
|
|
105
137
|
small {
|
|
@@ -108,6 +140,47 @@ small {
|
|
|
108
140
|
);
|
|
109
141
|
}
|
|
110
142
|
|
|
143
|
+
// .tna-detail[title][data-type] {
|
|
144
|
+
// padding: 0 0.375rem;
|
|
145
|
+
|
|
146
|
+
// display: inline-flex;
|
|
147
|
+
// flex-flow: row nowrap;
|
|
148
|
+
// align-items: baseline;
|
|
149
|
+
// gap: 0.5rem;
|
|
150
|
+
|
|
151
|
+
// vertical-align: baseline;
|
|
152
|
+
|
|
153
|
+
// background-color: #ccc;
|
|
154
|
+
|
|
155
|
+
// &::after {
|
|
156
|
+
// @include colour.colour-font("font-base");
|
|
157
|
+
// @include typography.detail-font-small;
|
|
158
|
+
// vertical-align: baseline;
|
|
159
|
+
|
|
160
|
+
// content: attr(data-type) / "";
|
|
161
|
+
// }
|
|
162
|
+
|
|
163
|
+
// &[data-type="misc"] {
|
|
164
|
+
// background-color: #f28482;
|
|
165
|
+
// }
|
|
166
|
+
|
|
167
|
+
// &[data-type="loc"] {
|
|
168
|
+
// background-color: #edae49;
|
|
169
|
+
// }
|
|
170
|
+
|
|
171
|
+
// &[data-type="per"] {
|
|
172
|
+
// background-color: #b5e2fa;
|
|
173
|
+
// }
|
|
174
|
+
|
|
175
|
+
// @at-root #{selector.unify("a", &)} {
|
|
176
|
+
// @include colour.colour-font("font-base");
|
|
177
|
+
|
|
178
|
+
// &::after {
|
|
179
|
+
// text-decoration: none;
|
|
180
|
+
// }
|
|
181
|
+
// }
|
|
182
|
+
// }
|
|
183
|
+
|
|
111
184
|
.tna-chip-list {
|
|
112
185
|
@include spacing.space-above;
|
|
113
186
|
margin-bottom: 0;
|
|
@@ -129,6 +202,7 @@ small {
|
|
|
129
202
|
|
|
130
203
|
display: block;
|
|
131
204
|
|
|
205
|
+
@include colour.colour-font("font-dark");
|
|
132
206
|
@include typography.detail-font-small;
|
|
133
207
|
line-height: 1;
|
|
134
208
|
|
|
@@ -141,32 +215,34 @@ small {
|
|
|
141
215
|
@extend %chip;
|
|
142
216
|
|
|
143
217
|
&--plain {
|
|
218
|
+
padding: 0;
|
|
219
|
+
|
|
144
220
|
color: inherit;
|
|
145
221
|
|
|
146
222
|
background-color: transparent;
|
|
147
223
|
|
|
148
|
-
border
|
|
224
|
+
border: none;
|
|
149
225
|
}
|
|
150
|
-
}
|
|
151
226
|
|
|
152
|
-
|
|
153
|
-
|
|
227
|
+
@at-root #{selector.unify("a", &)} {
|
|
228
|
+
text-decoration: none;
|
|
154
229
|
|
|
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
230
|
&,
|
|
167
231
|
&:link,
|
|
168
232
|
&:visited {
|
|
169
|
-
|
|
233
|
+
@include colour.colour-font("font-dark");
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&:hover {
|
|
237
|
+
@include typography.interacted-text-decoration;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&--plain {
|
|
241
|
+
&,
|
|
242
|
+
&:link,
|
|
243
|
+
&:visited {
|
|
244
|
+
color: inherit;
|
|
245
|
+
}
|
|
170
246
|
}
|
|
171
247
|
}
|
|
172
248
|
}
|
|
@@ -174,12 +250,13 @@ a.tna-chip {
|
|
|
174
250
|
%heading {
|
|
175
251
|
@include colour.colour-font("font-dark");
|
|
176
252
|
|
|
177
|
-
text-wrap: balance;
|
|
178
|
-
|
|
179
253
|
&:not(.tna-heading--no-link-arrow) {
|
|
180
254
|
a {
|
|
181
255
|
display: inline-block;
|
|
182
256
|
|
|
257
|
+
text-wrap: balance;
|
|
258
|
+
// text-decoration-thickness: .1em;
|
|
259
|
+
|
|
183
260
|
&::after {
|
|
184
261
|
padding-left: 0.25rem;
|
|
185
262
|
|
|
@@ -191,6 +268,8 @@ a.tna-chip {
|
|
|
191
268
|
}
|
|
192
269
|
|
|
193
270
|
&:hover {
|
|
271
|
+
// text-decoration-thickness: .15em;
|
|
272
|
+
|
|
194
273
|
&::after {
|
|
195
274
|
padding-left: 0.5rem;
|
|
196
275
|
}
|
|
@@ -304,6 +383,16 @@ a.tna-chip {
|
|
|
304
383
|
margin: 0 0 0.25rem;
|
|
305
384
|
|
|
306
385
|
@extend %chip;
|
|
386
|
+
|
|
387
|
+
&--plain {
|
|
388
|
+
padding: 0;
|
|
389
|
+
|
|
390
|
+
color: inherit;
|
|
391
|
+
|
|
392
|
+
background-color: transparent;
|
|
393
|
+
|
|
394
|
+
border: none;
|
|
395
|
+
}
|
|
307
396
|
}
|
|
308
397
|
|
|
309
398
|
&__title {
|
|
@@ -336,7 +425,7 @@ a.tna-chip {
|
|
|
336
425
|
margin-left: 0;
|
|
337
426
|
padding: 1rem 1rem 1rem 2rem;
|
|
338
427
|
|
|
339
|
-
@include colour.colour-border("accent-background", 0.
|
|
428
|
+
@include colour.colour-border("accent-background", 0.375rem, solid, left);
|
|
340
429
|
|
|
341
430
|
&__quote {
|
|
342
431
|
font-weight: 700;
|
|
@@ -358,7 +447,8 @@ a.tna-chip {
|
|
|
358
447
|
.tna-large-paragraph {
|
|
359
448
|
@include spacing.space-above;
|
|
360
449
|
|
|
361
|
-
@include typography.relative-font-size(
|
|
450
|
+
@include typography.relative-font-size(22);
|
|
451
|
+
@include colour.colour-font("font-dark");
|
|
362
452
|
}
|
|
363
453
|
|
|
364
454
|
.tna-scene-setter {
|
|
@@ -382,4 +472,8 @@ a.tna-chip {
|
|
|
382
472
|
text-decoration-thickness: 4.5px;
|
|
383
473
|
}
|
|
384
474
|
}
|
|
475
|
+
|
|
476
|
+
&--small {
|
|
477
|
+
@include typography.relative-font-size(24);
|
|
478
|
+
}
|
|
385
479
|
}
|
|
@@ -39,7 +39,7 @@ $colour-palette-brand: (
|
|
|
39
39
|
|
|
40
40
|
$dark-grey: #26262a;
|
|
41
41
|
$base-font: #343338 !default;
|
|
42
|
-
$link-colour:
|
|
42
|
+
$link-colour: brand-colour("navy") !default;
|
|
43
43
|
$link-colour-visited: #4c2c92 !default;
|
|
44
44
|
|
|
45
45
|
/*
|
|
@@ -49,7 +49,7 @@ LIGHT THEME (DEFAULT)
|
|
|
49
49
|
*/
|
|
50
50
|
$colour-palette-default: (
|
|
51
51
|
"page-background": #f4f4f4,
|
|
52
|
-
"background-tint": #
|
|
52
|
+
"background-tint": #e2e2e2,
|
|
53
53
|
"font-base": $base-font,
|
|
54
54
|
"font-dark": brand-colour("black"),
|
|
55
55
|
"font-light": hex-to-rgb($base-font, 0.7),
|
|
@@ -100,7 +100,7 @@ DARK THEME
|
|
|
100
100
|
$colour-palette-dark: map.merge(
|
|
101
101
|
$colour-palette-default,
|
|
102
102
|
(
|
|
103
|
-
"page-background": #
|
|
103
|
+
"page-background": #222,
|
|
104
104
|
"background-tint": #333,
|
|
105
105
|
"font-base": brand-colour("white", 0.95),
|
|
106
106
|
"font-dark": brand-colour("white"),
|
|
@@ -114,7 +114,7 @@ $colour-palette-dark: map.merge(
|
|
|
114
114
|
"button-background": brand-colour("white"),
|
|
115
115
|
"button-hover-text": brand-colour("white"),
|
|
116
116
|
"button-hover-background": brand-colour("black"),
|
|
117
|
-
"contrast-background": #
|
|
117
|
+
"contrast-background": #111,
|
|
118
118
|
"contrast-link-visited":
|
|
119
119
|
map.get($colour-palette-default, "contrast-link-visited"),
|
|
120
120
|
// --accent-background-light is the same as --contrast-background on dark themes
|
|
@@ -134,8 +134,8 @@ $colour-palette-high-contrast: map.merge(
|
|
|
134
134
|
"font-base": brand-colour("black"),
|
|
135
135
|
"font-light": brand-colour("black"),
|
|
136
136
|
"icon-light": brand-colour("black", 0.75),
|
|
137
|
-
"link":
|
|
138
|
-
"link-visited":
|
|
137
|
+
"link": #34d,
|
|
138
|
+
"link-visited": #848,
|
|
139
139
|
"focus-outline": brand-colour("orange"),
|
|
140
140
|
"keyline": brand-colour("black"),
|
|
141
141
|
"keyline-dark": brand-colour("black"),
|
|
@@ -162,11 +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": #111,
|
|
165
166
|
"font-base": brand-colour("white"),
|
|
166
167
|
"font-light": brand-colour("white"),
|
|
167
168
|
"icon-light": brand-colour("white", 0.75),
|
|
168
|
-
"link":
|
|
169
|
-
"link-visited":
|
|
169
|
+
"link": #69f,
|
|
170
|
+
"link-visited": #a6c,
|
|
170
171
|
"keyline": brand-colour("white"),
|
|
171
172
|
"contrast-background": brand-colour("black"),
|
|
172
173
|
)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
1
3
|
$spacing: (
|
|
2
4
|
"xs": 0.5rem,
|
|
3
5
|
"s": 1rem,
|
|
@@ -5,13 +7,16 @@ $spacing: (
|
|
|
5
7
|
"l": 3rem,
|
|
6
8
|
"xl": 5rem,
|
|
7
9
|
"xxl": 8rem,
|
|
8
|
-
);
|
|
10
|
+
) !default;
|
|
9
11
|
|
|
10
|
-
$spacing-mobile: (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
$spacing-mobile: map.merge(
|
|
13
|
+
$spacing,
|
|
14
|
+
(
|
|
15
|
+
"xs": 0.5rem,
|
|
16
|
+
"s": 0.75rem,
|
|
17
|
+
"m": 1.5rem,
|
|
18
|
+
"l": 2rem,
|
|
19
|
+
"xl": 3rem,
|
|
20
|
+
"xxl": 5rem,
|
|
21
|
+
)
|
|
22
|
+
) !default;
|