@nationalarchives/frontend 0.1.22-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 +5 -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 +49 -9
- 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 -8
- 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 -12
- package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.scss +0 -2
- package/nationalarchives/components/skip-link/skip-link.css +1 -1
- package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.css +1 -1
- package/nationalarchives/components/tabs/tabs.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.js +1 -1
- package/nationalarchives/components/tabs/tabs.js.map +1 -1
- package/nationalarchives/components/tabs/tabs.mjs +0 -4
- package/nationalarchives/components/tabs/tabs.scss +0 -1
- 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 +39 -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/_lists.scss +2 -11
- package/nationalarchives/utilities/_overrides.scss +16 -36
- package/nationalarchives/utilities/_typography.scss +162 -54
- 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
|
-
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
.tna-ul,
|
|
7
7
|
.tna-ol {
|
|
8
|
-
margin: 1rem 0;
|
|
8
|
+
margin: 1rem 0 0;
|
|
9
9
|
padding: 0 0 0 2rem;
|
|
10
10
|
|
|
11
11
|
&:first-child {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.tna-dl {
|
|
28
|
-
margin: 1rem 0;
|
|
28
|
+
margin: 1rem 0 0;
|
|
29
29
|
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-wrap: wrap;
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
|
|
46
46
|
word-wrap: break-word;
|
|
47
|
-
// word-break: break-all;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
&--plain {
|
|
@@ -146,11 +145,6 @@
|
|
|
146
145
|
|
|
147
146
|
dd {
|
|
148
147
|
padding-top: 0;
|
|
149
|
-
// padding-left: 2rem;
|
|
150
|
-
|
|
151
|
-
+ dt {
|
|
152
|
-
// @include colour.colour-border("keyline", 1px, solid, top);
|
|
153
|
-
}
|
|
154
148
|
}
|
|
155
149
|
}
|
|
156
150
|
|
|
@@ -170,9 +164,6 @@
|
|
|
170
164
|
|
|
171
165
|
dt,
|
|
172
166
|
dd {
|
|
173
|
-
// padding-left: 0;
|
|
174
|
-
// padding-right: 0;
|
|
175
|
-
|
|
176
167
|
background: transparent !important;
|
|
177
168
|
|
|
178
169
|
@include colour.colour-border("keyline-dark", 1px, solid, top);
|
|
@@ -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,18 +78,16 @@ 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
|
}
|
|
78
84
|
|
|
79
85
|
p {
|
|
80
|
-
margin:
|
|
86
|
+
margin: 2rem 0 0;
|
|
87
|
+
|
|
88
|
+
+ p {
|
|
89
|
+
margin-top: 1rem;
|
|
90
|
+
}
|
|
81
91
|
|
|
82
92
|
&:first-child {
|
|
83
93
|
margin-top: 0;
|
|
@@ -85,9 +95,13 @@ p {
|
|
|
85
95
|
}
|
|
86
96
|
|
|
87
97
|
a {
|
|
88
|
-
@include colour.colour-font("link");
|
|
89
98
|
text-decoration-thickness: 1.5px;
|
|
90
99
|
|
|
100
|
+
&,
|
|
101
|
+
&:link {
|
|
102
|
+
@include colour.colour-font("link");
|
|
103
|
+
}
|
|
104
|
+
|
|
91
105
|
&:visited {
|
|
92
106
|
@include colour.colour-font("link-visited");
|
|
93
107
|
}
|
|
@@ -96,6 +110,28 @@ a {
|
|
|
96
110
|
&:active {
|
|
97
111
|
@include typography.interacted-text-decoration;
|
|
98
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
|
+
// }
|
|
99
135
|
}
|
|
100
136
|
|
|
101
137
|
small {
|
|
@@ -104,6 +140,47 @@ small {
|
|
|
104
140
|
);
|
|
105
141
|
}
|
|
106
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
|
+
|
|
107
184
|
.tna-chip-list {
|
|
108
185
|
@include spacing.space-above;
|
|
109
186
|
margin-bottom: 0;
|
|
@@ -125,6 +202,7 @@ small {
|
|
|
125
202
|
|
|
126
203
|
display: block;
|
|
127
204
|
|
|
205
|
+
@include colour.colour-font("font-dark");
|
|
128
206
|
@include typography.detail-font-small;
|
|
129
207
|
line-height: 1;
|
|
130
208
|
|
|
@@ -137,32 +215,34 @@ small {
|
|
|
137
215
|
@extend %chip;
|
|
138
216
|
|
|
139
217
|
&--plain {
|
|
218
|
+
padding: 0;
|
|
219
|
+
|
|
140
220
|
color: inherit;
|
|
141
221
|
|
|
142
222
|
background-color: transparent;
|
|
143
223
|
|
|
144
|
-
border
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
a.tna-chip {
|
|
149
|
-
text-decoration: none;
|
|
150
|
-
|
|
151
|
-
&,
|
|
152
|
-
&:link,
|
|
153
|
-
&:visited {
|
|
154
|
-
@include colour.colour-font("font-dark");
|
|
224
|
+
border: none;
|
|
155
225
|
}
|
|
156
226
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
227
|
+
@at-root #{selector.unify("a", &)} {
|
|
228
|
+
text-decoration: none;
|
|
160
229
|
|
|
161
|
-
&--plain {
|
|
162
230
|
&,
|
|
163
231
|
&:link,
|
|
164
232
|
&:visited {
|
|
165
|
-
|
|
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
|
+
}
|
|
166
246
|
}
|
|
167
247
|
}
|
|
168
248
|
}
|
|
@@ -170,12 +250,13 @@ a.tna-chip {
|
|
|
170
250
|
%heading {
|
|
171
251
|
@include colour.colour-font("font-dark");
|
|
172
252
|
|
|
173
|
-
text-wrap: balance;
|
|
174
|
-
|
|
175
253
|
&:not(.tna-heading--no-link-arrow) {
|
|
176
254
|
a {
|
|
177
255
|
display: inline-block;
|
|
178
256
|
|
|
257
|
+
text-wrap: balance;
|
|
258
|
+
// text-decoration-thickness: .1em;
|
|
259
|
+
|
|
179
260
|
&::after {
|
|
180
261
|
padding-left: 0.25rem;
|
|
181
262
|
|
|
@@ -187,6 +268,8 @@ a.tna-chip {
|
|
|
187
268
|
}
|
|
188
269
|
|
|
189
270
|
&:hover {
|
|
271
|
+
// text-decoration-thickness: .15em;
|
|
272
|
+
|
|
190
273
|
&::after {
|
|
191
274
|
padding-left: 0.5rem;
|
|
192
275
|
}
|
|
@@ -249,7 +332,7 @@ a.tna-chip {
|
|
|
249
332
|
|
|
250
333
|
%headings-and-heading-groups {
|
|
251
334
|
@include spacing.space-above;
|
|
252
|
-
margin-bottom:
|
|
335
|
+
margin-bottom: 0;
|
|
253
336
|
padding-top: 1rem;
|
|
254
337
|
|
|
255
338
|
&:first-child {
|
|
@@ -260,6 +343,10 @@ a.tna-chip {
|
|
|
260
343
|
margin-bottom: 0;
|
|
261
344
|
padding-bottom: 0;
|
|
262
345
|
}
|
|
346
|
+
|
|
347
|
+
+ p {
|
|
348
|
+
margin-top: 1rem;
|
|
349
|
+
}
|
|
263
350
|
}
|
|
264
351
|
|
|
265
352
|
.tna-heading {
|
|
@@ -296,6 +383,16 @@ a.tna-chip {
|
|
|
296
383
|
margin: 0 0 0.25rem;
|
|
297
384
|
|
|
298
385
|
@extend %chip;
|
|
386
|
+
|
|
387
|
+
&--plain {
|
|
388
|
+
padding: 0;
|
|
389
|
+
|
|
390
|
+
color: inherit;
|
|
391
|
+
|
|
392
|
+
background-color: transparent;
|
|
393
|
+
|
|
394
|
+
border: none;
|
|
395
|
+
}
|
|
299
396
|
}
|
|
300
397
|
|
|
301
398
|
&__title {
|
|
@@ -328,7 +425,7 @@ a.tna-chip {
|
|
|
328
425
|
margin-left: 0;
|
|
329
426
|
padding: 1rem 1rem 1rem 2rem;
|
|
330
427
|
|
|
331
|
-
@include colour.colour-border("accent-background", 0.
|
|
428
|
+
@include colour.colour-border("accent-background", 0.375rem, solid, left);
|
|
332
429
|
|
|
333
430
|
&__quote {
|
|
334
431
|
font-weight: 700;
|
|
@@ -347,14 +444,21 @@ a.tna-chip {
|
|
|
347
444
|
}
|
|
348
445
|
}
|
|
349
446
|
|
|
447
|
+
.tna-large-paragraph {
|
|
448
|
+
@include spacing.space-above;
|
|
449
|
+
|
|
450
|
+
@include typography.relative-font-size(22);
|
|
451
|
+
@include colour.colour-font("font-dark");
|
|
452
|
+
}
|
|
453
|
+
|
|
350
454
|
.tna-scene-setter {
|
|
455
|
+
@include spacing.space-above;
|
|
456
|
+
|
|
351
457
|
@include typography.detail-font;
|
|
352
458
|
@include colour.colour-font("font-dark");
|
|
353
459
|
@include typography.relative-font-size(30);
|
|
354
460
|
line-height: math.div(50, 30);
|
|
355
461
|
|
|
356
|
-
@include spacing.space-above;
|
|
357
|
-
|
|
358
462
|
@include media.on-mobile {
|
|
359
463
|
@include typography.relative-font-size(24);
|
|
360
464
|
line-height: 2;
|
|
@@ -368,4 +472,8 @@ a.tna-chip {
|
|
|
368
472
|
text-decoration-thickness: 4.5px;
|
|
369
473
|
}
|
|
370
474
|
}
|
|
475
|
+
|
|
476
|
+
&--small {
|
|
477
|
+
@include typography.relative-font-size(24);
|
|
478
|
+
}
|
|
371
479
|
}
|