@nationalarchives/frontend 0.1.8-prerelease → 0.1.9-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/nationalarchives/all.css +1 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/all.js +1 -1
- package/nationalarchives/all.js.map +1 -1
- package/nationalarchives/all.mjs +18 -6
- package/nationalarchives/assets/images/tna-square-logo.svg +24 -45
- package/nationalarchives/components/_all.scss +1 -0
- package/nationalarchives/components/breadcrumbs/_index.scss +2 -2
- package/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +1 -1
- package/nationalarchives/components/breadcrumbs/fixtures.json +1 -1
- package/nationalarchives/components/breadcrumbs/macro-options.json +2 -2
- package/nationalarchives/components/breadcrumbs/template.njk +9 -9
- package/nationalarchives/components/button/_index.scss +25 -5
- package/nationalarchives/components/button/button.stories.js +1 -1
- package/nationalarchives/components/button/fixtures.json +5 -5
- package/nationalarchives/components/button/template.njk +3 -3
- package/nationalarchives/components/card/_index.scss +7 -3
- package/nationalarchives/components/card/card.stories.js +1 -1
- package/nationalarchives/components/card/fixtures.json +11 -11
- package/nationalarchives/components/card/template.njk +44 -44
- package/nationalarchives/components/filters/_index.scss +49 -0
- package/nationalarchives/components/filters/filters.stories.js +76 -0
- package/nationalarchives/components/filters/fixtures.json +4 -0
- package/nationalarchives/components/filters/macro-options.json +52 -0
- package/nationalarchives/components/filters/macro.njk +3 -0
- package/nationalarchives/components/filters/template.njk +8 -0
- package/nationalarchives/components/footer/_index.scss +3 -1
- package/nationalarchives/components/footer/fixtures.json +1 -1
- package/nationalarchives/components/footer/footer.stories.js +2 -2
- package/nationalarchives/components/footer/template.njk +51 -51
- package/nationalarchives/components/grid/_index.scss +3 -78
- package/nationalarchives/components/grid/fixtures.json +12 -12
- package/nationalarchives/components/grid/grid.stories.js +1 -1
- package/nationalarchives/components/grid/template.njk +35 -35
- package/nationalarchives/components/header/_index.scss +308 -0
- package/nationalarchives/components/header/fixtures.json +4 -0
- package/nationalarchives/components/header/header.js +2 -0
- package/nationalarchives/components/header/header.js.map +1 -0
- package/nationalarchives/components/header/header.mjs +102 -0
- package/nationalarchives/components/header/header.stories.js +59 -0
- package/nationalarchives/components/header/macro-options.json +52 -0
- package/nationalarchives/components/header/macro.njk +3 -0
- package/nationalarchives/components/header/template.njk +54 -0
- package/nationalarchives/components/hero/_index.scss +1 -1
- package/nationalarchives/components/hero/hero.stories.js +2 -2
- package/nationalarchives/components/hero/macro-options.json +2 -2
- package/nationalarchives/components/hero/template.njk +27 -27
- package/nationalarchives/components/sensitive-image/fixtures.json +3 -3
- package/nationalarchives/components/sensitive-image/macro-options.json +2 -2
- package/nationalarchives/components/sensitive-image/sensitive-image.js +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.js.map +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.mjs +21 -22
- package/nationalarchives/components/sensitive-image/sensitive-image.stories.js +2 -2
- package/nationalarchives/components/sensitive-image/template.njk +7 -7
- package/nationalarchives/lib/uuid.mjs +9 -0
- package/nationalarchives/stories/development/publishing.mdx +9 -0
- package/nationalarchives/stories/utilities/lists.stories.js +2 -2
- package/nationalarchives/stories/utilities/typography.mdx +15 -0
- package/nationalarchives/templates/homepage.njk +46 -46
- package/nationalarchives/templates/layouts/_generic.njk +49 -52
- package/nationalarchives/templates/layouts/_prototype-kit.njk +5 -0
- package/nationalarchives/templates/search-results.njk +31 -31
- package/nationalarchives/templates/topics.njk +33 -33
- package/nationalarchives/tools/_grid.scss +52 -27
- package/nationalarchives/utilities/_global.scss +9 -2
- package/nationalarchives/utilities/_typography.scss +8 -0
- package/nationalarchives/variables/_colour.scss +11 -1
- package/package.json +4 -4
- package/nationalarchives/assets/images/tna-square-logo-inverted.svg +0 -47
@@ -35,10 +35,6 @@
|
|
35
35
|
|
36
36
|
box-sizing: border-box;
|
37
37
|
|
38
|
-
&--full {
|
39
|
-
width: 100%;
|
40
|
-
}
|
41
|
-
|
42
38
|
&--container {
|
43
39
|
display: -ms-flexbox;
|
44
40
|
display: flex;
|
@@ -46,12 +42,6 @@
|
|
46
42
|
justify-content: stretch;
|
47
43
|
align-items: stretch;
|
48
44
|
}
|
49
|
-
|
50
|
-
@for $i from 1 through 3 {
|
51
|
-
&--flex-#{$i} {
|
52
|
-
flex: $i 0;
|
53
|
-
}
|
54
|
-
}
|
55
45
|
}
|
56
46
|
|
57
47
|
.tna-container--no-padding,
|
@@ -64,35 +54,10 @@
|
|
64
54
|
padding-left: 0;
|
65
55
|
}
|
66
56
|
|
67
|
-
// @for $i from 1 through 3 {
|
68
|
-
// .tna-column--order-#{$i} {
|
69
|
-
// order: $i;
|
70
|
-
// }
|
71
|
-
// }
|
72
|
-
|
73
57
|
@include tools.columns-generator(grid.$column-count);
|
74
58
|
|
75
59
|
@include media.on-medium {
|
76
|
-
.
|
77
|
-
&--full-medium {
|
78
|
-
width: 100%;
|
79
|
-
flex: none;
|
80
|
-
}
|
81
|
-
|
82
|
-
@for $i from 1 through 3 {
|
83
|
-
&--flex-#{$i}-medium {
|
84
|
-
flex: $i 0;
|
85
|
-
}
|
86
|
-
}
|
87
|
-
|
88
|
-
// @for $i from 1 through 3 {
|
89
|
-
// &--order-#{$i}-medium {
|
90
|
-
// order: $i;
|
91
|
-
// }
|
92
|
-
// }
|
93
|
-
}
|
94
|
-
|
95
|
-
@include tools.columns-generator(grid.$column-count-medium, "-medium");
|
60
|
+
@include tools.columns-generator(grid.$column-count-medium, "medium");
|
96
61
|
}
|
97
62
|
|
98
63
|
@include media.on-mobile {
|
@@ -108,49 +73,9 @@
|
|
108
73
|
}
|
109
74
|
|
110
75
|
@include media.on-small {
|
111
|
-
.
|
112
|
-
&--full-small {
|
113
|
-
width: 100%;
|
114
|
-
flex: none;
|
115
|
-
}
|
116
|
-
|
117
|
-
@for $i from 1 through 3 {
|
118
|
-
&--flex-#{$i}-small {
|
119
|
-
flex: $i 0;
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
// @for $i from 1 through 3 {
|
124
|
-
// &--order-#{$i}-small {
|
125
|
-
// order: $i;
|
126
|
-
// }
|
127
|
-
// }
|
128
|
-
}
|
129
|
-
|
130
|
-
@include tools.columns-generator(grid.$column-count-small, "-small");
|
76
|
+
@include tools.columns-generator(grid.$column-count-small, "small");
|
131
77
|
}
|
132
78
|
|
133
79
|
@include media.on-tiny {
|
134
|
-
.
|
135
|
-
&--full-tiny {
|
136
|
-
width: 100%;
|
137
|
-
flex: none;
|
138
|
-
}
|
139
|
-
|
140
|
-
@for $i from 1 through 3 {
|
141
|
-
&--flex-#{$i}-tiny {
|
142
|
-
width: auto;
|
143
|
-
|
144
|
-
flex: $i 0;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
|
148
|
-
// @for $i from 1 through 3 {
|
149
|
-
// &--order-#{$i}-tiny {
|
150
|
-
// order: $i;
|
151
|
-
// }
|
152
|
-
// }
|
153
|
-
}
|
154
|
-
|
155
|
-
@include tools.columns-generator(grid.$column-count-tiny, "-tiny");
|
80
|
+
@include tools.columns-generator(grid.$column-count-tiny, "tiny");
|
156
81
|
}
|
@@ -18,7 +18,7 @@
|
|
18
18
|
}
|
19
19
|
]
|
20
20
|
},
|
21
|
-
"html": "<div class=\"tna-container tna-container--max\"><div class=\"tna-column tna-column--full\">\n
|
21
|
+
"html": "<div class=\"tna-container tna-container--max\"><div class=\"tna-column tna-column--full\">\n <p>Full width</p>\n </div></div>",
|
22
22
|
"hidden": false
|
23
23
|
},
|
24
24
|
{
|
@@ -32,7 +32,7 @@
|
|
32
32
|
}
|
33
33
|
]
|
34
34
|
},
|
35
|
-
"html": "<div class=\"tna-container tna-container--no-padding\"><div class=\"tna-column tna-column--full\">\n
|
35
|
+
"html": "<div class=\"tna-container tna-container--no-padding\"><div class=\"tna-column tna-column--full\">\n <p>Full width</p>\n </div></div>",
|
36
36
|
"hidden": false
|
37
37
|
},
|
38
38
|
{
|
@@ -46,7 +46,7 @@
|
|
46
46
|
}
|
47
47
|
]
|
48
48
|
},
|
49
|
-
"html": "<article class=\"tna-container \"><div class=\"tna-column tna-column--full\">\n
|
49
|
+
"html": "<article class=\"tna-container \"><div class=\"tna-column tna-column--full\">\n <p>Full width</p>\n </div></article>",
|
50
50
|
"hidden": false
|
51
51
|
},
|
52
52
|
{
|
@@ -60,7 +60,7 @@
|
|
60
60
|
}
|
61
61
|
]
|
62
62
|
},
|
63
|
-
"html": "<div class=\"tna-container container__test-class\"><div class=\"tna-column tna-column--full\">\n
|
63
|
+
"html": "<div class=\"tna-container container__test-class\"><div class=\"tna-column tna-column--full\">\n <p>Full width</p>\n </div></div>",
|
64
64
|
"hidden": false
|
65
65
|
},
|
66
66
|
{
|
@@ -76,7 +76,7 @@
|
|
76
76
|
}
|
77
77
|
]
|
78
78
|
},
|
79
|
-
"html": "<div class=\"tna-container \" data-testattribute=\"foobar\"><div class=\"tna-column tna-column--full\">\n
|
79
|
+
"html": "<div class=\"tna-container \" data-testattribute=\"foobar\"><div class=\"tna-column tna-column--full\">\n <p>Full width</p>\n </div></div>",
|
80
80
|
"hidden": false
|
81
81
|
},
|
82
82
|
{
|
@@ -177,7 +177,7 @@
|
|
177
177
|
}
|
178
178
|
]
|
179
179
|
},
|
180
|
-
"html": "<div class=\"tna-container \"><div class=\"tna-column tna-column--full\">\n
|
180
|
+
"html": "<div class=\"tna-container \"><div class=\"tna-column tna-column--full\">\n <p>Full width</p>\n </div><div class=\"tna-column tna-column--width-1-2\">\n <p>Half</p>\n </div><div class=\"tna-column tna-column--width-1-2\">\n <p>Half</p>\n </div><div class=\"tna-column tna-column--width-1-3\">\n <p>Third</p>\n </div><div class=\"tna-column tna-column--width-1-3\">\n <p>Third</p>\n </div><div class=\"tna-column tna-column--width-1-3\">\n <p>Third</p>\n </div><div class=\"tna-column tna-column--width-2-3\">\n <p>Two thirds</p>\n </div><div class=\"tna-column tna-column--width-1-3\">\n <p>Third</p>\n </div><div class=\"tna-column tna-column--width-1-3\">\n <p>Third</p>\n </div><div class=\"tna-column tna-column--width-2-3\">\n <p>Two thirds</p>\n </div><div class=\"tna-column tna-column--width-1-4\">\n <p>Quarter</p>\n </div><div class=\"tna-column tna-column--width-1-4\">\n <p>Quarter</p>\n </div><div class=\"tna-column tna-column--width-1-4\">\n <p>Quarter</p>\n </div><div class=\"tna-column tna-column--width-1-4\">\n <p>Quarter</p>\n </div><div class=\"tna-column tna-column--width-1-2\">\n <p>Half</p>\n </div><div class=\"tna-column tna-column--width-1-4\">\n <p>Quarter</p>\n </div><div class=\"tna-column tna-column--width-1-4\">\n <p>Quarter</p>\n </div><div class=\"tna-column tna-column--width-1-4\">\n <p>Quarter</p>\n </div><div class=\"tna-column tna-column--width-1-2\">\n <p>Half</p>\n </div><div class=\"tna-column tna-column--width-1-4\">\n <p>Quarter</p>\n </div><div class=\"tna-column tna-column--width-1-4\">\n <p>Quarter</p>\n </div><div class=\"tna-column tna-column--width-1-4\">\n <p>Quarter</p>\n </div><div class=\"tna-column tna-column--width-1-2\">\n <p>Half</p>\n </div></div>",
|
181
181
|
"hidden": false
|
182
182
|
},
|
183
183
|
{
|
@@ -193,7 +193,7 @@
|
|
193
193
|
}
|
194
194
|
]
|
195
195
|
},
|
196
|
-
"html": "<div class=\"tna-container \"><div class=\"tna-column tna-column--full tna-column--full-medium tna-column--full-small tna-column--full-tiny\">\n
|
196
|
+
"html": "<div class=\"tna-container \"><div class=\"tna-column tna-column--full tna-column--full-medium tna-column--full-small tna-column--full-tiny\">\n <p>Full width</p>\n </div></div>",
|
197
197
|
"hidden": false
|
198
198
|
},
|
199
199
|
{
|
@@ -209,7 +209,7 @@
|
|
209
209
|
}
|
210
210
|
]
|
211
211
|
},
|
212
|
-
"html": "<div class=\"tna-container \"><div class=\"tna-column tna-column--width-1-5 tna-column--width-1-4-medium tna-column--width-1-3-small tna-column--width-1-2-tiny\">\n
|
212
|
+
"html": "<div class=\"tna-container \"><div class=\"tna-column tna-column--width-1-5 tna-column--width-1-4-medium tna-column--width-1-3-small tna-column--width-1-2-tiny\">\n <p>Full width</p>\n </div></div>",
|
213
213
|
"hidden": false
|
214
214
|
},
|
215
215
|
{
|
@@ -225,7 +225,7 @@
|
|
225
225
|
}
|
226
226
|
]
|
227
227
|
},
|
228
|
-
"html": "<div class=\"tna-container \"><div class=\"tna-column tna-column--flex-4 tna-column--flex-3-medium tna-column--flex-2-small tna-column--flex-1-tiny\">\n
|
228
|
+
"html": "<div class=\"tna-container \"><div class=\"tna-column tna-column--flex-4 tna-column--flex-3-medium tna-column--flex-2-small tna-column--flex-1-tiny\">\n <p>Full width</p>\n </div></div>",
|
229
229
|
"hidden": false
|
230
230
|
},
|
231
231
|
{
|
@@ -238,7 +238,7 @@
|
|
238
238
|
}
|
239
239
|
]
|
240
240
|
},
|
241
|
-
"html": "<div class=\"tna-container \"><div class=\"tna-column \">\n
|
241
|
+
"html": "<div class=\"tna-container \"><div class=\"tna-column \">\n <p>Full width</p>\n </div></div>",
|
242
242
|
"hidden": false
|
243
243
|
},
|
244
244
|
{
|
@@ -251,7 +251,7 @@
|
|
251
251
|
}
|
252
252
|
]
|
253
253
|
},
|
254
|
-
"html": "<div class=\"tna-container \"><div class=\"tna-column column--test-class\">\n
|
254
|
+
"html": "<div class=\"tna-container \"><div class=\"tna-column column--test-class\">\n <p>Full width</p>\n </div></div>",
|
255
255
|
"hidden": false
|
256
256
|
},
|
257
257
|
{
|
@@ -266,7 +266,7 @@
|
|
266
266
|
}
|
267
267
|
]
|
268
268
|
},
|
269
|
-
"html": "<div class=\"tna-container \"><div class=\"tna-column \" data-testattribute=\"foobar\">\n
|
269
|
+
"html": "<div class=\"tna-container \"><div class=\"tna-column \" data-testattribute=\"foobar\">\n <p>Full width</p>\n </div></div>",
|
270
270
|
"hidden": false
|
271
271
|
}
|
272
272
|
]
|
@@ -1,47 +1,47 @@
|
|
1
1
|
{%- set htmlElement = params.htmlElement if params.htmlElement else 'div' -%}
|
2
2
|
{%- set containerClasses = [params.classes] if params.classes else [] -%}
|
3
3
|
{%- if params.maxWidth -%}
|
4
|
-
|
4
|
+
{%- set containerClasses = containerClasses.concat('tna-container--max') -%}
|
5
5
|
{%- endif -%}
|
6
6
|
{%- if params.noPadding -%}
|
7
|
-
|
7
|
+
{%- set containerClasses = containerClasses.concat('tna-container--no-padding') -%}
|
8
8
|
{%- endif -%}
|
9
9
|
{%- if params.noPaddingAll -%}
|
10
|
-
|
10
|
+
{%- set containerClasses = containerClasses.concat('tna-container--no-padding-all') -%}
|
11
11
|
{%- endif -%}
|
12
12
|
<{{ htmlElement }} class="tna-container {{ containerClasses | join(' ') }}" {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
|
13
13
|
{%- for item in params.columns -%}
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
14
|
+
{%- set columnHtmlElement = item.htmlElement if item.htmlElement else 'div' -%}
|
15
|
+
{%- set columnClasses = [item.classes] if item.classes else [] -%}
|
16
|
+
{%- if item.width -%}
|
17
|
+
{%- set columnClasses = columnClasses.concat('tna-column--full') if item.width == 'full' else ( columnClasses.concat('tna-column--width-' + item.width) ) -%}
|
18
|
+
{%- endif -%}
|
19
|
+
{%- if item.widthMedium -%}
|
20
|
+
{%- set columnClasses = columnClasses.concat('tna-column--full-medium') if item.widthMedium == 'full' else ( columnClasses.concat('tna-column--width-' + item.widthMedium + '-medium') ) -%}
|
21
|
+
{%- endif -%}
|
22
|
+
{%- if item.widthSmall -%}
|
23
|
+
{%- set columnClasses = columnClasses.concat('tna-column--full-small') if item.widthSmall == 'full' else ( columnClasses.concat('tna-column--width-' + item.widthSmall + '-small') ) -%}
|
24
|
+
{%- endif -%}
|
25
|
+
{%- if item.widthTiny -%}
|
26
|
+
{%- set columnClasses = columnClasses.concat('tna-column--full-tiny') if item.widthTiny == 'full' else ( columnClasses.concat('tna-column--width-' + item.widthTiny + '-tiny') ) -%}
|
27
|
+
{%- endif -%}
|
28
|
+
{%- if item.flex -%}
|
29
|
+
{%- set columnClasses = columnClasses.concat('tna-column--flex-' + item.flex) -%}
|
30
|
+
{%- endif -%}
|
31
|
+
{%- if item.flexMedium -%}
|
32
|
+
{%- set columnClasses = columnClasses.concat('tna-column--flex-' + item.flexMedium + '-medium') -%}
|
33
|
+
{%- endif -%}
|
34
|
+
{%- if item.flexSmall -%}
|
35
|
+
{%- set columnClasses = columnClasses.concat('tna-column--flex-' + item.flexSmall + '-small') -%}
|
36
|
+
{%- endif -%}
|
37
|
+
{%- if item.flexTiny -%}
|
38
|
+
{%- set columnClasses = columnClasses.concat('tna-column--flex-' + item.flexTiny + '-tiny') -%}
|
39
|
+
{%- endif -%}
|
40
|
+
{%- if item.noPadding -%}
|
41
|
+
{%- set columnClasses = columnClasses.concat('tna-column--noPadding') -%}
|
42
|
+
{%- endif -%}
|
43
|
+
<{{ columnHtmlElement }} class="tna-column {{ columnClasses | join(' ') }}" {%- for attribute, value in item.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
44
|
+
{{ item.html | safe }}
|
45
|
+
</{{ columnHtmlElement }}>
|
46
46
|
{%- endfor -%}
|
47
47
|
</{{ htmlElement }}>
|
@@ -0,0 +1,308 @@
|
|
1
|
+
@use "sass:math";
|
2
|
+
@use "../../variables/colour";
|
3
|
+
@use "../../variables/grid";
|
4
|
+
@use "../../variables/typography";
|
5
|
+
@use "../../tools/media";
|
6
|
+
|
7
|
+
.tna-header {
|
8
|
+
color: #fff;
|
9
|
+
|
10
|
+
background-color: colour.$tna-black;
|
11
|
+
|
12
|
+
&__contents {
|
13
|
+
&.tna-container {
|
14
|
+
justify-content: space-between;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
&__logo {
|
19
|
+
padding-top: 1.5rem;
|
20
|
+
padding-bottom: 1.5rem;
|
21
|
+
}
|
22
|
+
|
23
|
+
&__logo-link {
|
24
|
+
display: -ms-flexbox;
|
25
|
+
display: flex;
|
26
|
+
align-items: flex-end;
|
27
|
+
|
28
|
+
color: inherit;
|
29
|
+
text-decoration: none;
|
30
|
+
|
31
|
+
&:hover {
|
32
|
+
outline: 0.375rem #fff solid;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.tna-logo {
|
37
|
+
width: 100px;
|
38
|
+
height: 100px;
|
39
|
+
|
40
|
+
display: inline-block;
|
41
|
+
}
|
42
|
+
|
43
|
+
.tna-logo__foreground {
|
44
|
+
fill: #fff;
|
45
|
+
}
|
46
|
+
|
47
|
+
.tna-logo__background {
|
48
|
+
}
|
49
|
+
|
50
|
+
&__logo-strapline {
|
51
|
+
margin: 0 0.75rem;
|
52
|
+
|
53
|
+
display: inline-block;
|
54
|
+
|
55
|
+
line-height: 2.125rem;
|
56
|
+
text-transform: uppercase;
|
57
|
+
}
|
58
|
+
|
59
|
+
&__navigation-toggle {
|
60
|
+
}
|
61
|
+
|
62
|
+
&__navigation-toggle-button {
|
63
|
+
height: 2rem;
|
64
|
+
padding: 0;
|
65
|
+
|
66
|
+
display: block;
|
67
|
+
|
68
|
+
position: relative;
|
69
|
+
|
70
|
+
appearance: none;
|
71
|
+
|
72
|
+
font-size: 0;
|
73
|
+
|
74
|
+
background: none;
|
75
|
+
|
76
|
+
border: 0 transparent solid;
|
77
|
+
border-width: 0.25rem 0;
|
78
|
+
|
79
|
+
cursor: pointer;
|
80
|
+
}
|
81
|
+
|
82
|
+
&__hamburger {
|
83
|
+
width: 2rem;
|
84
|
+
height: 0.25rem;
|
85
|
+
|
86
|
+
display: block;
|
87
|
+
|
88
|
+
background-color: #fff;
|
89
|
+
|
90
|
+
&::before,
|
91
|
+
&::after {
|
92
|
+
height: 0.25rem;
|
93
|
+
|
94
|
+
display: block;
|
95
|
+
|
96
|
+
position: absolute;
|
97
|
+
right: 0;
|
98
|
+
left: 0;
|
99
|
+
|
100
|
+
background-color: inherit;
|
101
|
+
|
102
|
+
content: "";
|
103
|
+
}
|
104
|
+
|
105
|
+
&::before {
|
106
|
+
top: 0;
|
107
|
+
}
|
108
|
+
|
109
|
+
&::after {
|
110
|
+
bottom: 0;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
&--yellow,
|
115
|
+
&--pink,
|
116
|
+
&--orange,
|
117
|
+
&--green,
|
118
|
+
&--blue {
|
119
|
+
color: colour.$tna-black;
|
120
|
+
|
121
|
+
.tna-header__logo-link {
|
122
|
+
&:hover {
|
123
|
+
outline-color: #000;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
.tna-logo__foreground {
|
128
|
+
fill: #000;
|
129
|
+
}
|
130
|
+
|
131
|
+
.tna-header__hamburger {
|
132
|
+
background-color: colour.$tna-black;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
&--yellow {
|
137
|
+
background-color: colour.$tna-yellow;
|
138
|
+
}
|
139
|
+
|
140
|
+
&--pink {
|
141
|
+
background-color: colour.$tna-pink;
|
142
|
+
}
|
143
|
+
|
144
|
+
&--orange {
|
145
|
+
background-color: colour.$tna-orange;
|
146
|
+
}
|
147
|
+
|
148
|
+
&--green {
|
149
|
+
background-color: colour.$tna-green;
|
150
|
+
}
|
151
|
+
|
152
|
+
&--blue {
|
153
|
+
background-color: colour.$tna-blue;
|
154
|
+
}
|
155
|
+
|
156
|
+
&__navigation {
|
157
|
+
display: -ms-flexbox;
|
158
|
+
display: flex;
|
159
|
+
justify-content: flex-end;
|
160
|
+
align-items: flex-end;
|
161
|
+
}
|
162
|
+
|
163
|
+
&__navigation-items {
|
164
|
+
margin: 0;
|
165
|
+
padding: 0;
|
166
|
+
|
167
|
+
list-style: none;
|
168
|
+
|
169
|
+
white-space: nowrap;
|
170
|
+
}
|
171
|
+
|
172
|
+
&__navigation-item {
|
173
|
+
margin-left: 0.75rem;
|
174
|
+
|
175
|
+
display: inline-block;
|
176
|
+
}
|
177
|
+
|
178
|
+
&__navigation-item-link {
|
179
|
+
padding: 0.5rem 1rem;
|
180
|
+
|
181
|
+
display: inline-block;
|
182
|
+
|
183
|
+
color: inherit;
|
184
|
+
font-family: typography.$font-family-heading;
|
185
|
+
font-weight: typography.$font-weight-heading;
|
186
|
+
text-decoration: none;
|
187
|
+
|
188
|
+
transition:
|
189
|
+
color 200ms,
|
190
|
+
background-color 200ms;
|
191
|
+
|
192
|
+
&:hover,
|
193
|
+
&--selected {
|
194
|
+
color: colour.$tna-black;
|
195
|
+
|
196
|
+
background-color: #fff;
|
197
|
+
|
198
|
+
transition:
|
199
|
+
color 50ms,
|
200
|
+
background-color 50ms;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
204
|
+
@include media.on-larger-than-mobile {
|
205
|
+
.tna-header__navigation-toggle {
|
206
|
+
display: none;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
@include media.on-mobile {
|
211
|
+
$compensated-container-padding: grid.$gutter-width-mobile + 0.75rem;
|
212
|
+
|
213
|
+
&__contents {
|
214
|
+
&.tna-container {
|
215
|
+
padding-right: 0;
|
216
|
+
padding-left: 0;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
&__logo {
|
221
|
+
padding-top: 1rem;
|
222
|
+
padding-bottom: 1rem;
|
223
|
+
|
224
|
+
&.tna-column {
|
225
|
+
padding-right: $compensated-container-padding;
|
226
|
+
padding-left: $compensated-container-padding;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
&__navigation-toggle {
|
231
|
+
&.tna-column {
|
232
|
+
padding-top: 1rem;
|
233
|
+
padding-right: $compensated-container-padding;
|
234
|
+
padding-left: 0;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
|
238
|
+
&__navigation {
|
239
|
+
color: colour.$base-font-colour;
|
240
|
+
|
241
|
+
&.tna-column {
|
242
|
+
padding-right: 0;
|
243
|
+
padding-left: 0;
|
244
|
+
}
|
245
|
+
|
246
|
+
.js-enabled & {
|
247
|
+
display: none;
|
248
|
+
|
249
|
+
&--open {
|
250
|
+
display: block;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
&__navigation-items {
|
256
|
+
width: 100%;
|
257
|
+
|
258
|
+
background-color: #fff;
|
259
|
+
}
|
260
|
+
|
261
|
+
&__navigation-item {
|
262
|
+
margin: 0;
|
263
|
+
|
264
|
+
display: block;
|
265
|
+
|
266
|
+
border-bottom: 1px colour.$keyline-colour solid;
|
267
|
+
}
|
268
|
+
|
269
|
+
&__navigation-item-link {
|
270
|
+
padding-right: $compensated-container-padding;
|
271
|
+
padding-left: $compensated-container-padding;
|
272
|
+
|
273
|
+
display: block;
|
274
|
+
|
275
|
+
position: relative;
|
276
|
+
|
277
|
+
&::after {
|
278
|
+
width: 0;
|
279
|
+
|
280
|
+
position: absolute;
|
281
|
+
top: 0;
|
282
|
+
bottom: 0;
|
283
|
+
left: 0;
|
284
|
+
|
285
|
+
background-color: colour.$tna-black;
|
286
|
+
|
287
|
+
transition: width 200ms;
|
288
|
+
|
289
|
+
content: "";
|
290
|
+
}
|
291
|
+
|
292
|
+
&:hover {
|
293
|
+
&::after {
|
294
|
+
width: 0.25rem;
|
295
|
+
|
296
|
+
transition: width 50ms;
|
297
|
+
}
|
298
|
+
}
|
299
|
+
|
300
|
+
&--selected {
|
301
|
+
&::after,
|
302
|
+
&:hover::after {
|
303
|
+
width: 0.5rem;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
}
|
307
|
+
}
|
308
|
+
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("TNAFrontend",[],e):"object"==typeof exports?exports.TNAFrontend=e():(t.TNAFrontend=t.TNAFrontend||{},t.TNAFrontend["components/header/header"]=e())}(self,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{Header:()=>o});function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,a=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===n(a)?a:String(a)),o)}var a}var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$toggleButtonWrapper=e&&e.querySelector(".tna-header__navigation-toggle"),this.$navigation=e&&e.querySelector(".tna-header__navigation"),this.$links=e&&this.$navigation&&this.$navigation.querySelectorAll("[tabindex='0']"),this.menuOpened=!1,this.mql=window.matchMedia("(max-width: 768px)")}var e,n;return e=t,(n=[{key:"init",value:function(){var t=this;if(this.$module&&this.$toggleButtonWrapper&&this.$navigation){var e="menu-content-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)})));this.$navigation.setAttribute("id",e),this.$toggleButton=document.createElement("button"),this.$toggleButton.innerText="Menu",this.$toggleButton.setAttribute("aria-controls",e),this.$toggleButton.setAttribute("aria-haspopup","true"),this.$toggleButton.classList.add("tna-header__navigation-toggle-button"),this.$hamburger=document.createElement("div"),this.$hamburger.classList.add("tna-header__hamburger"),this.$toggleButton.appendChild(this.$hamburger),this.$toggleButtonWrapper.appendChild(this.$toggleButton),this.syncState(),this.$toggleButton.addEventListener("click",(function(){return t.handleToggleNavigation()})),"addEventListener"in this.mql?this.mql.addEventListener("change",(function(){return t.syncState()})):this.mql.addListener((function(){return t.syncState()}))}}},{key:"handleToggleNavigation",value:function(){this.menuOpened=!this.menuOpened,this.syncState()}},{key:"syncState",value:function(){if(this.mql.matches)if(this.menuOpened){this.$navigation.classList.add("tna-header__navigation--open"),this.$navigation.hidden=!1,this.$navigation.setAttribute("aria-hidden","false"),this.$toggleButton.setAttribute("aria-expanded","true"),this.$toggleButton.setAttribute("title","Close menu");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","0")}else{this.$navigation.classList.remove("tna-header__navigation--open"),this.$navigation.hidden=!0,this.$navigation.setAttribute("aria-hidden","true"),this.$toggleButton.setAttribute("aria-expanded","false"),this.$toggleButton.setAttribute("title","Open menu");for(var e=0;e<this.$links.length;e++)this.$links[e].setAttribute("tabindex","-1")}else{this.$navigation.classList.add("tna-header__navigation--open"),this.$navigation.hidden=!1,this.$navigation.setAttribute("aria-hidden","false"),this.$toggleButton.setAttribute("aria-expanded","true"),this.$toggleButton.setAttribute("title","Close menu");for(var n=0;n<this.$links.length;n++)this.$links[n].setAttribute("tabindex","0")}}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();return e})()));
|
2
|
+
//# sourceMappingURL=header.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"components/header/header.js","mappings":"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","sources":["webpack://TNAFrontend/webpack/universalModuleDefinition","webpack://TNAFrontend/webpack/bootstrap","webpack://TNAFrontend/webpack/runtime/define property getters","webpack://TNAFrontend/webpack/runtime/hasOwnProperty shorthand","webpack://TNAFrontend/webpack/runtime/make namespace object","webpack://TNAFrontend/./src/nationalarchives/components/header/header.mjs","webpack://TNAFrontend/./src/nationalarchives/lib/uuid.mjs"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"TNAFrontend\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TNAFrontend\"] = factory();\n\telse\n\t\troot[\"TNAFrontend\"] = root[\"TNAFrontend\"] || {}, root[\"TNAFrontend\"][\"components/header/header\"] = factory();\n})(self, () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import uuidv4 from \"../../lib/uuid.mjs\";\n\nexport class Header {\n constructor($module) {\n this.$module = $module;\n this.$toggleButtonWrapper =\n $module && $module.querySelector(\".tna-header__navigation-toggle\");\n this.$navigation =\n $module && $module.querySelector(\".tna-header__navigation\");\n this.$links =\n $module &&\n this.$navigation &&\n this.$navigation.querySelectorAll(\"[tabindex='0']\");\n this.menuOpened = false;\n this.mql = window.matchMedia(\"(max-width: 768px)\");\n }\n\n init() {\n if (!this.$module || !this.$toggleButtonWrapper || !this.$navigation) {\n return;\n }\n\n // const uniqueLinkIds = []\n\n // for (let i = 0; i < this.$links.length; i++) {\n // const uniqueLinkId = uuidv4()\n // this.$links[i].setAttribute(\"id\", uniqueLinkId);\n // uniqueLinkIds.push(uniqueLinkId)\n // }\n\n const uniqueId = `menu-content-${uuidv4()}`;\n this.$navigation.setAttribute(\"id\", uniqueId);\n // this.$navigation.setAttribute(\"aria-owns\", uniqueLinkIds.join(\",\"));\n\n this.$toggleButton = document.createElement(\"button\");\n this.$toggleButton.innerText = \"Menu\";\n this.$toggleButton.setAttribute(\"aria-controls\", uniqueId);\n this.$toggleButton.setAttribute(\"aria-haspopup\", \"true\");\n this.$toggleButton.classList.add(\"tna-header__navigation-toggle-button\");\n\n this.$hamburger = document.createElement(\"div\");\n this.$hamburger.classList.add(\"tna-header__hamburger\");\n\n this.$toggleButton.appendChild(this.$hamburger);\n this.$toggleButtonWrapper.appendChild(this.$toggleButton);\n\n this.syncState();\n\n this.$toggleButton.addEventListener(\"click\", () =>\n this.handleToggleNavigation(),\n );\n\n if (\"addEventListener\" in this.mql) {\n this.mql.addEventListener(\"change\", () => this.syncState());\n // this.mql.addEventListener(\"change\", this.syncState.bind(this));\n } else {\n this.mql.addListener(() => this.syncState());\n // this.mql.addListener(this.syncState.bind(this));\n }\n }\n\n handleToggleNavigation() {\n this.menuOpened = !this.menuOpened;\n this.syncState();\n }\n\n syncState() {\n if (this.mql.matches) {\n if (this.menuOpened) {\n this.$navigation.classList.add(\"tna-header__navigation--open\");\n this.$navigation.hidden = false;\n this.$navigation.setAttribute(\"aria-hidden\", \"false\");\n this.$toggleButton.setAttribute(\"aria-expanded\", \"true\");\n this.$toggleButton.setAttribute(\"title\", \"Close menu\");\n\n for (let i = 0; i < this.$links.length; i++) {\n this.$links[i].setAttribute(\"tabindex\", \"0\");\n }\n } else {\n this.$navigation.classList.remove(\"tna-header__navigation--open\");\n this.$navigation.hidden = true;\n this.$navigation.setAttribute(\"aria-hidden\", \"true\");\n this.$toggleButton.setAttribute(\"aria-expanded\", \"false\");\n this.$toggleButton.setAttribute(\"title\", \"Open menu\");\n\n for (let i = 0; i < this.$links.length; i++) {\n this.$links[i].setAttribute(\"tabindex\", \"-1\");\n }\n }\n } else {\n this.$navigation.classList.add(\"tna-header__navigation--open\");\n this.$navigation.hidden = false;\n this.$navigation.setAttribute(\"aria-hidden\", \"false\");\n this.$toggleButton.setAttribute(\"aria-expanded\", \"true\");\n this.$toggleButton.setAttribute(\"title\", \"Close menu\");\n\n for (let i = 0; i < this.$links.length; i++) {\n this.$links[i].setAttribute(\"tabindex\", \"0\");\n }\n }\n }\n}\n","const uuidv4 = () =>\n ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (c) =>\n (\n c ^\n (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))\n ).toString(16),\n );\n\nexport default uuidv4;\n"],"names":["root","factory","exports","module","define","amd","self","__webpack_require__","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","Header","$module","_classCallCheck","this","$toggleButtonWrapper","querySelector","$navigation","$links","querySelectorAll","menuOpened","mql","window","matchMedia","_this","uniqueId","concat","replace","c","crypto","getRandomValues","Uint8Array","toString","setAttribute","$toggleButton","document","createElement","innerText","classList","add","$hamburger","appendChild","syncState","addEventListener","handleToggleNavigation","addListener","matches","hidden","i","length","remove"],"sourceRoot":""}
|