@nationalarchives/frontend 0.1.15-prerelease → 0.1.17-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/LICENCE +21 -0
- package/nationalarchives/all.css +13 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/all.js +1 -1
- package/nationalarchives/all.js.map +1 -1
- package/nationalarchives/all.scss +2 -3
- package/nationalarchives/assets/fonts/fa-brands-400.ttf +0 -0
- package/nationalarchives/assets/fonts/fa-brands-400.woff2 +0 -0
- package/nationalarchives/assets/fonts/fa-regular-400.ttf +0 -0
- package/nationalarchives/assets/fonts/fa-regular-400.woff2 +0 -0
- package/nationalarchives/assets/fonts/fa-solid-900.ttf +0 -0
- package/nationalarchives/assets/fonts/fa-solid-900.woff2 +0 -0
- package/nationalarchives/components/_index.scss +1 -0
- package/nationalarchives/components/breadcrumbs/_index.scss +13 -41
- package/nationalarchives/components/breadcrumbs/breadcrumbs.js +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.js.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.mjs +8 -4
- package/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +9 -30
- package/nationalarchives/components/breadcrumbs/fixtures.json +23 -1
- package/nationalarchives/components/breadcrumbs/macro-options.json +6 -0
- package/nationalarchives/components/breadcrumbs/template.njk +17 -12
- package/nationalarchives/components/button/_button-group.scss +18 -0
- package/nationalarchives/components/button/_index.scss +25 -9
- package/nationalarchives/components/button/button.stories.js +64 -8
- package/nationalarchives/components/button/fixtures.json +3 -3
- package/nationalarchives/components/button/macro-options.json +13 -1
- package/nationalarchives/components/button/template.njk +7 -2
- package/nationalarchives/components/card/_index.scss +67 -51
- package/nationalarchives/components/card/card.stories.js +123 -10
- package/nationalarchives/components/card/fixtures.json +62 -10
- package/nationalarchives/components/card/macro-options.json +9 -3
- package/nationalarchives/components/card/template.njk +12 -8
- package/nationalarchives/components/filters/_index.scss +19 -14
- package/nationalarchives/components/filters/filters.stories.js +3 -4
- package/nationalarchives/components/footer/_index.scss +195 -72
- package/nationalarchives/components/footer/fixtures.json +1 -1
- package/nationalarchives/components/footer/footer.stories.js +82 -74
- package/nationalarchives/components/footer/macro-options.json +34 -8
- package/nationalarchives/components/footer/template.njk +110 -53
- package/nationalarchives/components/grid/_index.scss +2 -2
- package/nationalarchives/components/grid/grid.stories.js +2 -3
- package/nationalarchives/components/header/_index.scss +57 -23
- package/nationalarchives/components/header/header.stories.js +2 -3
- package/nationalarchives/components/hero/_index.scss +4 -8
- package/nationalarchives/components/hero/hero.stories.js +2 -3
- package/nationalarchives/components/index-grid/_index.scss +28 -7
- package/nationalarchives/components/index-grid/index-grid.stories.js +27 -4
- package/nationalarchives/components/index-grid/macro-options.json +12 -0
- package/nationalarchives/components/index-grid/template.njk +9 -11
- package/nationalarchives/components/message/_index.scss +12 -6
- package/nationalarchives/components/message/phase-banner.stories.js +2 -3
- package/nationalarchives/components/phase-banner/phase-banner.stories.js +2 -3
- package/nationalarchives/components/picture/_index.scss +5 -5
- package/nationalarchives/components/picture/picture.js +1 -1
- package/nationalarchives/components/picture/picture.js.map +1 -1
- package/nationalarchives/components/picture/picture.mjs +2 -0
- package/nationalarchives/components/picture/picture.stories.js +2 -3
- package/nationalarchives/components/profile/profile.stories.js +2 -3
- package/nationalarchives/components/sensitive-image/sensitive-image.stories.js +3 -4
- package/nationalarchives/components/skip-link/_index.scss +63 -0
- package/nationalarchives/components/skip-link/fixtures.json +11 -0
- package/nationalarchives/{patterns/featured-collection → components/skip-link}/macro-options.json +10 -4
- package/nationalarchives/components/skip-link/macro.njk +3 -0
- package/nationalarchives/{patterns/featured-collection/featured-collection.stories.js → components/skip-link/skip-link.stories.js} +7 -10
- package/nationalarchives/components/skip-link/template.njk +4 -0
- package/nationalarchives/components/tabs/_index.scss +7 -5
- package/nationalarchives/components/tabs/tabs.stories.js +8 -9
- package/nationalarchives/lib/font-awesome/_animated.scss +276 -0
- package/nationalarchives/lib/font-awesome/_bordered-pulled.scss +20 -0
- package/nationalarchives/lib/font-awesome/_core.scss +42 -0
- package/nationalarchives/lib/font-awesome/_fixed-width.scss +7 -0
- package/nationalarchives/lib/font-awesome/_functions.scss +57 -0
- package/nationalarchives/lib/font-awesome/_icons.scss +11 -0
- package/nationalarchives/lib/font-awesome/_list.scss +20 -0
- package/nationalarchives/lib/font-awesome/_mixins.scss +74 -0
- package/nationalarchives/lib/font-awesome/_rotated-flipped.scss +31 -0
- package/nationalarchives/lib/font-awesome/_screen-reader.scss +14 -0
- package/nationalarchives/lib/font-awesome/_shims.scss +2653 -0
- package/nationalarchives/lib/font-awesome/_sizing.scss +16 -0
- package/nationalarchives/lib/font-awesome/_stacked.scss +32 -0
- package/nationalarchives/lib/font-awesome/_variables.scss +4976 -0
- package/nationalarchives/lib/font-awesome/brands.scss +34 -0
- package/nationalarchives/lib/font-awesome/fontawesome.scss +21 -0
- package/nationalarchives/lib/font-awesome/regular.scss +28 -0
- package/nationalarchives/lib/font-awesome/solid.scss +28 -0
- package/nationalarchives/lib/font-awesome/v4-shims.scss +11 -0
- package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.mdx +22 -0
- package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js +494 -91
- package/nationalarchives/stories/utilities/overrides/overrides.mdx +37 -57
- package/nationalarchives/stories/utilities/overrides/overrides.stories.js +8 -14
- package/nationalarchives/stories/utilities/typography/heading-groups.stories.js +1 -1
- package/nationalarchives/stories/utilities/typography/typography.mdx +2 -0
- package/nationalarchives/stories/utilities/typography/typography.stories.js +20 -1
- package/nationalarchives/templates/layouts/_generic.njk +10 -8
- package/nationalarchives/tools/_colour.scss +163 -49
- package/nationalarchives/tools/_index.scss +0 -1
- package/nationalarchives/tools/_typography.scss +13 -0
- package/nationalarchives/utilities/_debug.scss +41 -1
- package/nationalarchives/utilities/_font-awesome.scss +5 -0
- package/nationalarchives/utilities/_global.scss +75 -26
- package/nationalarchives/utilities/_index.scss +1 -0
- package/nationalarchives/utilities/_overrides.scss +54 -9
- package/nationalarchives/utilities/_typography.scss +203 -65
- package/nationalarchives/variables/_assets.scss +1 -1
- package/nationalarchives/variables/_colour.scss +93 -93
- package/nationalarchives/variables/_grid.scss +1 -1
- package/nationalarchives/variables/_media.scss +23 -23
- package/nationalarchives/variables/_spacing.scss +12 -2
- package/nationalarchives/variables/_typography.scss +4 -1
- package/package.json +14 -14
- package/nationalarchives/patterns/_index.scss +0 -1
- package/nationalarchives/patterns/featured-collection/_index.scss +0 -13
- package/nationalarchives/patterns/featured-collection/macro.njk +0 -3
- package/nationalarchives/patterns/featured-collection/template.njk +0 -96
- package/nationalarchives/tools/_assets.scss +0 -5
@@ -0,0 +1,34 @@
|
|
1
|
+
/*!
|
2
|
+
* Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
|
3
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4
|
+
* Copyright 2023 Fonticons, Inc.
|
5
|
+
*/
|
6
|
+
@import "functions";
|
7
|
+
@import "variables";
|
8
|
+
|
9
|
+
:root,
|
10
|
+
:host {
|
11
|
+
--#{$fa-css-prefix}-style-family-brands: "Font Awesome 6 Brands";
|
12
|
+
--#{$fa-css-prefix}-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
13
|
+
}
|
14
|
+
|
15
|
+
@font-face {
|
16
|
+
font-family: "Font Awesome 6 Brands";
|
17
|
+
font-style: normal;
|
18
|
+
font-weight: 400;
|
19
|
+
font-display: $fa-font-display;
|
20
|
+
src:
|
21
|
+
url("#{$fa-font-path}/fa-brands-400.woff2") format("woff2"),
|
22
|
+
url("#{$fa-font-path}/fa-brands-400.ttf") format("truetype");
|
23
|
+
}
|
24
|
+
|
25
|
+
.fab,
|
26
|
+
.#{$fa-css-prefix}-brands {
|
27
|
+
font-weight: 400;
|
28
|
+
}
|
29
|
+
|
30
|
+
@each $name, $icon in $fa-brand-icons {
|
31
|
+
.#{$fa-css-prefix}-#{$name}:before {
|
32
|
+
content: unquote('"#{ $icon }"');
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/*!
|
2
|
+
* Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
|
3
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4
|
+
* Copyright 2023 Fonticons, Inc.
|
5
|
+
*/
|
6
|
+
// Font Awesome core compile (Web Fonts-based)
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
@import "functions";
|
10
|
+
@import "variables";
|
11
|
+
@import "mixins";
|
12
|
+
@import "core";
|
13
|
+
@import "sizing";
|
14
|
+
@import "fixed-width";
|
15
|
+
@import "list";
|
16
|
+
@import "bordered-pulled";
|
17
|
+
@import "animated";
|
18
|
+
@import "rotated-flipped";
|
19
|
+
@import "stacked";
|
20
|
+
@import "icons";
|
21
|
+
@import "screen-reader";
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/*!
|
2
|
+
* Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
|
3
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4
|
+
* Copyright 2023 Fonticons, Inc.
|
5
|
+
*/
|
6
|
+
@import "functions";
|
7
|
+
@import "variables";
|
8
|
+
|
9
|
+
:root,
|
10
|
+
:host {
|
11
|
+
--#{$fa-css-prefix}-style-family-classic: "#{ $fa-style-family }";
|
12
|
+
--#{$fa-css-prefix}-font-regular: normal 400 1em/1 "#{ $fa-style-family }";
|
13
|
+
}
|
14
|
+
|
15
|
+
@font-face {
|
16
|
+
font-family: "Font Awesome 6 Free";
|
17
|
+
font-style: normal;
|
18
|
+
font-weight: 400;
|
19
|
+
font-display: $fa-font-display;
|
20
|
+
src:
|
21
|
+
url("#{$fa-font-path}/fa-regular-400.woff2") format("woff2"),
|
22
|
+
url("#{$fa-font-path}/fa-regular-400.ttf") format("truetype");
|
23
|
+
}
|
24
|
+
|
25
|
+
.far,
|
26
|
+
.#{$fa-css-prefix}-regular {
|
27
|
+
font-weight: 400;
|
28
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/*!
|
2
|
+
* Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
|
3
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4
|
+
* Copyright 2023 Fonticons, Inc.
|
5
|
+
*/
|
6
|
+
@import "functions";
|
7
|
+
@import "variables";
|
8
|
+
|
9
|
+
:root,
|
10
|
+
:host {
|
11
|
+
--#{$fa-css-prefix}-style-family-classic: "#{ $fa-style-family }";
|
12
|
+
--#{$fa-css-prefix}-font-solid: normal 900 1em/1 "#{ $fa-style-family }";
|
13
|
+
}
|
14
|
+
|
15
|
+
@font-face {
|
16
|
+
font-family: "Font Awesome 6 Free";
|
17
|
+
font-style: normal;
|
18
|
+
font-weight: 900;
|
19
|
+
font-display: $fa-font-display;
|
20
|
+
src:
|
21
|
+
url("#{$fa-font-path}/fa-solid-900.woff2") format("woff2"),
|
22
|
+
url("#{$fa-font-path}/fa-solid-900.ttf") format("truetype");
|
23
|
+
}
|
24
|
+
|
25
|
+
.fas,
|
26
|
+
.#{$fa-css-prefix}-solid {
|
27
|
+
font-weight: 900;
|
28
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*!
|
2
|
+
* Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
|
3
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4
|
+
* Copyright 2023 Fonticons, Inc.
|
5
|
+
*/
|
6
|
+
// V4 shims compile (Web Fonts-based)
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
@import "functions";
|
10
|
+
@import "variables";
|
11
|
+
@import "shims";
|
@@ -83,3 +83,25 @@ The high contrast themes are applied on top of the existing light and dark theme
|
|
83
83
|
The colours are defined in `src/nationalarchives/variables/_colour.scss` as a separate map for each theme.
|
84
84
|
|
85
85
|
This allows you to reference a colour, such as `font-base` without having to worry about which theme is currently in use.
|
86
|
+
|
87
|
+
## Accent colours
|
88
|
+
|
89
|
+
To add accent colours to the page, add one of the following classes to the `<html>` element:
|
90
|
+
|
91
|
+
- `tna-template--yellow-accent`
|
92
|
+
- `tna-template--pink-accent`
|
93
|
+
- `tna-template--orange-accent`
|
94
|
+
- `tna-template--green-accent`
|
95
|
+
- `tna-template--blue-accent`
|
96
|
+
|
97
|
+
```html
|
98
|
+
<html class="tna-template tna-template--system-theme tna-template--yellow-accent">
|
99
|
+
<head>
|
100
|
+
<title>System theme with yellow accents</title>
|
101
|
+
</head>
|
102
|
+
<body class="tna-template__body">
|
103
|
+
</body>
|
104
|
+
</html>
|
105
|
+
```
|
106
|
+
|
107
|
+
|