@nationalarchives/frontend 0.41.1 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/config/.htmlvalidate.json +2 -1
  2. package/govuk-prototype-kit.config.json +4 -4
  3. package/nationalarchives/all+analytics.js +1 -1
  4. package/nationalarchives/all+analytics.js.map +1 -1
  5. package/nationalarchives/all+analytics.mjs +5 -3
  6. package/nationalarchives/all.css +1 -1
  7. package/nationalarchives/all.css.map +1 -1
  8. package/nationalarchives/all.js +1 -1
  9. package/nationalarchives/all.js.map +1 -1
  10. package/nationalarchives/all.mjs +44 -30
  11. package/nationalarchives/analytics.js +1 -1
  12. package/nationalarchives/analytics.js.map +1 -1
  13. package/nationalarchives/analytics.mjs +39 -21
  14. package/nationalarchives/assets/images/nationalarchives-opengraph-image-dark.png +0 -0
  15. package/nationalarchives/assets/images/nationalarchives-opengraph-image.png +0 -0
  16. package/nationalarchives/components/accordion/accordion.css +1 -1
  17. package/nationalarchives/components/accordion/accordion.css.map +1 -1
  18. package/nationalarchives/components/accordion/accordion.js +1 -1
  19. package/nationalarchives/components/accordion/accordion.js.map +1 -1
  20. package/nationalarchives/components/accordion/accordion.mjs +1 -1
  21. package/nationalarchives/components/back-link/back-link.css.map +1 -1
  22. package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
  23. package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
  24. package/nationalarchives/components/breadcrumbs/breadcrumbs.js.map +1 -1
  25. package/nationalarchives/components/breadcrumbs/breadcrumbs.mjs +2 -1
  26. package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +3 -0
  27. package/nationalarchives/components/button/button.css +1 -1
  28. package/nationalarchives/components/button/button.css.map +1 -1
  29. package/nationalarchives/components/button/button.scss +2 -1
  30. package/nationalarchives/components/card/card.css +1 -1
  31. package/nationalarchives/components/card/card.css.map +1 -1
  32. package/nationalarchives/components/card/card.scss +4 -4
  33. package/nationalarchives/components/card/fixtures.json +10 -0
  34. package/nationalarchives/components/card/macro-options.json +1 -1
  35. package/nationalarchives/components/card/template.njk +2 -0
  36. package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
  37. package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
  38. package/nationalarchives/components/checkboxes/checkboxes.scss +2 -2
  39. package/nationalarchives/components/checkboxes/fixtures.json +27 -0
  40. package/nationalarchives/components/checkboxes/macro-options.json +6 -0
  41. package/nationalarchives/components/checkboxes/template.njk +2 -2
  42. package/nationalarchives/components/code-block/code-block.css +1 -1
  43. package/nationalarchives/components/code-block/code-block.css.map +1 -1
  44. package/nationalarchives/components/code-block/code-block.js +1 -1
  45. package/nationalarchives/components/code-block/code-block.js.map +1 -1
  46. package/nationalarchives/components/code-block/code-block.mjs +2 -2
  47. package/nationalarchives/components/code-block/code-block.scss +4 -4
  48. package/nationalarchives/components/code-block/fixtures.json +6 -6
  49. package/nationalarchives/components/code-block/macro-options.json +1 -1
  50. package/nationalarchives/components/code-block/template.njk +12 -12
  51. package/nationalarchives/components/compound-filters/compound-filters.css +1 -1
  52. package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
  53. package/nationalarchives/components/compound-filters/compound-filters.scss +2 -2
  54. package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
  55. package/nationalarchives/components/cookie-banner/cookie-banner.js +1 -1
  56. package/nationalarchives/components/cookie-banner/cookie-banner.js.map +1 -1
  57. package/nationalarchives/components/date-input/date-input.css.map +1 -1
  58. package/nationalarchives/components/date-input/date-input.js +1 -1
  59. package/nationalarchives/components/date-input/date-input.js.map +1 -1
  60. package/nationalarchives/components/date-input/date-input.mjs +5 -2
  61. package/nationalarchives/components/details/analytics.js +1 -1
  62. package/nationalarchives/components/details/details.css.map +1 -1
  63. package/nationalarchives/components/details/macro-options.json +1 -1
  64. package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
  65. package/nationalarchives/components/error-summary/error-summary.js +1 -1
  66. package/nationalarchives/components/error-summary/error-summary.js.map +1 -1
  67. package/nationalarchives/components/error-summary/error-summary.mjs +19 -15
  68. package/nationalarchives/components/fieldset/fieldset.css.map +1 -1
  69. package/nationalarchives/components/file-input/analytics.js +3 -3
  70. package/nationalarchives/components/file-input/file-input.css.map +1 -1
  71. package/nationalarchives/components/file-input/file-input.js +1 -1
  72. package/nationalarchives/components/file-input/file-input.js.map +1 -1
  73. package/nationalarchives/components/file-input/file-input.mjs +33 -17
  74. package/nationalarchives/components/files-list/files-list.css +1 -1
  75. package/nationalarchives/components/files-list/files-list.css.map +1 -1
  76. package/nationalarchives/components/files-list/files-list.scss +8 -8
  77. package/nationalarchives/components/footer/fixtures.json +2 -2
  78. package/nationalarchives/components/footer/footer.css.map +1 -1
  79. package/nationalarchives/components/footer/footer.js +1 -1
  80. package/nationalarchives/components/footer/footer.js.map +1 -1
  81. package/nationalarchives/components/footer/footer.mjs +2 -2
  82. package/nationalarchives/components/footer/template.njk +3 -3
  83. package/nationalarchives/components/gallery/analytics.js +1 -0
  84. package/nationalarchives/components/gallery/gallery.css.map +1 -1
  85. package/nationalarchives/components/gallery/gallery.js +1 -1
  86. package/nationalarchives/components/gallery/gallery.js.map +1 -1
  87. package/nationalarchives/components/gallery/gallery.mjs +16 -4
  88. package/nationalarchives/components/global-header/global-header.css.map +1 -1
  89. package/nationalarchives/components/global-header/global-header.js +1 -1
  90. package/nationalarchives/components/global-header/global-header.js.map +1 -1
  91. package/nationalarchives/components/global-header/global-header.mjs +11 -11
  92. package/nationalarchives/components/global-header/global-header.scss +1 -0
  93. package/nationalarchives/components/header/header.css.map +1 -1
  94. package/nationalarchives/components/header/header.js +1 -1
  95. package/nationalarchives/components/header/header.js.map +1 -1
  96. package/nationalarchives/components/header/header.mjs +11 -11
  97. package/nationalarchives/components/hero/fixtures.json +26 -26
  98. package/nationalarchives/components/hero/hero.css +1 -1
  99. package/nationalarchives/components/hero/hero.css.map +1 -1
  100. package/nationalarchives/components/hero/hero.scss +130 -176
  101. package/nationalarchives/components/hero/macro-options.json +2 -2
  102. package/nationalarchives/components/hero/template.njk +13 -10
  103. package/nationalarchives/components/index-grid/index-grid.css +1 -1
  104. package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
  105. package/nationalarchives/components/index-grid/index-grid.scss +3 -3
  106. package/nationalarchives/components/pagination/pagination.css.map +1 -1
  107. package/nationalarchives/components/panel/panel.css.map +1 -1
  108. package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
  109. package/nationalarchives/components/picture/picture.css.map +1 -1
  110. package/nationalarchives/components/picture/picture.js +1 -1
  111. package/nationalarchives/components/picture/picture.js.map +1 -1
  112. package/nationalarchives/components/picture/picture.mjs +4 -2
  113. package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
  114. package/nationalarchives/components/radios/fixtures.json +27 -0
  115. package/nationalarchives/components/radios/macro-options.json +7 -1
  116. package/nationalarchives/components/radios/radios.css +1 -1
  117. package/nationalarchives/components/radios/radios.css.map +1 -1
  118. package/nationalarchives/components/radios/radios.scss +2 -2
  119. package/nationalarchives/components/radios/template.njk +2 -2
  120. package/nationalarchives/components/search-field/analytics.js +0 -1
  121. package/nationalarchives/components/search-field/search-field.css +1 -1
  122. package/nationalarchives/components/search-field/search-field.css.map +1 -1
  123. package/nationalarchives/components/search-field/search-field.scss +2 -2
  124. package/nationalarchives/components/secondary-navigation/secondary-navigation.css +1 -1
  125. package/nationalarchives/components/secondary-navigation/secondary-navigation.css.map +1 -1
  126. package/nationalarchives/components/secondary-navigation/secondary-navigation.scss +4 -3
  127. package/nationalarchives/components/sidebar/fixtures.json +69 -0
  128. package/nationalarchives/components/sidebar/macro-options.json +7 -0
  129. package/nationalarchives/components/sidebar/sidebar.css +1 -1
  130. package/nationalarchives/components/sidebar/sidebar.css.map +1 -1
  131. package/nationalarchives/components/sidebar/sidebar.js +2 -0
  132. package/nationalarchives/components/sidebar/sidebar.js.map +1 -0
  133. package/nationalarchives/components/sidebar/sidebar.mjs +97 -0
  134. package/nationalarchives/components/sidebar/sidebar.scss +2 -2
  135. package/nationalarchives/components/sidebar/template.njk +1 -1
  136. package/nationalarchives/components/skip-link/skip-link.css +1 -1
  137. package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
  138. package/nationalarchives/components/tabs/tabs.css.map +1 -1
  139. package/nationalarchives/components/tabs/tabs.js.map +1 -1
  140. package/nationalarchives/components/tabs/tabs.mjs +11 -3
  141. package/nationalarchives/components/text-input/analytics.js +1 -1
  142. package/nationalarchives/components/text-input/fixtures.json +14 -2
  143. package/nationalarchives/components/text-input/template.njk +1 -1
  144. package/nationalarchives/components/textarea/analytics.js +0 -1
  145. package/nationalarchives/components/textarea/textarea.css +1 -1
  146. package/nationalarchives/components/textarea/textarea.css.map +1 -1
  147. package/nationalarchives/components/textarea/textarea.js +1 -1
  148. package/nationalarchives/components/textarea/textarea.js.map +1 -1
  149. package/nationalarchives/components/textarea/textarea.mjs +19 -13
  150. package/nationalarchives/components/textarea/textarea.scss +2 -2
  151. package/nationalarchives/components/warning/warning.css +1 -1
  152. package/nationalarchives/components/warning/warning.css.map +1 -1
  153. package/nationalarchives/components/warning/warning.scss +2 -2
  154. package/nationalarchives/error-page.css +1 -1
  155. package/nationalarchives/error-page.css.map +1 -1
  156. package/nationalarchives/lib/analytics-helpers.mjs +21 -19
  157. package/nationalarchives/lib/cookie-events.mjs +70 -0
  158. package/nationalarchives/lib/cookies.mjs +54 -92
  159. package/nationalarchives/lib/helpers.mjs +7 -13
  160. package/nationalarchives/lib/uuid.mjs +5 -3
  161. package/nationalarchives/prototype-kit.css +1 -1
  162. package/nationalarchives/prototype-kit.css.map +1 -1
  163. package/nationalarchives/templates/fixtures.json +1 -1
  164. package/nationalarchives/templates/layouts/email.njk +2 -2
  165. package/nationalarchives/templates/prototype-kit/_base.njk +2 -0
  166. package/nationalarchives/templates/prototype-kit/error-page-not-found.njk +0 -2
  167. package/nationalarchives/templates/prototype-kit/list.njk +0 -2
  168. package/nationalarchives/templates/prototype-kit/plain-with-sidebar.njk +72 -0
  169. package/nationalarchives/templates/prototype-kit/plain.njk +1 -3
  170. package/nationalarchives/tools/_grid.scss +3 -0
  171. package/nationalarchives/tools/_typography.scss +1 -1
  172. package/nationalarchives/utilities/reset/_index.scss +4 -0
  173. package/nationalarchives/utilities/tables/_index.scss +6 -5
  174. package/nationalarchives/utilities/typography/_index.scss +1 -0
  175. package/package.json +18 -22
  176. package/config/.eslintrc.js +0 -25
  177. package/config/stylelint.config.js +0 -244
  178. package/nationalarchives/templates/prototype-kit/index-grid.njk +0 -146
@@ -9,26 +9,30 @@
9
9
  @use "../../tools/spacing";
10
10
  @use "../../tools/typography";
11
11
 
12
- $padding-units-top: 10 !default;
13
- $padding-units-bottom: 2 !default;
14
- $padding-units-narrow: 3 !default;
15
- $shift-units: 5 !default;
12
+ $vertical-padding-small: 2 !default;
13
+ $vertical-padding-large: 2 !default;
14
+ $plain-top-padding: 12 !default;
15
+ $split-vertical-padding: 3 !default;
16
+ $shift-overflow: $vertical-padding-large !default;
17
+ $over-overflow: $shift-overflow !default;
16
18
 
17
19
  .tna-hero {
18
- &__figure {
19
- min-height: clamp(
20
- #{spacing.space($padding-units-top + $padding-units-bottom)},
21
- calc(40vw - #{spacing.space($padding-units-top + $padding-units-bottom)}),
22
- 50rem
23
- );
24
- margin: 0;
25
- padding-top: spacing.space($padding-units-top);
26
- padding-bottom: spacing.space($padding-units-bottom);
20
+ position: relative;
21
+
22
+ &::before {
23
+ content: "";
27
24
 
25
+ position: absolute;
26
+ inset: auto 0 0;
27
+ z-index: -1;
28
+ @include colour.colour-border("keyline", 1px, solid, bottom);
29
+ }
30
+
31
+ &__figure {
28
32
  display: flex;
33
+ flex-direction: column;
29
34
  align-items: flex-end;
30
-
31
- position: relative;
35
+ justify-content: flex-end;
32
36
  }
33
37
 
34
38
  &__caption {
@@ -39,7 +43,9 @@ $shift-units: 5 !default;
39
43
  position: absolute;
40
44
  top: 0;
41
45
  right: 0;
42
- z-index: 5;
46
+ z-index: 10;
47
+
48
+ order: 2;
43
49
  }
44
50
 
45
51
  &__details {
@@ -61,46 +67,6 @@ $shift-units: 5 !default;
61
67
  }
62
68
  }
63
69
 
64
- &__details-summary-icon {
65
- }
66
-
67
- &__information {
68
- width: 45rem;
69
- max-width: 75vw;
70
- padding: spacing.space(0.625) spacing.space(3.25) spacing.space(0.625)
71
- spacing.space(1);
72
-
73
- position: absolute;
74
- top: 0;
75
- right: 0;
76
- z-index: 1;
77
-
78
- @include colour.contrast;
79
-
80
- @include typography.font-size(16);
81
-
82
- border-bottom-left-radius: bordersVars.$rounded-border-radius;
83
-
84
- p + p {
85
- margin-top: spacing.space(0.5);
86
- }
87
- }
88
-
89
- &__image {
90
- position: absolute;
91
- inset: 0;
92
- z-index: 1;
93
-
94
- @include colour.image-loader-background;
95
-
96
- img {
97
- width: 100%;
98
- height: 100%;
99
-
100
- object-fit: cover;
101
- }
102
- }
103
-
104
70
  &__details[open] &__details-summary {
105
71
  width: 2rem;
106
72
  height: 2rem;
@@ -150,191 +116,179 @@ $shift-units: 5 !default;
150
116
  }
151
117
  }
152
118
 
153
- &__inner {
154
- position: relative;
155
- z-index: 4;
156
- }
157
-
158
- &:not(.tna-background-accent, .tna-background-tint) &__inner {
159
- // @include colour.contrast-on-mobile;
160
- }
161
-
162
- &__content {
119
+ &__details-summary-icon {
163
120
  }
164
121
 
165
- &__content-inner {
166
- padding: spacing.space(2);
167
-
168
- @include colour.colour-background("background");
122
+ &__information {
123
+ padding: spacing.space(0.625) spacing.space(3.25) spacing.space(0.625)
124
+ spacing.space(1);
169
125
 
170
- @include borders.rounded-border;
171
- }
126
+ position: absolute;
127
+ top: 0;
128
+ right: 0;
129
+ left: 0;
130
+ z-index: 1;
172
131
 
173
- &__heading {
174
- }
132
+ @include colour.contrast;
175
133
 
176
- &__body {
177
- }
134
+ @include typography.font-size(16);
178
135
 
179
- &--split {
136
+ p + p {
137
+ margin-top: spacing.space(0.5);
138
+ }
180
139
  }
181
140
 
182
- &--split &__figure {
183
- min-height: clamp(15rem, #{math.div(100vw, 3)}, 50rem);
184
- padding-top: spacing.space(2);
185
- padding-bottom: spacing.space(2);
186
-
187
- align-items: center;
188
-
189
- box-sizing: border-box;
190
- }
141
+ &__image {
142
+ width: 100%;
191
143
 
192
- &--split &__information {
193
- max-width: 50%;
144
+ order: 1;
194
145
 
195
- box-sizing: border-box;
146
+ img {
147
+ width: 100%;
148
+ }
196
149
  }
197
150
 
198
- &--split &__image {
199
- left: 50%;
151
+ &__inner {
152
+ order: 3;
200
153
  }
201
154
 
202
- &--split &__content {
203
- width: 50%;
204
- padding-right: grid.gutter-width();
155
+ &__content {
156
+ padding-top: spacing.space($vertical-padding-small);
157
+ padding-bottom: spacing.space($vertical-padding-small);
205
158
  }
206
159
 
207
- &--split &__content-inner {
208
- padding: 0;
160
+ &__content-inner {
161
+ padding-right: 0;
162
+ padding-left: 0;
209
163
 
210
164
  border-left: none;
165
+
166
+ @include colour.colour-background("background");
211
167
  }
212
168
 
213
169
  @include media.on-larger-than-mobile {
214
- &--shift {
215
- margin-bottom: spacing.space($shift-units - $padding-units-bottom);
170
+ &__figure {
171
+ min-height: clamp(5rem, 30vw, 20rem);
216
172
  }
217
173
 
218
- &--shift#{&}--narrow {
219
- margin-bottom: spacing.space($shift-units - $padding-units-narrow);
174
+ &--large &__figure {
175
+ min-height: clamp(12rem, 33vw, 50rem);
220
176
  }
221
- }
222
177
 
223
- &--shift &__content-inner {
224
- position: relative;
225
- top: spacing.space($shift-units);
226
- }
178
+ &__inner {
179
+ z-index: 4;
180
+ }
227
181
 
228
- &--narrow {
229
- }
182
+ &__image {
183
+ width: auto;
230
184
 
231
- &--narrow &__figure {
232
- min-height: max(#{spacing.space($padding-units-narrow * 2)}, 20rem);
233
- padding-top: spacing.space($padding-units-narrow);
234
- padding-bottom: spacing.space($padding-units-narrow);
235
- }
185
+ position: absolute;
186
+ inset: 0;
187
+ z-index: 1;
236
188
 
237
- @include media.on-mobile {
238
- @include colour.colour-border("keyline", 1px, solid, bottom);
189
+ img {
190
+ height: 100%;
239
191
 
240
- &.tna-background-tint,
241
- &.tna-background-contrast,
242
- &.tna-background-accent,
243
- &.tna-background-accent-light {
244
- border-bottom: none;
192
+ object-fit: cover;
193
+ }
245
194
  }
246
195
 
247
- & &__figure {
248
- min-height: auto;
249
- padding: 0;
250
-
251
- flex-direction: column;
196
+ &__content {
197
+ padding-top: spacing.space($plain-top-padding);
198
+ padding-bottom: spacing.space($vertical-padding-large);
252
199
  }
253
200
 
254
- &__caption {
255
- order: 2;
201
+ &__content-inner {
202
+ padding: spacing.space(2);
203
+ @include borders.rounded-border;
256
204
  }
257
205
 
258
- &__details {
206
+ &--split &__content {
207
+ width: 50%;
208
+ padding-top: spacing.space($vertical-padding-large);
209
+ padding-bottom: spacing.space($vertical-padding-large);
259
210
  }
260
211
 
261
- &__details-summary {
262
- top: spacing.space(0.25);
263
- right: spacing.space(0.25);
212
+ &--split &__content-inner {
213
+ padding: 0 spacing.space(math.div(gridVars.$gutter-width, 2)) 0 0;
264
214
  }
265
215
 
266
- &__details[open] &__details-summary {
267
- top: spacing.space(0.5);
268
- right: spacing.space(0.5);
216
+ &--split &__image {
217
+ left: 50%;
269
218
  }
270
219
 
271
- &__details-summary-icon {
220
+ &--shift {
221
+ margin-bottom: spacing.space($shift-overflow);
272
222
  }
273
223
 
274
- &__information,
275
- &--split &__information {
276
- width: auto;
277
- max-width: none;
278
-
279
- left: 0;
280
-
281
- border-bottom-left-radius: 0;
224
+ &--shift &__content-inner {
225
+ position: relative;
226
+ top: spacing.space($vertical-padding-large + $shift-overflow);
282
227
  }
283
228
 
284
- &__image {
285
- width: 100%;
286
-
287
- position: static;
229
+ &--over {
230
+ margin-bottom: spacing.space($over-overflow);
231
+ }
288
232
 
289
- order: 1;
233
+ &--over &__details {
234
+ max-width: gridVars.$largest-container-width;
235
+ margin: 0 auto;
290
236
 
291
- img {
292
- height: auto;
293
- }
237
+ position: relative;
294
238
  }
295
239
 
296
- &__inner {
297
- order: 3;
240
+ &--over &__details-summary {
241
+ top: spacing.space(0.5);
242
+ right: spacing.space(gridVars.$gutter-width + 0.5);
298
243
  }
299
244
 
300
- &__content {
301
- }
245
+ &--over &__information {
246
+ max-width: calc(50% - #{spacing.space(gridVars.$gutter-width)});
302
247
 
303
- &__content-inner {
304
- padding-right: 0;
305
- padding-left: 0;
248
+ box-sizing: border-box;
306
249
 
307
- border-left: none;
308
- }
250
+ top: 0;
251
+ right: spacing.space(gridVars.$gutter-width);
252
+ left: auto;
309
253
 
310
- &__heading {
254
+ @include borders.rounded-border;
311
255
  }
312
256
 
313
- &__body {
314
- margin-top: spacing.space(1);
257
+ &--over &__content {
258
+ width: 50%;
259
+ padding-top: spacing.space($vertical-padding-large);
315
260
  }
316
261
 
317
- &--shift {
262
+ &--over &__content-inner {
263
+ padding: 0;
318
264
  }
319
265
 
320
- &--split &__content {
321
- width: 100%;
322
- padding-right: grid.gutter-width-half();
323
- }
266
+ &--over &__image {
267
+ max-width: calc(
268
+ #{math.div(gridVars.$largest-container-width, 2)} -
269
+ #{grid.gutter-width()}
270
+ );
271
+ margin-right: 32px;
324
272
 
325
- &--shift &__content-inner {
326
- position: static;
273
+ overflow: hidden;
274
+
275
+ bottom: spacing.space($over-overflow * -1);
276
+
277
+ left: 50%;
278
+ z-index: 5;
279
+ @include borders.rounded-border;
327
280
  }
328
281
 
329
- &--split &__figure {
330
- min-height: auto;
331
- padding-top: 0;
332
- padding-bottom: 0;
282
+ &--split &__figure,
283
+ &--over &__figure {
284
+ justify-content: center;
333
285
  }
334
286
 
335
- &--split &__content-inner {
336
- padding-top: spacing.space(2);
337
- padding-bottom: spacing.space(2);
287
+ &--shift &__content-inner,
288
+ &--over &__image {
289
+ box-shadow:
290
+ 0 0.25rem 1rem -0.25rem rgb(0 0 0 / 25%),
291
+ 0 0.125rem 0.5rem -0.25rem rgb(0 0 0 / 75%);
338
292
  }
339
293
  }
340
294
  }
@@ -169,10 +169,10 @@
169
169
  "description": "An alternative layout of the hero component to use. This can be `shift` or `split`."
170
170
  },
171
171
  {
172
- "name": "narrow",
172
+ "name": "large",
173
173
  "type": "boolean",
174
174
  "required": false,
175
- "description": "If `true`, use a narrower style hero image.",
175
+ "description": "If `true`, use a taller hero.",
176
176
  "default": false
177
177
  },
178
178
  {
@@ -1,31 +1,34 @@
1
- {%- from "nationalarchives/components/button/macro.njk" import tnaButton -%}
1
+ {%- from "nationalarchives/components/button/macro.njk" import tnaButton -%}
2
2
 
3
3
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
4
+ {%- set backgroundClasses = [] -%}
4
5
  {%- if params.style == "contrast" -%}
5
- {%- set containerClasses = containerClasses.concat('tna-background-contrast') -%}
6
+ {%- set backgroundClasses = backgroundClasses.concat('tna-background-contrast') -%}
6
7
  {%- elseif params.style == "tint" -%}
7
- {%- set containerClasses = containerClasses.concat('tna-background-tint') -%}
8
+ {%- set backgroundClasses = backgroundClasses.concat('tna-background-tint') -%}
8
9
  {%- elseif params.style == "accent" -%}
9
- {%- set containerClasses = containerClasses.concat('tna-background-accent') -%}
10
+ {%- set backgroundClasses = backgroundClasses.concat('tna-background-accent') -%}
10
11
  {%- elseif params.style == "accent-light" -%}
11
- {%- set containerClasses = containerClasses.concat('tna-background-accent-light') -%}
12
+ {%- set backgroundClasses = backgroundClasses.concat('tna-background-accent-light') -%}
12
13
  {%- endif -%}
13
14
  {%- if params.layout == "shift" -%}
14
15
  {%- set containerClasses = containerClasses.concat('tna-hero--shift') -%}
15
16
  {%- elseif params.layout == "split" -%}
16
17
  {%- set containerClasses = containerClasses.concat('tna-hero--split') -%}
18
+ {%- elseif params.layout == "over" -%}
19
+ {%- set containerClasses = containerClasses.concat('tna-hero--over') -%}
17
20
  {%- endif -%}
18
- {%- if params.narrow -%}
19
- {%- set containerClasses = containerClasses.concat('tna-hero--narrow') -%}
21
+ {%- if params.large -%}
22
+ {%- set containerClasses = containerClasses.concat('tna-hero--large') -%}
20
23
  {%- endif -%}
21
24
  {% set hasContent = params.title or params.body or params.text %}
22
25
  {%- set classes = containerClasses | join(' ') -%}
23
- <{{ 'header' if hasContent else 'div' }} class="tna-hero{% if classes %} {{ classes }}{% endif %}" {%- for attribute, value in params.attributes %} {{ attribute }}{% if value !== '' %}="{{ value }}"{% endif %}{% endfor %}>
26
+ <{{ 'header' if hasContent else 'div' }} class="tna-hero{% if backgroundClasses %} {{ backgroundClasses | join(' ') }}{% endif %}{% if classes %} {{ classes }}{% endif %}" {%- for attribute, value in params.attributes %} {{ attribute }}{% if value !== '' %}="{{ value }}"{% endif %}{% endfor %}>
24
27
  <figure class="tna-hero__figure">
25
28
  {%- if hasContent %}
26
29
  <div class="tna-container tna-hero__inner">
27
- <div class="tna-column tna-column--width-2-3 tna-column--full-small tna-column--full-tiny tna-hero__content">
28
- <div class="tna-hero__content-inner">
30
+ <div class="tna-column tna-column--width-2-3 tna-column--width-5-6-medium tna-column--full-small tna-column--full-tiny tna-hero__content">
31
+ <div class="tna-hero__content-inner{% if backgroundClasses %} {{ backgroundClasses | join(' ') }}{% endif %}">
29
32
  {%- if params.title %}
30
33
  {%- if params.supertitle %}
31
34
  <hgroup class="tna-hgroup-{{ params.headingSize or 'xl' }} tna-hero__heading">
@@ -1 +1 @@
1
- .tna-index-grid__item{--background: var(--contrast-background);--font-base: var(--contrast-font-base);--font-dark: var(--contrast-font-dark);--font-light: var(--contrast-font-light);--icon-light: var(--contrast-icon-light);--link: var(--contrast-link);--link-visited: var(--contrast-link-visited);--keyline: var(--contrast-keyline);--keyline-dark: var(--contrast-keyline-dark);--button-text: var(--contrast-button-text);--button-background: var(--contrast-button-background);--button-hover-text: var(--contrast-button-hover-text);--button-hover-background: var(--contrast-button-hover-background);--accent-border: var(--accent-border-bright);background-color:var(--background, #f4f4f4);color:var(--font-base, #343338)}.tna-background-contrast .tna-index-grid__item{--background: var(--accent-background);--font-base: var(--accent-font-base);--font-dark: var(--accent-font-dark);--font-light: var(--accent-font-light);--icon-light: var(--accent-icon-light);--link: var(--accent-link);--link-visited: var(--accent-link);--keyline: var(--accent-keyline);--keyline-dark: var(--accent-keyline-dark);--accent-border: var(--accent-font-dark);--button-text: var(--accent-button-text);--button-background: var(--accent-button-background);--button-hover-text: var(--accent-button-hover-text);--button-hover-background: var(--accent-button-hover-background);background-color:var(--background, #f4f4f4);color:var(--font-base, #343338)}.tna-index-grid__item-image{background:linear-gradient(-45deg, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25));background-size:500% 500%;background-position:0 50%;animation:image-loader-background ease-in-out 1.2s infinite}@media(prefers-reduced-motion){.tna-index-grid__item-image{animation:none !important}}.tna-index-grid,.tna-index-grid__items{margin-top:2rem}.tna-index-grid:first-child,.tna-index-grid__items:first-child{margin-top:0}.tna-index-grid__items{margin-bottom:0;display:flex;gap:2rem 0;list-style:none}.tna-index-grid__item{height:100%;display:flex;flex-direction:column;position:relative;text-decoration:none;border-radius:2px}@media(forced-colors: active){.tna-index-grid__item{border:1px var(--keyline-dark, rgb(38, 38, 42)) solid}}@media(prefers-contrast: more){.tna-index-grid__item{border:1px var(--keyline-dark, rgb(38, 38, 42)) solid}}.tna-index-grid__item-image{width:100%;height:auto;pointer-events:none;border-radius:2px 2px 0 0}.tna-index-grid__item-content{padding:1rem;flex:1}.tna-index-grid__item-label{position:absolute;top:0.5rem;left:0.5rem}.tna-index-grid__item-title{font-weight:700;text-decoration:underline}.tna-index-grid__item:hover .tna-index-grid__item-title,.tna-index-grid__item:hover .tna-index-grid__item-title:link,.tna-index-grid__item:hover .tna-index-grid__item-title:visited{text-decoration:underline;text-decoration-thickness:0.25rem;text-underline-offset:.125em}.tna-index-grid__item-subtitle{color:var(--font-light, rgba(1, 1, 1, 0.58));font-size:1rem}/*# sourceMappingURL=index-grid.css.map */
1
+ .tna-index-grid__item{--background: var(--contrast-background);--font-base: var(--contrast-font-base);--font-dark: var(--contrast-font-dark);--font-light: var(--contrast-font-light);--icon-light: var(--contrast-icon-light);--link: var(--contrast-link);--link-visited: var(--contrast-link-visited);--keyline: var(--contrast-keyline);--keyline-dark: var(--contrast-keyline-dark);--button-text: var(--contrast-button-text);--button-background: var(--contrast-button-background);--button-hover-text: var(--contrast-button-hover-text);--button-hover-background: var(--contrast-button-hover-background);--accent-border: var(--accent-border-bright);background-color:var(--background, #f4f4f4);color:var(--font-base, #343338)}.tna-background-contrast .tna-index-grid__item{--background: var(--accent-background);--font-base: var(--accent-font-base);--font-dark: var(--accent-font-dark);--font-light: var(--accent-font-light);--icon-light: var(--accent-icon-light);--link: var(--accent-link);--link-visited: var(--accent-link);--keyline: var(--accent-keyline);--keyline-dark: var(--accent-keyline-dark);--accent-border: var(--accent-font-dark);--button-text: var(--accent-button-text);--button-background: var(--accent-button-background);--button-hover-text: var(--accent-button-hover-text);--button-hover-background: var(--accent-button-hover-background);background-color:var(--background, #f4f4f4);color:var(--font-base, #343338)}.tna-index-grid__item-image{background:linear-gradient(-45deg, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25));background-size:500% 500%;background-position:0 50%;animation:image-loader-background ease-in-out 1.2s infinite}@media(prefers-reduced-motion){.tna-index-grid__item-image{animation:none !important}}.tna-index-grid,.tna-index-grid__items{margin-top:2rem}.tna-index-grid:first-child,.tna-index-grid__items:first-child{margin-top:0}.tna-index-grid__items{margin-bottom:0;display:flex;gap:2rem 0;list-style:none}.tna-index-grid__item{height:100%;display:flex;flex-direction:column;position:relative;text-decoration:none;border-radius:2px}@media(forced-colors: active){.tna-index-grid__item{border:1px var(--keyline-dark, rgb(38, 38, 42)) solid}}@media(prefers-contrast: more){.tna-index-grid__item{border:1px var(--keyline-dark, rgb(38, 38, 42)) solid}}.tna-index-grid__item-image{width:100%;height:auto;border-radius:2px 2px 0 0;pointer-events:none}.tna-index-grid__item-content{padding:1rem;flex:1}.tna-index-grid__item-label{position:absolute;top:0.5rem;left:0.5rem}.tna-index-grid__item-title{font-weight:700;text-decoration:underline}.tna-index-grid__item:hover .tna-index-grid__item-title,.tna-index-grid__item:hover .tna-index-grid__item-title:link,.tna-index-grid__item:hover .tna-index-grid__item-title:visited{text-decoration:underline;text-decoration-thickness:0.25rem;text-underline-offset:.125em}.tna-index-grid__item-subtitle{color:var(--font-light, rgba(1, 1, 1, 0.58));font-size:1rem}/*# sourceMappingURL=index-grid.css.map */
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../../../src/nationalarchives/tools/_colour.scss","../../../../src/nationalarchives/tools/_spacing.scss","../../../../src/nationalarchives/components/index-grid/index-grid.scss","../../../../src/nationalarchives/tools/_borders.scss","../../../../src/nationalarchives/variables/_borders.scss","../../../../src/nationalarchives/tools/_typography.scss","../../../../src/nationalarchives/variables/_typography.scss"],"names":[],"mappings":"AA8OA,sBACE,yCACA,uCACA,uCACA,yCACA,yCACA,6BACA,6CACA,mCACA,6CACA,2CACA,uDACA,uDACA,mEACA,6CA3KA,4CAJA,gCA6OF,+CACE,uCACA,qCACA,qCACA,uCACA,uCACA,2BACA,mCACA,iCACA,2CACA,yCACA,yCACA,qDACA,qDACA,iEAvPA,4CAJA,gCAwcF,4BACE,wGAMA,0BACA,0BAEA,4DAEA,+BAZF,4BAaI,2BCxgBJ,uCACE,gBAUA,+DACE,aCxBF,uBAGE,gBAEA,aACA,WAEA,gBAGF,sBAGE,YAEA,aACA,sBAEA,kBAEA,qBChCF,cCDsB,IJogBtB,8BE7eA,sBFoFI,uDAmZJ,+BEveA,sBFoFI,uDE7DJ,4BACE,WACA,YAIA,oBAEA,0BAIF,8BACE,aAEA,OAGF,4BACE,kBACA,WACA,YAGF,4BGjDA,YCiBsB,IJkCpB,0BAGE,qLGVJ,0BACA,0BCpCsC,QDqCtC,sBCvCoC,OJuDpC,+BFRA,6CKvEA","file":"index-grid.css","sourcesContent":["@use \"sass:list\";\n@use \"sass:map\";\n@use \"sass:meta\";\n@use \"../variables/borders\";\n@use \"../variables/forms\";\n@use \"../variables/colour\";\n@use \"../variables/features\";\n@use \"../tools/media\";\n\n$base-colours: (\n \"background\",\n \"font-base\",\n \"font-dark\",\n \"font-light\",\n \"icon-light\",\n \"link\",\n \"link-visited\",\n \"keyline\",\n \"keyline-dark\"\n);\n\n@function brand-colour($colour, $opacity: 1) {\n @return colour.brand-colour($colour, $opacity);\n}\n\n@mixin colour-css-vars($excludes...) {\n @each $name, $value in colour.$colour-palette-default {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n @if list.index($base-colours, $name) {\n --base-#{$name}: #{$value};\n }\n }\n }\n}\n\n@mixin colour-css-vars-dark($excludes...) {\n @each $name, $value in colour.$colour-palette-dark {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n @if list.index($base-colours, $name) {\n --base-#{$name}: #{$value};\n }\n }\n }\n}\n\n@mixin colour-css-vars-high-contrast($excludes...) {\n @each $name, $value in colour.$colour-palette-high-contrast {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n @if list.index($base-colours, $name) {\n --base-#{$name}: #{$value};\n }\n }\n }\n}\n\n@mixin colour-css-vars-high-contrast-dark($excludes...) {\n @each $name, $value in colour.$colour-palette-high-contrast-dark {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n @if list.index((\"keyline\", \"keyline-dark\"), $name) {\n --base-#{$name}: #{$value};\n }\n }\n }\n}\n\n@function colour-var($colour) {\n @return var(\n --#{$colour},\n #{map.get(colour.$colour-palette-default, $colour)}\n );\n}\n\n@mixin colour-font($colour, $important: false) {\n color: colour-var($colour) if(sass($important): !important; else: null);\n}\n\n@mixin colour-background($colour, $important: false) {\n background-color: colour-var($colour)\n if(sass($important): !important; else: null);\n}\n\n@mixin colour-background-brand($brandColour, $important: false) {\n background-color: #{brand-colour($brandColour)}\n if(sass($important): !important; else: null);\n}\n\n@mixin colour-border(\n $colour,\n $width: \"\",\n $style: solid,\n $direction: \"\",\n $important: false\n) {\n @if $direction != \"\" {\n @if $width != \"\" {\n border-#{$direction}: $width\n colour-var($colour)\n $style\n if(sass($important): !important; else: null);\n } @else {\n border-#{$direction}-color: colour-var($colour)\n if(sass($important): !important; else: null);\n }\n } @else {\n @if $width != \"\" {\n border: $width\n colour-var($colour)\n $style\n if(sass($important): !important; else: null);\n } @else {\n border-color: var(\n --#{$colour},\n #{map.get(colour.$colour-palette-default, $colour)}\n )\n if(sass($important): !important; else: null);\n }\n }\n}\n\n@mixin colour-outline($colour, $width: \"\", $style: solid, $important: false) {\n @if $width != \"\" {\n outline: $width\n colour-var($colour)\n $style\n if(sass($important): !important; else: null);\n } @else {\n outline-color: colour-var($colour)\n if(sass($important): !important; else: null);\n }\n}\n\n@mixin colour-fill($colour, $important: false) {\n fill: colour-var($colour) if(sass($important): !important; else: null);\n}\n\n%colour-input {\n @include colour-font(\"input-foreground\");\n @include colour-background(\"input-background\");\n @include colour-border(\"input-border\", forms.$form-field-border-width);\n}\n\n@mixin colour-input() {\n @extend %colour-input;\n}\n\n@mixin thick-keyline($direction: \"\", $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n @include colour-border(\"keyline\", $border-width, solid, $direction);\n } @else {\n @include colour-border(\"keyline\", $border-width, solid);\n }\n}\n\n@mixin thick-keyline-dark($direction: \"\", $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n @include colour-border(\"keyline-dark\", $border-width, solid, $direction);\n } @else {\n @include colour-border(\"keyline-dark\", $border-width, solid);\n }\n}\n\n@mixin thick-keyline-accent($direction: \"\", $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n @include colour-border(\"accent-border\", $border-width, solid, $direction);\n } @else {\n @include colour-border(\"accent-border\", $border-width, solid);\n }\n}\n\n@mixin thick-keyline-error($direction: \"\", $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n @include colour-border(\n \"form-error-border\",\n $border-width,\n solid,\n $direction\n );\n } @else {\n @include colour-border(\"form-error-border\", $border-width, solid);\n }\n}\n\n@mixin thick-keyline-brand($direction: \"\", $brandColour, $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n border-#{$direction}: $border-width #{brand-colour($brandColour)} solid;\n } @else {\n border: $border-width #{brand-colour($brandColour)} solid;\n }\n}\n\n@mixin thick-keyline-transparent($direction: \"\", $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n border-#{$direction}: $border-width transparent solid;\n } @else {\n border: $border-width transparent solid;\n }\n}\n\n%always-light {\n @include colour-css-vars;\n\n @media (prefers-contrast: more) {\n @include colour-css-vars-high-contrast;\n }\n}\n\n@mixin always-light {\n @extend %always-light;\n}\n\n%contrast {\n --background: var(--contrast-background);\n --font-base: var(--contrast-font-base);\n --font-dark: var(--contrast-font-dark);\n --font-light: var(--contrast-font-light);\n --icon-light: var(--contrast-icon-light);\n --link: var(--contrast-link);\n --link-visited: var(--contrast-link-visited);\n --keyline: var(--contrast-keyline);\n --keyline-dark: var(--contrast-keyline-dark);\n --button-text: var(--contrast-button-text);\n --button-background: var(--contrast-button-background);\n --button-hover-text: var(--contrast-button-hover-text);\n --button-hover-background: var(--contrast-button-hover-background);\n --accent-border: var(--accent-border-bright);\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n}\n\n@mixin contrast {\n @extend %contrast;\n}\n\n%contrast-on-mobile {\n @include media.on-mobile {\n --background: var(--contrast-background);\n --font-base: var(--contrast-font-base);\n --font-dark: var(--contrast-font-dark);\n --font-light: var(--contrast-font-light);\n --icon-light: var(--contrast-icon-light);\n --link: var(--contrast-link);\n --link-visited: var(--contrast-link-visited);\n --keyline: var(--contrast-keyline);\n --keyline-dark: var(--contrast-keyline-dark);\n --button-text: var(--contrast-button-text);\n --button-background: var(--contrast-button-background);\n --button-hover-text: var(--contrast-button-hover-text);\n --button-hover-background: var(--contrast-button-hover-background);\n --accent-border: var(--accent-border-bright);\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n }\n}\n\n@mixin contrast-on-mobile {\n @extend %contrast-on-mobile;\n}\n\n%base {\n @each $name, $value in $base-colours {\n --#{$name}: var(--base-#{$value});\n }\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n}\n\n@mixin base {\n @extend %base;\n}\n\n%tint {\n --background: var(--background-tint);\n\n @include colour-background(\"background\");\n}\n\n@mixin tint {\n @extend %tint;\n}\n\n%accent {\n --background: var(--accent-background);\n --font-base: var(--accent-font-base);\n --font-dark: var(--accent-font-dark);\n --font-light: var(--accent-font-light);\n --icon-light: var(--accent-icon-light);\n --link: var(--accent-link);\n --link-visited: var(--accent-link);\n --keyline: var(--accent-keyline);\n --keyline-dark: var(--accent-keyline-dark);\n --accent-border: var(--accent-font-dark);\n --button-text: var(--accent-button-text);\n --button-background: var(--accent-button-background);\n --button-hover-text: var(--accent-button-hover-text);\n --button-hover-background: var(--accent-button-hover-background);\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n}\n\n@mixin accent {\n @extend %accent;\n}\n\n%accent-light {\n --background: var(--accent-background-light);\n --font-base: #{map.get(colour.$colour-palette-default, \"font-base\")};\n --font-dark: #{map.get(colour.$colour-palette-default, \"font-dark\")};\n --font-light: #{map.get(colour.$colour-palette-default, \"font-light\")};\n --icon-light: #{map.get(colour.$colour-palette-default, \"icon-light\")};\n --keyline: #{map.get(colour.$colour-palette-default, \"keyline\")};\n --keyline-dark: #{map.get(colour.$colour-palette-default, \"keyline-dark\")};\n --button-text: #{map.get(colour.$colour-palette-default, \"button-text\")};\n --button-background: #{map.get(\n colour.$colour-palette-default,\n \"button-background\"\n )};\n --button-hover-text: #{map.get(\n colour.$colour-palette-default,\n \"button-hover-text\"\n )};\n --button-hover-background: #{map.get(\n colour.$colour-palette-default,\n \"button-hover-background\"\n )};\n --accent-border: var(--accent-background);\n\n @include colour-background(\"background\");\n @include colour-font(\"font-base\");\n\n .tna-template--system-theme & {\n @media (prefers-color-scheme: dark) {\n // --link: #{map.get(colour.$colour-palette-default, \"link\")};\n // --link-visited: #{map.get(colour.$colour-palette-default, \"link-visited\")};\n\n --background: var(--accent-background);\n --font-base: var(--accent-font-base);\n --font-dark: var(--accent-font-dark);\n --font-light: var(--accent-font-light);\n --icon-light: var(--accent-icon-light);\n --link: var(--accent-link);\n --link-visited: var(--accent-link);\n --keyline: var(--accent-keyline);\n --keyline-dark: var(--accent-keyline-dark);\n --accent-border: var(--accent-font-dark);\n --button-text: var(--accent-button-text);\n --button-background: var(--accent-button-background);\n --button-hover-text: var(--accent-button-hover-text);\n --button-hover-background: var(--accent-button-hover-background);\n }\n }\n\n .tna-template--dark-theme & {\n // --link: #{map.get(colour.$colour-palette-default, \"link\")};\n // --link-visited: #{map.get(colour.$colour-palette-default, \"link-visited\")};\n\n --background: var(--accent-background);\n --font-base: var(--accent-font-base);\n --font-dark: var(--accent-font-dark);\n --font-light: var(--accent-font-light);\n --icon-light: var(--accent-icon-light);\n --link: var(--accent-link);\n --link-visited: var(--accent-link);\n --keyline: var(--accent-keyline);\n --keyline-dark: var(--accent-keyline-dark);\n --accent-border: var(--accent-font-dark);\n --button-text: var(--accent-button-text);\n --button-background: var(--accent-button-background);\n --button-hover-text: var(--accent-button-hover-text);\n --button-hover-background: var(--accent-button-hover-background);\n }\n}\n\n@mixin accent-light {\n @extend %accent-light;\n}\n\n%yellow-accent {\n --accent-background: #{colour.brand-colour(\"yellow\")} !important;\n --accent-background-light: #{colour.brand-colour(\"cream\")} !important;\n --accent-border: #{colour.brand-colour(\"yellow\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"yellow\")} !important;\n --accent-font-base: #{colour.brand-colour(\"black\")} !important;\n --accent-font-dark: #{colour.brand-colour(\"black\")} !important;\n --accent-font-light: #{colour.brand-colour(\"black\", 0.7)} !important;\n --accent-icon-light: #{colour.brand-colour(\"black\", 0.7)} !important;\n --accent-link: #{colour.brand-colour(\"black\")} !important;\n --accent-link-visited: #{colour.brand-colour(\"black\")} !important;\n --accent-keyline: #{colour.brand-colour(\"black\", 0.5)} !important;\n --accent-keyline-dark: #{colour.brand-colour(\"black\", 0.8)} !important;\n --button-accented-text: #{colour.brand-colour(\"black\")} !important;\n --button-accented-background: #{colour.brand-colour(\"yellow\")} !important;\n}\n\n@mixin yellow-accent {\n @extend %yellow-accent;\n}\n\n%accent-lighter-text {\n --accent-font-base: #{colour.brand-colour(\"white\")} !important;\n --accent-font-dark: #{colour.brand-colour(\"white\")} !important;\n --accent-font-light: #{colour.brand-colour(\"white\", 0.7)} !important;\n --accent-icon-light: #{colour.brand-colour(\"white\", 0.7)} !important;\n --accent-link: #{colour.brand-colour(\"white\")} !important;\n --accent-link-visited: #{colour.brand-colour(\"white\")} !important;\n --accent-keyline: #{colour.brand-colour(\"white\", 0.5)} !important;\n --accent-keyline-dark: #{colour.brand-colour(\"white\", 0.8)} !important;\n --button-accented-text: #{colour.brand-colour(\"white\")} !important;\n}\n\n%black-accent {\n --accent-background: #{colour.brand-colour(\"black\")} !important;\n --accent-background-light: #{colour.brand-colour(\"light-grey\")} !important;\n --accent-border: #{colour.brand-colour(\"black\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"grey\")} !important;\n --button-accented-text: #{colour.brand-colour(\"black\")} !important;\n --button-accented-background: #{colour.brand-colour(\"grey\")} !important;\n}\n\n@mixin black-accent {\n @extend %accent-lighter-text;\n @extend %black-accent;\n}\n\n%pink-accent {\n --accent-background: #{colour.brand-colour(\"maroon\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-pink\")} !important;\n --accent-border: #{colour.brand-colour(\"maroon\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"pink\")} !important;\n --button-accented-background: #{colour.brand-colour(\"maroon\")} !important;\n}\n\n@mixin pink-accent {\n @extend %accent-lighter-text;\n @extend %pink-accent;\n}\n\n%orange-accent {\n --accent-background: #{colour.brand-colour(\"chestnut\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-orange\")} !important;\n --accent-border: #{colour.brand-colour(\"chestnut\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"orange\")} !important;\n --button-accented-background: #{colour.brand-colour(\"chestnut\")} !important;\n}\n\n@mixin orange-accent {\n @extend %accent-lighter-text;\n @extend %orange-accent;\n}\n\n%green-accent {\n --accent-background: #{colour.brand-colour(\"forest\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-green\")} !important;\n --accent-border: #{colour.brand-colour(\"forest\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"green\")} !important;\n --button-accented-background: #{colour.brand-colour(\"forest\")} !important;\n}\n\n@mixin green-accent {\n @extend %accent-lighter-text;\n @extend %green-accent;\n}\n\n%blue-accent {\n --accent-background: #{colour.brand-colour(\"navy\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-blue\")} !important;\n --accent-border: #{colour.brand-colour(\"navy\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"blue\")} !important;\n --button-accented-background: #{colour.brand-colour(\"navy\")} !important;\n}\n\n@mixin blue-accent {\n @extend %accent-lighter-text;\n @extend %blue-accent;\n}\n\n@mixin on-high-contrast {\n @media (prefers-contrast: more) {\n @content;\n }\n}\n\n@mixin on-forced-colours {\n @media (forced-colors: active) {\n @content;\n }\n}\n\n@mixin on-high-contrast-and-forced-colours {\n @include on-forced-colours {\n @content;\n }\n\n @include on-high-contrast {\n @content;\n }\n}\n\n%image-loader-background {\n background: linear-gradient(\n -45deg,\n rgb(0 0 0 / 25%),\n rgb(255 255 255 / 25%),\n rgb(0 0 0 / 25%)\n );\n background-size: 500% 500%;\n background-position: 0 50%;\n\n animation: image-loader-background ease-in-out 1.2s infinite;\n\n @media (prefers-reduced-motion) {\n animation: none !important;\n }\n}\n\n@mixin image-loader-background {\n @if features.$image-loader-animations {\n @extend %image-loader-background;\n }\n}\n","@use \"sass:map\";\n@use \"sass:math\";\n@use \"../variables/spacing\";\n@use \"../variables/typography\";\n@use \"../tools/media\";\n\n/*\n * ------------------------------------------\n * Spacing is created with rem rather than px\n * units as when users use a custom font size\n * some browsers handle the resize of rem and\n * em separately from px which causes spacing\n * and layout issues, so to ensure everything\n * remaians consistent we use rem for spacing\n * and typography. The original intention was\n * separation so that we could scale the type\n * without affecting spacing, but in practice\n * there are too many ways to change the font\n * size in various browsers and devices\n * ------------------------------------------\n */\n@function space($size) {\n // @return #{$size * spacing.$spacing-unit-px}px;\n @return #{$size}rem;\n}\n\n%space-above {\n margin-top: space(2);\n @extend %no-space-above-for-first-children;\n}\n\n%space-only-above {\n margin: #{space(2)} 0 0;\n @extend %no-space-above-for-first-children;\n}\n\n%no-space-above-for-first-children {\n &:first-child {\n margin-top: 0;\n }\n}\n\n@mixin space-above($zero-other-margins: false) {\n @if $zero-other-margins {\n @extend %space-only-above;\n } @else {\n @extend %space-above;\n }\n}\n\n@mixin no-spacing-generator($suffix: \"\") {\n @if $suffix != \"\" {\n $suffix: \"-\" + $suffix;\n }\n @each $property in margin, padding {\n @each $direction in top, bottom {\n $combined-direction: \"\";\n @if $direction == top or $direction == bottom {\n $combined-direction: vertical;\n } @else if $direction == right or $direction == left {\n $combined-direction: horizontal;\n }\n @if $combined-direction {\n .tna-\\!--no-#{$property}-#{$direction}#{$suffix},\n .tna-\\!--no-#{$property}-#{$combined-direction}#{$suffix} {\n #{$property}-#{$direction}: 0 !important;\n }\n } @else {\n .tna-\\!--no-#{$property}-#{$direction}#{$suffix} {\n #{$property}-#{$direction}: 0 !important;\n }\n }\n }\n }\n}\n\n@mixin spacing-generator($suffix: \"\") {\n @each $property in margin, padding {\n @each $direction in top, bottom {\n @each $size, $amount in spacing.$spacing {\n @if $direction == all {\n .tna-\\!--#{$property}-#{$size} {\n #{$property}: #{space($amount)} !important;\n }\n } @else {\n $combined-direction: \"\";\n @if $direction == top or $direction == bottom {\n $combined-direction: vertical;\n } @else if $direction == right or $direction == left {\n $combined-direction: horizontal;\n }\n @if $combined-direction {\n .tna-\\!--#{$property}-#{$direction}-#{$size},\n .tna-\\!--#{$property}-#{$combined-direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n } @else {\n .tna-\\!--#{$property}-#{$direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n }\n }\n }\n }\n }\n\n @include media.on-mobile {\n @each $property in margin, padding {\n @each $direction in top, bottom {\n @each $size, $amount in spacing.$spacing-mobile {\n @if $direction == all {\n .tna-\\!--#{$property}-#{$size} {\n #{$property}: #{space($amount)} !important;\n }\n } @else {\n $combined-direction: \"\";\n @if $direction == top or $direction == bottom {\n $combined-direction: vertical;\n } @else if $direction == right or $direction == left {\n $combined-direction: horizontal;\n }\n @if $combined-direction {\n .tna-\\!--#{$property}-#{$direction}-#{$size},\n .tna-\\!--#{$property}-#{$combined-direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n } @else {\n .tna-\\!--#{$property}-#{$direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n }\n }\n }\n }\n }\n }\n}\n","@use \"sass:math\";\n@use \"../../variables/borders\" as bordersVars;\n@use \"../../tools/borders\";\n@use \"../../tools/colour\";\n@use \"../../tools/media\";\n@use \"../../tools/spacing\";\n@use \"../../tools/typography\";\n\n.tna-index-grid {\n @include spacing.space-above;\n\n &__heading {\n }\n\n &__items {\n @include spacing.space-above;\n\n margin-bottom: 0;\n\n display: flex;\n gap: spacing.space(2) 0;\n\n list-style: none;\n }\n\n &__item {\n @include colour.contrast;\n\n height: 100%;\n\n display: flex;\n flex-direction: column;\n\n position: relative;\n\n text-decoration: none;\n\n @include borders.rounded-border;\n\n .tna-background-contrast & {\n @include colour.accent;\n }\n\n @include colour.on-high-contrast-and-forced-colours {\n @include colour.colour-border(\"keyline-dark\", 1px);\n }\n }\n\n &__item-image {\n width: 100%;\n height: auto;\n\n @include colour.image-loader-background;\n\n pointer-events: none;\n\n border-radius: bordersVars.$rounded-border-radius\n bordersVars.$rounded-border-radius 0 0;\n }\n\n &__item-content {\n padding: spacing.space(1);\n\n flex: 1;\n }\n\n &__item-label {\n position: absolute;\n top: spacing.space(0.5);\n left: spacing.space(0.5);\n }\n\n &__item-title {\n @include typography.main-font-weight-bold;\n text-decoration: underline;\n\n .tna-index-grid__item:hover & {\n &,\n &:link,\n &:visited {\n @include typography.interacted-text-decoration;\n }\n }\n }\n\n &__item-subtitle {\n @include colour.colour-font(\"font-light\");\n @include typography.font-size(16);\n }\n}\n","@use \"../variables/borders\";\n\n@mixin rounded-border {\n border-radius: borders.$rounded-border-radius;\n}\n","$thick-border-width: 5px !default;\n$very-thick-border-width: 8px !default;\n$rounded-border-radius: 2px !default;\n","@use \"sass:math\";\n@use \"../variables/typography\";\n@use \"colour\";\n@use \"media\";\n\n@mixin font-size($font-size-px) {\n font-size: #{math.div($font-size-px, typography.$relative-1rem-px)}rem;\n}\n\n@mixin relative-font-size($font-size-px) {\n @warn \"relative-font-size() will soon be deprecated in favour of font-size().\";\n @include font-size($font-size-px);\n}\n\n@mixin main-font-weight {\n font-weight: typography.$main-font-weight;\n}\n\n@mixin main-font-weight-medium {\n font-weight: typography.$main-font-weight-medium;\n}\n\n@mixin main-font-weight-bold {\n font-weight: typography.$main-font-weight-bold;\n}\n\n@mixin main-font($bold: false) {\n font-family: typography.$main-font-family;\n font-style: normal;\n font-optical-sizing: auto;\n font-variation-settings: \"wdth\" 100;\n @if $bold {\n @include main-font-weight-bold;\n } @else {\n @include main-font-weight;\n }\n}\n\n@mixin heading-font {\n font-family: typography.$heading-font-family;\n font-weight: typography.$heading-font-weight;\n}\n\n@mixin detail-font($bold: false) {\n font-family: typography.$detail-font-family;\n font-style: normal;\n font-optical-sizing: auto;\n @if $bold {\n font-weight: typography.$detail-font-weight-bold;\n } @else {\n font-weight: typography.$detail-font-weight;\n }\n}\n\n@mixin detail-font-small {\n @include detail-font;\n @include font-size(14);\n line-height: 1.1;\n text-transform: uppercase;\n}\n\n@mixin interactable-text-decoration {\n text-decoration-thickness: typography.$interactable-text-decoration-thickness;\n text-underline-offset: typography.$interactable-text-decoration-offset;\n}\n\n@mixin interacted-text-decoration {\n text-decoration: underline;\n text-decoration-thickness: typography.$interactive-text-decoration-thickness;\n text-underline-offset: typography.$interactable-text-decoration-offset;\n}\n\n@mixin heading-generator(\n $font-size-default,\n $font-size-medium,\n $font-size-small,\n $font-size-tiny,\n $line-height\n) {\n $small-and-tiny-identical: $font-size-small == $font-size-tiny;\n $medium-small-and-tiny-identical: $font-size-medium == $font-size-small and\n $small-and-tiny-identical;\n $all-identical: $font-size-default == $font-size-medium and\n $medium-small-and-tiny-identical and $small-and-tiny-identical;\n line-height: $line-height;\n @include font-size($font-size-default);\n\n @if $all-identical != true {\n @if $medium-small-and-tiny-identical != true {\n @include media.on-medium {\n @include font-size($font-size-medium);\n }\n\n @if $small-and-tiny-identical != true {\n @include media.on-small {\n @include font-size($font-size-small);\n }\n\n @include media.on-tiny {\n @include font-size($font-size-tiny);\n }\n } @else {\n @include media.on-mobile {\n @include font-size($font-size-small);\n }\n }\n } @else {\n @include media.on-smaller-than-large {\n @include font-size($font-size-medium);\n }\n }\n }\n}\n","@use \"sass:math\";\n\n/*\n * ------------------------------------------\n * The typefaces, sizes and spacings that are\n * defined in this file have been selected to\n * ensure 100% match with the latest National\n * Archives brand guidelines - avoid changing\n * or overwriting any of these values without\n * signing off with the Digital Services team\n * first\n * ------------------------------------------\n */\n\n$relative-1rem-px: 16; // 16px = 1rem\n\n/*\n * ------------------------------------------\n * When true, use the included font files for\n * Open Sans and Roboto Mono, rather than the\n * versions hosted by Google Fonts\n * ------------------------------------------\n */\n$use-local-fonts: false !default;\n\n$body-font-size-px: 19 !default;\n$body-font-size-px-medium: 18 !default;\n$body-font-size-px-mobile: 17 !default;\n$body-line-height: 1.75 !default;\n\n$interactable-text-decoration-offset: 0.125em !default;\n$interactable-text-decoration-thickness: #{math.div(1.5, $relative-1rem-px)}rem !default;\n$interactive-text-decoration-thickness: #{math.div(4, $relative-1rem-px)}rem !default;\n\n$main-font-family-name: \"Open Sans\" !default;\n$main-font-family:\n #{$main-font-family-name},\n sans-serif;\n$main-font-weight: 400 !default;\n$main-font-weight-medium: 600 !default;\n$main-font-weight-bold: 700 !default;\n$main-font-file: \"OpenSans-Regular.ttf\" !default;\n$main-font-file-medium: \"OpenSans-SemiBold.ttf\" !default;\n$main-font-file-bold: \"OpenSans-Bold.ttf\" !default;\n\n/*\n * ------------------------------------------\n * To use Supria Sans Condensed (which is the\n * approved heading typeface for The National\n * Archives), you need to obtain a licence to\n * properly embed the CSS files with the font\n * definitions in your service - check with a\n * member of the Digital Services team on how\n * to get a licence\n * ------------------------------------------\n */\n$heading-font-family-name: \"supria-sans-condensed\" !default;\n$heading-font-family:\n #{$heading-font-family-name},\n \"Arial Narrow\",\n sans-serif;\n$heading-font-weight: 500 !default;\n\n/*\n * ------------------------------------------\n * The detail font should be a monospace font\n * and is used for chips, supertitles as well\n * as the date search component\n * ------------------------------------------\n */\n$detail-font-family-name: \"Roboto Mono\" !default;\n$detail-font-family:\n #{$detail-font-family-name},\n monospace;\n$detail-font-weight: 400 !default;\n$detail-font-weight-bold: 500 !default;\n$detail-font-file: \"RobotoMono-Regular.ttf\" !default;\n$detail-font-file-bold: \"RobotoMono-Medium.ttf\" !default;\n\n$heading-xl-font-size-default: 64 !default;\n$heading-xl-font-size-medium: 48 !default;\n$heading-xl-font-size-small: 36 !default;\n$heading-xl-font-size-tiny: $heading-xl-font-size-small !default;\n$heading-xl-line-height: 1.1 !default;\n\n$heading-l-font-size-default: 36 !default;\n$heading-l-font-size-medium: 32 !default;\n$heading-l-font-size-small: 29 !default;\n$heading-l-font-size-tiny: $heading-l-font-size-small !default;\n$heading-l-line-height: 1.15 !default;\n\n$heading-m-font-size-default: 22 !default;\n$heading-m-font-size-medium: $heading-m-font-size-default !default;\n$heading-m-font-size-small: 21 !default;\n$heading-m-font-size-tiny: $heading-m-font-size-small !default;\n$heading-m-line-height: 1.4 !default;\n\n$heading-s-font-size-default: 19 !default;\n$heading-s-font-size-medium: $heading-s-font-size-default !default;\n$heading-s-font-size-small: $heading-s-font-size-default !default;\n$heading-s-font-size-tiny: $heading-s-font-size-default !default;\n$heading-s-line-height: 1.5 !default;\n\n$code-font-family: Consolas, Monaco, \"Ubuntu Mono\", monospace !default;\n"]}
1
+ {"version":3,"sourceRoot":"","sources":["../../../../src/nationalarchives/tools/_colour.scss","../../../../src/nationalarchives/tools/_spacing.scss","../../../../src/nationalarchives/components/index-grid/index-grid.scss","../../../../src/nationalarchives/tools/_borders.scss","../../../../src/nationalarchives/variables/_borders.scss","../../../../src/nationalarchives/tools/_typography.scss","../../../../src/nationalarchives/variables/_typography.scss"],"names":[],"mappings":"AA8OA,sBACE,yCACA,uCACA,uCACA,yCACA,yCACA,6BACA,6CACA,mCACA,6CACA,2CACA,uDACA,uDACA,mEACA,6CA3KA,4CAJA,gCA6OF,+CACE,uCACA,qCACA,qCACA,uCACA,uCACA,2BACA,mCACA,iCACA,2CACA,yCACA,yCACA,qDACA,qDACA,iEAvPA,4CAJA,gCAwcF,4BACE,wGAMA,0BACA,0BAEA,4DAEA,+BAZF,4BAaI,2BCxgBJ,uCACE,gBAUA,+DACE,aCxBF,uBAGE,gBAEA,aACA,WAEA,gBAGF,sBAGE,YAEA,aACA,sBAEA,kBAEA,qBChCF,cCDsB,IJogBtB,8BE7eA,sBFoFI,uDAmZJ,+BEveA,sBFoFI,uDE7DJ,4BACE,WACA,YAEA,0BAGA,oBAKF,8BACE,aAEA,OAGF,4BACE,kBACA,WACA,YAGF,4BGjDA,YCiBsB,IJkCpB,0BAGE,qLGVJ,0BACA,0BCpCsC,QDqCtC,sBCvCoC,OJuDpC,+BFRA,6CKvEA","file":"index-grid.css","sourcesContent":["@use \"sass:list\";\n@use \"sass:map\";\n@use \"sass:meta\";\n@use \"../variables/borders\";\n@use \"../variables/forms\";\n@use \"../variables/colour\";\n@use \"../variables/features\";\n@use \"../tools/media\";\n\n$base-colours: (\n \"background\",\n \"font-base\",\n \"font-dark\",\n \"font-light\",\n \"icon-light\",\n \"link\",\n \"link-visited\",\n \"keyline\",\n \"keyline-dark\"\n);\n\n@function brand-colour($colour, $opacity: 1) {\n @return colour.brand-colour($colour, $opacity);\n}\n\n@mixin colour-css-vars($excludes...) {\n @each $name, $value in colour.$colour-palette-default {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n @if list.index($base-colours, $name) {\n --base-#{$name}: #{$value};\n }\n }\n }\n}\n\n@mixin colour-css-vars-dark($excludes...) {\n @each $name, $value in colour.$colour-palette-dark {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n @if list.index($base-colours, $name) {\n --base-#{$name}: #{$value};\n }\n }\n }\n}\n\n@mixin colour-css-vars-high-contrast($excludes...) {\n @each $name, $value in colour.$colour-palette-high-contrast {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n @if list.index($base-colours, $name) {\n --base-#{$name}: #{$value};\n }\n }\n }\n}\n\n@mixin colour-css-vars-high-contrast-dark($excludes...) {\n @each $name, $value in colour.$colour-palette-high-contrast-dark {\n @if not list.index($excludes, $name) {\n --#{$name}: #{$value};\n @if list.index((\"keyline\", \"keyline-dark\"), $name) {\n --base-#{$name}: #{$value};\n }\n }\n }\n}\n\n@function colour-var($colour) {\n @return var(\n --#{$colour},\n #{map.get(colour.$colour-palette-default, $colour)}\n );\n}\n\n@mixin colour-font($colour, $important: false) {\n color: colour-var($colour) if(sass($important): !important; else: null);\n}\n\n@mixin colour-background($colour, $important: false) {\n background-color: colour-var($colour)\n if(sass($important): !important; else: null);\n}\n\n@mixin colour-background-brand($brandColour, $important: false) {\n background-color: #{brand-colour($brandColour)}\n if(sass($important): !important; else: null);\n}\n\n@mixin colour-border(\n $colour,\n $width: \"\",\n $style: solid,\n $direction: \"\",\n $important: false\n) {\n @if $direction != \"\" {\n @if $width != \"\" {\n border-#{$direction}: $width\n colour-var($colour)\n $style\n if(sass($important): !important; else: null);\n } @else {\n border-#{$direction}-color: colour-var($colour)\n if(sass($important): !important; else: null);\n }\n } @else {\n @if $width != \"\" {\n border: $width\n colour-var($colour)\n $style\n if(sass($important): !important; else: null);\n } @else {\n border-color: var(\n --#{$colour},\n #{map.get(colour.$colour-palette-default, $colour)}\n )\n if(sass($important): !important; else: null);\n }\n }\n}\n\n@mixin colour-outline($colour, $width: \"\", $style: solid, $important: false) {\n @if $width != \"\" {\n outline: $width\n colour-var($colour)\n $style\n if(sass($important): !important; else: null);\n } @else {\n outline-color: colour-var($colour)\n if(sass($important): !important; else: null);\n }\n}\n\n@mixin colour-fill($colour, $important: false) {\n fill: colour-var($colour) if(sass($important): !important; else: null);\n}\n\n%colour-input {\n @include colour-font(\"input-foreground\");\n @include colour-background(\"input-background\");\n @include colour-border(\"input-border\", forms.$form-field-border-width);\n}\n\n@mixin colour-input() {\n @extend %colour-input;\n}\n\n@mixin thick-keyline($direction: \"\", $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n @include colour-border(\"keyline\", $border-width, solid, $direction);\n } @else {\n @include colour-border(\"keyline\", $border-width, solid);\n }\n}\n\n@mixin thick-keyline-dark($direction: \"\", $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n @include colour-border(\"keyline-dark\", $border-width, solid, $direction);\n } @else {\n @include colour-border(\"keyline-dark\", $border-width, solid);\n }\n}\n\n@mixin thick-keyline-accent($direction: \"\", $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n @include colour-border(\"accent-border\", $border-width, solid, $direction);\n } @else {\n @include colour-border(\"accent-border\", $border-width, solid);\n }\n}\n\n@mixin thick-keyline-error($direction: \"\", $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n @include colour-border(\n \"form-error-border\",\n $border-width,\n solid,\n $direction\n );\n } @else {\n @include colour-border(\"form-error-border\", $border-width, solid);\n }\n}\n\n@mixin thick-keyline-brand($direction: \"\", $brandColour, $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n border-#{$direction}: $border-width #{brand-colour($brandColour)} solid;\n } @else {\n border: $border-width #{brand-colour($brandColour)} solid;\n }\n}\n\n@mixin thick-keyline-transparent($direction: \"\", $veryThick: false) {\n $border-width: borders.$thick-border-width;\n @if $veryThick {\n $border-width: borders.$very-thick-border-width;\n }\n @if $direction != \"\" {\n border-#{$direction}: $border-width transparent solid;\n } @else {\n border: $border-width transparent solid;\n }\n}\n\n%always-light {\n @include colour-css-vars;\n\n @media (prefers-contrast: more) {\n @include colour-css-vars-high-contrast;\n }\n}\n\n@mixin always-light {\n @extend %always-light;\n}\n\n%contrast {\n --background: var(--contrast-background);\n --font-base: var(--contrast-font-base);\n --font-dark: var(--contrast-font-dark);\n --font-light: var(--contrast-font-light);\n --icon-light: var(--contrast-icon-light);\n --link: var(--contrast-link);\n --link-visited: var(--contrast-link-visited);\n --keyline: var(--contrast-keyline);\n --keyline-dark: var(--contrast-keyline-dark);\n --button-text: var(--contrast-button-text);\n --button-background: var(--contrast-button-background);\n --button-hover-text: var(--contrast-button-hover-text);\n --button-hover-background: var(--contrast-button-hover-background);\n --accent-border: var(--accent-border-bright);\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n}\n\n@mixin contrast {\n @extend %contrast;\n}\n\n%contrast-on-mobile {\n @include media.on-mobile {\n --background: var(--contrast-background);\n --font-base: var(--contrast-font-base);\n --font-dark: var(--contrast-font-dark);\n --font-light: var(--contrast-font-light);\n --icon-light: var(--contrast-icon-light);\n --link: var(--contrast-link);\n --link-visited: var(--contrast-link-visited);\n --keyline: var(--contrast-keyline);\n --keyline-dark: var(--contrast-keyline-dark);\n --button-text: var(--contrast-button-text);\n --button-background: var(--contrast-button-background);\n --button-hover-text: var(--contrast-button-hover-text);\n --button-hover-background: var(--contrast-button-hover-background);\n --accent-border: var(--accent-border-bright);\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n }\n}\n\n@mixin contrast-on-mobile {\n @extend %contrast-on-mobile;\n}\n\n%base {\n @each $name, $value in $base-colours {\n --#{$name}: var(--base-#{$value});\n }\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n}\n\n@mixin base {\n @extend %base;\n}\n\n%tint {\n --background: var(--background-tint);\n\n @include colour-background(\"background\");\n}\n\n@mixin tint {\n @extend %tint;\n}\n\n%accent {\n --background: var(--accent-background);\n --font-base: var(--accent-font-base);\n --font-dark: var(--accent-font-dark);\n --font-light: var(--accent-font-light);\n --icon-light: var(--accent-icon-light);\n --link: var(--accent-link);\n --link-visited: var(--accent-link);\n --keyline: var(--accent-keyline);\n --keyline-dark: var(--accent-keyline-dark);\n --accent-border: var(--accent-font-dark);\n --button-text: var(--accent-button-text);\n --button-background: var(--accent-button-background);\n --button-hover-text: var(--accent-button-hover-text);\n --button-hover-background: var(--accent-button-hover-background);\n\n @include colour-background(\"background\");\n\n @include colour-font(\"font-base\");\n}\n\n@mixin accent {\n @extend %accent;\n}\n\n%accent-light {\n --background: var(--accent-background-light);\n --font-base: #{map.get(colour.$colour-palette-default, \"font-base\")};\n --font-dark: #{map.get(colour.$colour-palette-default, \"font-dark\")};\n --font-light: #{map.get(colour.$colour-palette-default, \"font-light\")};\n --icon-light: #{map.get(colour.$colour-palette-default, \"icon-light\")};\n --keyline: #{map.get(colour.$colour-palette-default, \"keyline\")};\n --keyline-dark: #{map.get(colour.$colour-palette-default, \"keyline-dark\")};\n --button-text: #{map.get(colour.$colour-palette-default, \"button-text\")};\n --button-background: #{map.get(\n colour.$colour-palette-default,\n \"button-background\"\n )};\n --button-hover-text: #{map.get(\n colour.$colour-palette-default,\n \"button-hover-text\"\n )};\n --button-hover-background: #{map.get(\n colour.$colour-palette-default,\n \"button-hover-background\"\n )};\n --accent-border: var(--accent-background);\n\n @include colour-background(\"background\");\n @include colour-font(\"font-base\");\n\n .tna-template--system-theme & {\n @media (prefers-color-scheme: dark) {\n // --link: #{map.get(colour.$colour-palette-default, \"link\")};\n // --link-visited: #{map.get(colour.$colour-palette-default, \"link-visited\")};\n\n --background: var(--accent-background);\n --font-base: var(--accent-font-base);\n --font-dark: var(--accent-font-dark);\n --font-light: var(--accent-font-light);\n --icon-light: var(--accent-icon-light);\n --link: var(--accent-link);\n --link-visited: var(--accent-link);\n --keyline: var(--accent-keyline);\n --keyline-dark: var(--accent-keyline-dark);\n --accent-border: var(--accent-font-dark);\n --button-text: var(--accent-button-text);\n --button-background: var(--accent-button-background);\n --button-hover-text: var(--accent-button-hover-text);\n --button-hover-background: var(--accent-button-hover-background);\n }\n }\n\n .tna-template--dark-theme & {\n // --link: #{map.get(colour.$colour-palette-default, \"link\")};\n // --link-visited: #{map.get(colour.$colour-palette-default, \"link-visited\")};\n\n --background: var(--accent-background);\n --font-base: var(--accent-font-base);\n --font-dark: var(--accent-font-dark);\n --font-light: var(--accent-font-light);\n --icon-light: var(--accent-icon-light);\n --link: var(--accent-link);\n --link-visited: var(--accent-link);\n --keyline: var(--accent-keyline);\n --keyline-dark: var(--accent-keyline-dark);\n --accent-border: var(--accent-font-dark);\n --button-text: var(--accent-button-text);\n --button-background: var(--accent-button-background);\n --button-hover-text: var(--accent-button-hover-text);\n --button-hover-background: var(--accent-button-hover-background);\n }\n}\n\n@mixin accent-light {\n @extend %accent-light;\n}\n\n%yellow-accent {\n --accent-background: #{colour.brand-colour(\"yellow\")} !important;\n --accent-background-light: #{colour.brand-colour(\"cream\")} !important;\n --accent-border: #{colour.brand-colour(\"yellow\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"yellow\")} !important;\n --accent-font-base: #{colour.brand-colour(\"black\")} !important;\n --accent-font-dark: #{colour.brand-colour(\"black\")} !important;\n --accent-font-light: #{colour.brand-colour(\"black\", 0.7)} !important;\n --accent-icon-light: #{colour.brand-colour(\"black\", 0.7)} !important;\n --accent-link: #{colour.brand-colour(\"black\")} !important;\n --accent-link-visited: #{colour.brand-colour(\"black\")} !important;\n --accent-keyline: #{colour.brand-colour(\"black\", 0.5)} !important;\n --accent-keyline-dark: #{colour.brand-colour(\"black\", 0.8)} !important;\n --button-accented-text: #{colour.brand-colour(\"black\")} !important;\n --button-accented-background: #{colour.brand-colour(\"yellow\")} !important;\n}\n\n@mixin yellow-accent {\n @extend %yellow-accent;\n}\n\n%accent-lighter-text {\n --accent-font-base: #{colour.brand-colour(\"white\")} !important;\n --accent-font-dark: #{colour.brand-colour(\"white\")} !important;\n --accent-font-light: #{colour.brand-colour(\"white\", 0.7)} !important;\n --accent-icon-light: #{colour.brand-colour(\"white\", 0.7)} !important;\n --accent-link: #{colour.brand-colour(\"white\")} !important;\n --accent-link-visited: #{colour.brand-colour(\"white\")} !important;\n --accent-keyline: #{colour.brand-colour(\"white\", 0.5)} !important;\n --accent-keyline-dark: #{colour.brand-colour(\"white\", 0.8)} !important;\n --button-accented-text: #{colour.brand-colour(\"white\")} !important;\n}\n\n%black-accent {\n --accent-background: #{colour.brand-colour(\"black\")} !important;\n --accent-background-light: #{colour.brand-colour(\"light-grey\")} !important;\n --accent-border: #{colour.brand-colour(\"black\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"grey\")} !important;\n --button-accented-text: #{colour.brand-colour(\"black\")} !important;\n --button-accented-background: #{colour.brand-colour(\"grey\")} !important;\n}\n\n@mixin black-accent {\n @extend %accent-lighter-text;\n @extend %black-accent;\n}\n\n%pink-accent {\n --accent-background: #{colour.brand-colour(\"maroon\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-pink\")} !important;\n --accent-border: #{colour.brand-colour(\"maroon\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"pink\")} !important;\n --button-accented-background: #{colour.brand-colour(\"maroon\")} !important;\n}\n\n@mixin pink-accent {\n @extend %accent-lighter-text;\n @extend %pink-accent;\n}\n\n%orange-accent {\n --accent-background: #{colour.brand-colour(\"chestnut\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-orange\")} !important;\n --accent-border: #{colour.brand-colour(\"chestnut\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"orange\")} !important;\n --button-accented-background: #{colour.brand-colour(\"chestnut\")} !important;\n}\n\n@mixin orange-accent {\n @extend %accent-lighter-text;\n @extend %orange-accent;\n}\n\n%green-accent {\n --accent-background: #{colour.brand-colour(\"forest\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-green\")} !important;\n --accent-border: #{colour.brand-colour(\"forest\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"green\")} !important;\n --button-accented-background: #{colour.brand-colour(\"forest\")} !important;\n}\n\n@mixin green-accent {\n @extend %accent-lighter-text;\n @extend %green-accent;\n}\n\n%blue-accent {\n --accent-background: #{colour.brand-colour(\"navy\")} !important;\n --accent-background-light: #{colour.brand-colour(\"pastel-blue\")} !important;\n --accent-border: #{colour.brand-colour(\"navy\")} !important;\n --accent-border-bright: #{colour.brand-colour(\"blue\")} !important;\n --button-accented-background: #{colour.brand-colour(\"navy\")} !important;\n}\n\n@mixin blue-accent {\n @extend %accent-lighter-text;\n @extend %blue-accent;\n}\n\n@mixin on-high-contrast {\n @media (prefers-contrast: more) {\n @content;\n }\n}\n\n@mixin on-forced-colours {\n @media (forced-colors: active) {\n @content;\n }\n}\n\n@mixin on-high-contrast-and-forced-colours {\n @include on-forced-colours {\n @content;\n }\n\n @include on-high-contrast {\n @content;\n }\n}\n\n%image-loader-background {\n background: linear-gradient(\n -45deg,\n rgb(0 0 0 / 25%),\n rgb(255 255 255 / 25%),\n rgb(0 0 0 / 25%)\n );\n background-size: 500% 500%;\n background-position: 0 50%;\n\n animation: image-loader-background ease-in-out 1.2s infinite;\n\n @media (prefers-reduced-motion) {\n animation: none !important;\n }\n}\n\n@mixin image-loader-background {\n @if features.$image-loader-animations {\n @extend %image-loader-background;\n }\n}\n","@use \"sass:map\";\n@use \"sass:math\";\n@use \"../variables/spacing\";\n@use \"../variables/typography\";\n@use \"../tools/media\";\n\n/*\n * ------------------------------------------\n * Spacing is created with rem rather than px\n * units as when users use a custom font size\n * some browsers handle the resize of rem and\n * em separately from px which causes spacing\n * and layout issues, so to ensure everything\n * remaians consistent we use rem for spacing\n * and typography. The original intention was\n * separation so that we could scale the type\n * without affecting spacing, but in practice\n * there are too many ways to change the font\n * size in various browsers and devices\n * ------------------------------------------\n */\n@function space($size) {\n // @return #{$size * spacing.$spacing-unit-px}px;\n @return #{$size}rem;\n}\n\n%space-above {\n margin-top: space(2);\n @extend %no-space-above-for-first-children;\n}\n\n%space-only-above {\n margin: #{space(2)} 0 0;\n @extend %no-space-above-for-first-children;\n}\n\n%no-space-above-for-first-children {\n &:first-child {\n margin-top: 0;\n }\n}\n\n@mixin space-above($zero-other-margins: false) {\n @if $zero-other-margins {\n @extend %space-only-above;\n } @else {\n @extend %space-above;\n }\n}\n\n@mixin no-spacing-generator($suffix: \"\") {\n @if $suffix != \"\" {\n $suffix: \"-\" + $suffix;\n }\n @each $property in margin, padding {\n @each $direction in top, bottom {\n $combined-direction: \"\";\n @if $direction == top or $direction == bottom {\n $combined-direction: vertical;\n } @else if $direction == right or $direction == left {\n $combined-direction: horizontal;\n }\n @if $combined-direction {\n .tna-\\!--no-#{$property}-#{$direction}#{$suffix},\n .tna-\\!--no-#{$property}-#{$combined-direction}#{$suffix} {\n #{$property}-#{$direction}: 0 !important;\n }\n } @else {\n .tna-\\!--no-#{$property}-#{$direction}#{$suffix} {\n #{$property}-#{$direction}: 0 !important;\n }\n }\n }\n }\n}\n\n@mixin spacing-generator($suffix: \"\") {\n @each $property in margin, padding {\n @each $direction in top, bottom {\n @each $size, $amount in spacing.$spacing {\n @if $direction == all {\n .tna-\\!--#{$property}-#{$size} {\n #{$property}: #{space($amount)} !important;\n }\n } @else {\n $combined-direction: \"\";\n @if $direction == top or $direction == bottom {\n $combined-direction: vertical;\n } @else if $direction == right or $direction == left {\n $combined-direction: horizontal;\n }\n @if $combined-direction {\n .tna-\\!--#{$property}-#{$direction}-#{$size},\n .tna-\\!--#{$property}-#{$combined-direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n } @else {\n .tna-\\!--#{$property}-#{$direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n }\n }\n }\n }\n }\n\n @include media.on-mobile {\n @each $property in margin, padding {\n @each $direction in top, bottom {\n @each $size, $amount in spacing.$spacing-mobile {\n @if $direction == all {\n .tna-\\!--#{$property}-#{$size} {\n #{$property}: #{space($amount)} !important;\n }\n } @else {\n $combined-direction: \"\";\n @if $direction == top or $direction == bottom {\n $combined-direction: vertical;\n } @else if $direction == right or $direction == left {\n $combined-direction: horizontal;\n }\n @if $combined-direction {\n .tna-\\!--#{$property}-#{$direction}-#{$size},\n .tna-\\!--#{$property}-#{$combined-direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n } @else {\n .tna-\\!--#{$property}-#{$direction}-#{$size} {\n #{$property}-#{$direction}: #{space($amount)} !important;\n }\n }\n }\n }\n }\n }\n }\n}\n","@use \"sass:math\";\n@use \"../../variables/borders\" as bordersVars;\n@use \"../../tools/borders\";\n@use \"../../tools/colour\";\n@use \"../../tools/media\";\n@use \"../../tools/spacing\";\n@use \"../../tools/typography\";\n\n.tna-index-grid {\n @include spacing.space-above;\n\n &__heading {\n }\n\n &__items {\n @include spacing.space-above;\n\n margin-bottom: 0;\n\n display: flex;\n gap: spacing.space(2) 0;\n\n list-style: none;\n }\n\n &__item {\n @include colour.contrast;\n\n height: 100%;\n\n display: flex;\n flex-direction: column;\n\n position: relative;\n\n text-decoration: none;\n\n @include borders.rounded-border;\n\n .tna-background-contrast & {\n @include colour.accent;\n }\n\n @include colour.on-high-contrast-and-forced-colours {\n @include colour.colour-border(\"keyline-dark\", 1px);\n }\n }\n\n &__item-image {\n width: 100%;\n height: auto;\n\n border-radius: bordersVars.$rounded-border-radius\n bordersVars.$rounded-border-radius 0 0;\n\n pointer-events: none;\n\n @include colour.image-loader-background;\n }\n\n &__item-content {\n padding: spacing.space(1);\n\n flex: 1;\n }\n\n &__item-label {\n position: absolute;\n top: spacing.space(0.5);\n left: spacing.space(0.5);\n }\n\n &__item-title {\n @include typography.main-font-weight-bold;\n text-decoration: underline;\n\n .tna-index-grid__item:hover & {\n &,\n &:link,\n &:visited {\n @include typography.interacted-text-decoration;\n }\n }\n }\n\n &__item-subtitle {\n @include colour.colour-font(\"font-light\");\n @include typography.font-size(16);\n }\n}\n","@use \"../variables/borders\";\n\n@mixin rounded-border {\n border-radius: borders.$rounded-border-radius;\n}\n","$thick-border-width: 5px !default;\n$very-thick-border-width: 8px !default;\n$rounded-border-radius: 2px !default;\n","@use \"sass:math\";\n@use \"../variables/typography\";\n@use \"colour\";\n@use \"media\";\n\n@mixin font-size($font-size-px) {\n font-size: #{math.div($font-size-px, typography.$relative-1rem-px)}rem;\n}\n\n@mixin relative-font-size($font-size-px) {\n @warn \"relative-font-size() will soon be deprecated in favour of font-size().\";\n @include font-size($font-size-px);\n}\n\n@mixin main-font-weight {\n font-weight: typography.$main-font-weight;\n}\n\n@mixin main-font-weight-medium {\n font-weight: typography.$main-font-weight-medium;\n}\n\n@mixin main-font-weight-bold {\n font-weight: typography.$main-font-weight-bold;\n}\n\n@mixin main-font($bold: false) {\n font-family: typography.$main-font-family;\n font-variation-settings: \"wdth\" 100;\n font-style: normal;\n font-optical-sizing: auto;\n @if $bold {\n @include main-font-weight-bold;\n } @else {\n @include main-font-weight;\n }\n}\n\n@mixin heading-font {\n font-family: typography.$heading-font-family;\n font-weight: typography.$heading-font-weight;\n}\n\n@mixin detail-font($bold: false) {\n font-family: typography.$detail-font-family;\n font-style: normal;\n font-optical-sizing: auto;\n @if $bold {\n font-weight: typography.$detail-font-weight-bold;\n } @else {\n font-weight: typography.$detail-font-weight;\n }\n}\n\n@mixin detail-font-small {\n @include detail-font;\n @include font-size(14);\n line-height: 1.1;\n text-transform: uppercase;\n}\n\n@mixin interactable-text-decoration {\n text-decoration-thickness: typography.$interactable-text-decoration-thickness;\n text-underline-offset: typography.$interactable-text-decoration-offset;\n}\n\n@mixin interacted-text-decoration {\n text-decoration: underline;\n text-decoration-thickness: typography.$interactive-text-decoration-thickness;\n text-underline-offset: typography.$interactable-text-decoration-offset;\n}\n\n@mixin heading-generator(\n $font-size-default,\n $font-size-medium,\n $font-size-small,\n $font-size-tiny,\n $line-height\n) {\n $small-and-tiny-identical: $font-size-small == $font-size-tiny;\n $medium-small-and-tiny-identical: $font-size-medium == $font-size-small and\n $small-and-tiny-identical;\n $all-identical: $font-size-default == $font-size-medium and\n $medium-small-and-tiny-identical and $small-and-tiny-identical;\n line-height: $line-height;\n @include font-size($font-size-default);\n\n @if $all-identical != true {\n @if $medium-small-and-tiny-identical != true {\n @include media.on-medium {\n @include font-size($font-size-medium);\n }\n\n @if $small-and-tiny-identical != true {\n @include media.on-small {\n @include font-size($font-size-small);\n }\n\n @include media.on-tiny {\n @include font-size($font-size-tiny);\n }\n } @else {\n @include media.on-mobile {\n @include font-size($font-size-small);\n }\n }\n } @else {\n @include media.on-smaller-than-large {\n @include font-size($font-size-medium);\n }\n }\n }\n}\n","@use \"sass:math\";\n\n/*\n * ------------------------------------------\n * The typefaces, sizes and spacings that are\n * defined in this file have been selected to\n * ensure 100% match with the latest National\n * Archives brand guidelines - avoid changing\n * or overwriting any of these values without\n * signing off with the Digital Services team\n * first\n * ------------------------------------------\n */\n\n$relative-1rem-px: 16; // 16px = 1rem\n\n/*\n * ------------------------------------------\n * When true, use the included font files for\n * Open Sans and Roboto Mono, rather than the\n * versions hosted by Google Fonts\n * ------------------------------------------\n */\n$use-local-fonts: false !default;\n\n$body-font-size-px: 19 !default;\n$body-font-size-px-medium: 18 !default;\n$body-font-size-px-mobile: 17 !default;\n$body-line-height: 1.75 !default;\n\n$interactable-text-decoration-offset: 0.125em !default;\n$interactable-text-decoration-thickness: #{math.div(1.5, $relative-1rem-px)}rem !default;\n$interactive-text-decoration-thickness: #{math.div(4, $relative-1rem-px)}rem !default;\n\n$main-font-family-name: \"Open Sans\" !default;\n$main-font-family:\n #{$main-font-family-name},\n sans-serif;\n$main-font-weight: 400 !default;\n$main-font-weight-medium: 600 !default;\n$main-font-weight-bold: 700 !default;\n$main-font-file: \"OpenSans-Regular.ttf\" !default;\n$main-font-file-medium: \"OpenSans-SemiBold.ttf\" !default;\n$main-font-file-bold: \"OpenSans-Bold.ttf\" !default;\n\n/*\n * ------------------------------------------\n * To use Supria Sans Condensed (which is the\n * approved heading typeface for The National\n * Archives), you need to obtain a licence to\n * properly embed the CSS files with the font\n * definitions in your service - check with a\n * member of the Digital Services team on how\n * to get a licence\n * ------------------------------------------\n */\n$heading-font-family-name: \"supria-sans-condensed\" !default;\n$heading-font-family:\n #{$heading-font-family-name},\n \"Arial Narrow\",\n sans-serif;\n$heading-font-weight: 500 !default;\n\n/*\n * ------------------------------------------\n * The detail font should be a monospace font\n * and is used for chips, supertitles as well\n * as the date search component\n * ------------------------------------------\n */\n$detail-font-family-name: \"Roboto Mono\" !default;\n$detail-font-family:\n #{$detail-font-family-name},\n monospace;\n$detail-font-weight: 400 !default;\n$detail-font-weight-bold: 500 !default;\n$detail-font-file: \"RobotoMono-Regular.ttf\" !default;\n$detail-font-file-bold: \"RobotoMono-Medium.ttf\" !default;\n\n$heading-xl-font-size-default: 64 !default;\n$heading-xl-font-size-medium: 48 !default;\n$heading-xl-font-size-small: 36 !default;\n$heading-xl-font-size-tiny: $heading-xl-font-size-small !default;\n$heading-xl-line-height: 1.1 !default;\n\n$heading-l-font-size-default: 36 !default;\n$heading-l-font-size-medium: 32 !default;\n$heading-l-font-size-small: 29 !default;\n$heading-l-font-size-tiny: $heading-l-font-size-small !default;\n$heading-l-line-height: 1.15 !default;\n\n$heading-m-font-size-default: 22 !default;\n$heading-m-font-size-medium: $heading-m-font-size-default !default;\n$heading-m-font-size-small: 21 !default;\n$heading-m-font-size-tiny: $heading-m-font-size-small !default;\n$heading-m-line-height: 1.4 !default;\n\n$heading-s-font-size-default: 19 !default;\n$heading-s-font-size-medium: $heading-s-font-size-default !default;\n$heading-s-font-size-small: $heading-s-font-size-default !default;\n$heading-s-font-size-tiny: $heading-s-font-size-default !default;\n$heading-s-line-height: 1.5 !default;\n\n$code-font-family: Consolas, Monaco, \"Ubuntu Mono\", monospace !default;\n"]}
@@ -50,12 +50,12 @@
50
50
  width: 100%;
51
51
  height: auto;
52
52
 
53
- @include colour.image-loader-background;
53
+ border-radius: bordersVars.$rounded-border-radius
54
+ bordersVars.$rounded-border-radius 0 0;
54
55
 
55
56
  pointer-events: none;
56
57
 
57
- border-radius: bordersVars.$rounded-border-radius
58
- bordersVars.$rounded-border-radius 0 0;
58
+ @include colour.image-loader-background;
59
59
  }
60
60
 
61
61
  &__item-content {