@nationalarchives/frontend 0.1.48 → 0.1.49
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/analytics.js +1 -1
- package/nationalarchives/analytics.js.map +1 -1
- package/nationalarchives/analytics.mjs +4 -4
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +6 -5
- package/nationalarchives/components/button/_button-group.scss +2 -2
- package/nationalarchives/components/button/button.css +1 -1
- package/nationalarchives/components/button/button.css.map +1 -1
- package/nationalarchives/components/button/button.scss +4 -3
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +25 -23
- package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.scss +6 -5
- package/nationalarchives/components/compound-filters/compound-filters.css +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.scss +3 -3
- package/nationalarchives/components/cookie-banner/cookie-banner.css +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.scss +2 -2
- package/nationalarchives/components/cookie-banner/fixtures.json +10 -10
- package/nationalarchives/components/cookie-banner/template.njk +1 -1
- package/nationalarchives/components/date-input/date-input.css +1 -1
- package/nationalarchives/components/date-input/date-input.css.map +1 -1
- package/nationalarchives/components/date-input/date-input.scss +3 -2
- package/nationalarchives/components/date-search/date-search.css +1 -1
- package/nationalarchives/components/date-search/date-search.css.map +1 -1
- package/nationalarchives/components/date-search/date-search.scss +2 -1
- package/nationalarchives/components/error-summary/error-summary.css +1 -1
- package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
- package/nationalarchives/components/error-summary/error-summary.scss +2 -2
- package/nationalarchives/components/featured-records/featured-records.css +1 -1
- package/nationalarchives/components/featured-records/featured-records.css.map +1 -1
- package/nationalarchives/components/featured-records/featured-records.scss +5 -5
- package/nationalarchives/components/footer/fixtures.json +2 -2
- package/nationalarchives/components/footer/footer.css +1 -1
- package/nationalarchives/components/footer/footer.css.map +1 -1
- package/nationalarchives/components/footer/footer.scss +22 -21
- package/nationalarchives/components/footer/footer.stories.js +1 -1
- package/nationalarchives/components/footer/template.njk +3 -3
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/gallery/gallery.scss +10 -10
- package/nationalarchives/components/global-header/fixtures.json +1 -2
- package/nationalarchives/components/global-header/global-header.css +1 -1
- package/nationalarchives/components/global-header/global-header.css.map +1 -1
- package/nationalarchives/components/global-header/global-header.js +1 -1
- package/nationalarchives/components/global-header/global-header.js.map +1 -1
- package/nationalarchives/components/global-header/global-header.mjs +1 -1
- package/nationalarchives/components/global-header/global-header.scss +39 -34
- package/nationalarchives/components/global-header/global-header.stories.js +0 -1
- package/nationalarchives/components/global-header/macro-options.json +0 -6
- package/nationalarchives/components/global-header/template.njk +0 -3
- package/nationalarchives/components/grid/grid.css +1 -1
- package/nationalarchives/components/grid/grid.css.map +1 -1
- package/nationalarchives/components/grid/grid.scss +16 -16
- package/nationalarchives/components/header/header.css +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/header/header.js +1 -1
- package/nationalarchives/components/header/header.js.map +1 -1
- package/nationalarchives/components/header/header.mjs +1 -1
- package/nationalarchives/components/header/header.scss +45 -44
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +15 -9
- package/nationalarchives/components/index-grid/index-grid.css +1 -1
- package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
- package/nationalarchives/components/index-grid/index-grid.scss +4 -4
- package/nationalarchives/components/message/message.css +1 -1
- package/nationalarchives/components/message/message.css.map +1 -1
- package/nationalarchives/components/message/message.scss +3 -3
- package/nationalarchives/components/pagination/pagination.css +1 -1
- package/nationalarchives/components/pagination/pagination.css.map +1 -1
- package/nationalarchives/components/pagination/pagination.scss +9 -9
- package/nationalarchives/components/phase-banner/phase-banner.css +1 -1
- package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
- package/nationalarchives/components/phase-banner/phase-banner.scss +3 -2
- package/nationalarchives/components/picture/picture.css +1 -1
- package/nationalarchives/components/picture/picture.css.map +1 -1
- package/nationalarchives/components/picture/picture.scss +18 -17
- package/nationalarchives/components/quick-filters/quick-filters.css +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.scss +2 -2
- package/nationalarchives/components/radios/radios.css +1 -1
- package/nationalarchives/components/radios/radios.css.map +1 -1
- package/nationalarchives/components/radios/radios.scss +6 -5
- package/nationalarchives/components/search-field/search-field.css +1 -1
- package/nationalarchives/components/search-field/search-field.css.map +1 -1
- package/nationalarchives/components/search-field/search-field.scss +1 -1
- package/nationalarchives/components/search-filters/search-filters.css +1 -1
- package/nationalarchives/components/search-filters/search-filters.css.map +1 -1
- package/nationalarchives/components/search-filters/search-filters.scss +10 -10
- package/nationalarchives/components/select/select.css +1 -1
- package/nationalarchives/components/select/select.css.map +1 -1
- package/nationalarchives/components/select/select.scss +3 -2
- package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.scss +2 -1
- package/nationalarchives/components/skip-link/skip-link.css +1 -1
- package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
- package/nationalarchives/components/skip-link/skip-link.scss +2 -1
- package/nationalarchives/components/tabs/tabs.css +1 -1
- package/nationalarchives/components/tabs/tabs.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.scss +4 -4
- package/nationalarchives/components/text-input/text-input.css +1 -1
- package/nationalarchives/components/text-input/text-input.css.map +1 -1
- package/nationalarchives/components/text-input/text-input.scss +2 -1
- package/nationalarchives/components/textarea/textarea.css +1 -1
- package/nationalarchives/components/textarea/textarea.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.scss +4 -3
- package/nationalarchives/global-header-package.css +1 -1
- package/nationalarchives/global-header-package.css.map +1 -1
- package/nationalarchives/global-header-package.scss +243 -33
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/nationalarchives/stories/utilities/colour-schemes/colour-themes.stories.js +16 -17
- package/nationalarchives/templates/fixtures.json +4 -4
- package/nationalarchives/tools/_grid.scss +25 -0
- package/nationalarchives/tools/_media.scss +44 -21
- package/nationalarchives/tools/_spacing.scss +14 -16
- package/nationalarchives/tools/_typography.scss +48 -4
- package/nationalarchives/utilities/_a11y.scss +2 -1
- package/nationalarchives/utilities/_areas.scss +7 -7
- package/nationalarchives/utilities/_colour.scss +8 -11
- package/nationalarchives/utilities/_columns.scss +3 -3
- package/nationalarchives/utilities/_forms.scss +3 -3
- package/nationalarchives/utilities/_lists.scss +8 -8
- package/nationalarchives/utilities/_reset.scss +5 -0
- package/nationalarchives/utilities/_tables.scss +10 -10
- package/nationalarchives/utilities/_typography.scss +49 -61
- package/nationalarchives/variables/_colour.scss +6 -6
- package/nationalarchives/variables/_grid.scss +3 -3
- package/nationalarchives/variables/_media.scss +0 -37
- package/nationalarchives/variables/_spacing.scss +14 -12
- package/nationalarchives/variables/_typography.scss +26 -4
- package/package.json +1 -1
@@ -1,12 +1,11 @@
|
|
1
1
|
@use "sass:math";
|
2
2
|
@use "sass:selector";
|
3
|
+
@use "../variables/assets";
|
4
|
+
@use "../variables/typography" as typographyVars;
|
3
5
|
@use "../tools/colour";
|
4
6
|
@use "../tools/media";
|
5
7
|
@use "../tools/spacing";
|
6
8
|
@use "../tools/typography";
|
7
|
-
@use "../variables/assets";
|
8
|
-
@use "../variables/grid";
|
9
|
-
@use "../variables/typography" as typographyVars;
|
10
9
|
|
11
10
|
@if typographyVars.$use-local-fonts {
|
12
11
|
@font-face {
|
@@ -14,7 +13,7 @@
|
|
14
13
|
src: url("#{assets.$tna-font-path}/OpenSans-Regular.ttf");
|
15
14
|
font-weight: typographyVars.$main-font-weight;
|
16
15
|
font-style: normal;
|
17
|
-
|
16
|
+
font-display: swap;
|
18
17
|
}
|
19
18
|
|
20
19
|
@font-face {
|
@@ -22,7 +21,7 @@
|
|
22
21
|
src: url("#{assets.$tna-font-path}/OpenSans-Bold.ttf");
|
23
22
|
font-weight: typographyVars.$main-font-weight-bold;
|
24
23
|
font-style: normal;
|
25
|
-
|
24
|
+
font-display: swap;
|
26
25
|
}
|
27
26
|
|
28
27
|
@font-face {
|
@@ -30,7 +29,7 @@
|
|
30
29
|
src: url("#{assets.$tna-font-path}/RobotoMono-Regular.ttf");
|
31
30
|
font-weight: typographyVars.$detail-font-weight;
|
32
31
|
font-style: normal;
|
33
|
-
|
32
|
+
font-display: swap;
|
34
33
|
}
|
35
34
|
|
36
35
|
@font-face {
|
@@ -38,7 +37,7 @@
|
|
38
37
|
src: url("#{assets.$tna-font-path}/RobotoMono-Medium.ttf");
|
39
38
|
font-weight: typographyVars.$detail-font-weight-bold;
|
40
39
|
font-style: normal;
|
41
|
-
|
40
|
+
font-display: swap;
|
42
41
|
}
|
43
42
|
} @else {
|
44
43
|
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&family=Roboto+Mono:wght@100..700&display=swap"); /* stylelint-disable-line */
|
@@ -47,7 +46,6 @@
|
|
47
46
|
.tna-template {
|
48
47
|
@include colour.colour-font("font-base");
|
49
48
|
@include typography.main-font;
|
50
|
-
font-size: #{typographyVars.$relative-1rem-px}px;
|
51
49
|
-moz-osx-font-smoothing: grayscale;
|
52
50
|
-webkit-font-smoothing: antialiased;
|
53
51
|
text-rendering: optimizeLegibility;
|
@@ -76,7 +74,7 @@ p {
|
|
76
74
|
@include spacing.space-above;
|
77
75
|
|
78
76
|
+ p {
|
79
|
-
margin-top:
|
77
|
+
margin-top: spacing.space(1);
|
80
78
|
}
|
81
79
|
}
|
82
80
|
|
@@ -114,11 +112,11 @@ small {
|
|
114
112
|
|
115
113
|
%chip-base {
|
116
114
|
max-width: max-content;
|
117
|
-
padding: 0.
|
115
|
+
padding: spacing.space(0.125) spacing.space(0.25);
|
118
116
|
|
119
117
|
display: flex;
|
120
118
|
align-items: center;
|
121
|
-
gap: 0.
|
119
|
+
gap: spacing.space(0.5);
|
122
120
|
|
123
121
|
@include colour.colour-font("font-base");
|
124
122
|
@include typography.detail-font-small;
|
@@ -160,7 +158,7 @@ small {
|
|
160
158
|
@include colour.colour-font("icon-light");
|
161
159
|
|
162
160
|
@include colour.on-high-contrast {
|
163
|
-
padding-right: 0.
|
161
|
+
padding-right: spacing.space(0.5);
|
164
162
|
|
165
163
|
color: inherit;
|
166
164
|
|
@@ -186,7 +184,7 @@ small {
|
|
186
184
|
|
187
185
|
display: flex;
|
188
186
|
flex-wrap: wrap;
|
189
|
-
gap: 0.
|
187
|
+
gap: spacing.space(0.5) spacing.space(1.5);
|
190
188
|
|
191
189
|
list-style: none;
|
192
190
|
|
@@ -205,7 +203,7 @@ small {
|
|
205
203
|
display: inline-block;
|
206
204
|
|
207
205
|
&::after {
|
208
|
-
padding-left: 0.
|
206
|
+
padding-left: spacing.space(0.5);
|
209
207
|
|
210
208
|
display: inline-block;
|
211
209
|
|
@@ -216,7 +214,7 @@ small {
|
|
216
214
|
|
217
215
|
&:hover {
|
218
216
|
&::after {
|
219
|
-
padding-left: 0.
|
217
|
+
padding-left: spacing.space(0.75);
|
220
218
|
}
|
221
219
|
}
|
222
220
|
}
|
@@ -231,77 +229,65 @@ small {
|
|
231
229
|
@extend %heading;
|
232
230
|
|
233
231
|
@include typography.heading-font;
|
234
|
-
@include typography.
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
@include media.on-mobile {
|
242
|
-
@include typography.relative-font-size(36);
|
243
|
-
}
|
232
|
+
@include typography.heading-generator(
|
233
|
+
typographyVars.$heading-xl-font-size-default,
|
234
|
+
typographyVars.$heading-xl-font-size-medium,
|
235
|
+
typographyVars.$heading-xl-font-size-small,
|
236
|
+
typographyVars.$heading-xl-font-size-tiny,
|
237
|
+
typographyVars.$heading-xl-line-height
|
238
|
+
);
|
244
239
|
}
|
245
240
|
|
246
241
|
%heading-l {
|
247
242
|
@extend %heading;
|
248
243
|
|
249
244
|
@include typography.heading-font;
|
250
|
-
@include typography.
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
@include media.on-small {
|
258
|
-
@include typography.relative-font-size(28);
|
259
|
-
}
|
260
|
-
|
261
|
-
@include media.on-tiny {
|
262
|
-
@include typography.relative-font-size(25);
|
263
|
-
}
|
245
|
+
@include typography.heading-generator(
|
246
|
+
typographyVars.$heading-l-font-size-default,
|
247
|
+
typographyVars.$heading-l-font-size-medium,
|
248
|
+
typographyVars.$heading-l-font-size-small,
|
249
|
+
typographyVars.$heading-l-font-size-tiny,
|
250
|
+
typographyVars.$heading-l-line-height
|
251
|
+
);
|
264
252
|
}
|
265
253
|
|
266
254
|
%heading-m {
|
267
255
|
@extend %heading;
|
268
256
|
|
269
257
|
@include typography.main-font-weight-bold;
|
270
|
-
@include typography.
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
@include media.on-small {
|
278
|
-
@include typography.relative-font-size(20);
|
279
|
-
}
|
280
|
-
|
281
|
-
@include media.on-tiny {
|
282
|
-
@include typography.relative-font-size(19);
|
283
|
-
}
|
258
|
+
@include typography.heading-generator(
|
259
|
+
typographyVars.$heading-m-font-size-default,
|
260
|
+
typographyVars.$heading-m-font-size-medium,
|
261
|
+
typographyVars.$heading-m-font-size-small,
|
262
|
+
typographyVars.$heading-m-font-size-tiny,
|
263
|
+
typographyVars.$heading-m-line-height
|
264
|
+
);
|
284
265
|
}
|
285
266
|
|
286
267
|
%heading-s {
|
287
268
|
@extend %heading;
|
288
269
|
|
289
270
|
@include typography.main-font-weight-bold;
|
290
|
-
@include typography.
|
291
|
-
|
271
|
+
@include typography.heading-generator(
|
272
|
+
typographyVars.$heading-s-font-size-default,
|
273
|
+
typographyVars.$heading-s-font-size-medium,
|
274
|
+
typographyVars.$heading-s-font-size-small,
|
275
|
+
typographyVars.$heading-s-font-size-tiny,
|
276
|
+
typographyVars.$heading-s-line-height
|
277
|
+
);
|
292
278
|
}
|
293
279
|
|
294
280
|
%headings-and-heading-groups {
|
295
281
|
@include spacing.space-above;
|
296
282
|
margin-bottom: 0;
|
297
|
-
padding:
|
283
|
+
padding: spacing.space(1) 0 0;
|
298
284
|
|
299
285
|
&:first-child {
|
300
286
|
padding-top: 0;
|
301
287
|
}
|
302
288
|
|
303
289
|
+ p {
|
304
|
-
margin-top:
|
290
|
+
margin-top: spacing.space(1);
|
305
291
|
}
|
306
292
|
}
|
307
293
|
|
@@ -336,7 +322,7 @@ small {
|
|
336
322
|
}
|
337
323
|
|
338
324
|
&__supertitle {
|
339
|
-
margin: 0 0 0.
|
325
|
+
margin: 0 0 spacing.space(0.25);
|
340
326
|
|
341
327
|
@extend %chip-base;
|
342
328
|
|
@@ -377,7 +363,7 @@ small {
|
|
377
363
|
margin-right: 0;
|
378
364
|
margin-bottom: 0;
|
379
365
|
margin-left: 0;
|
380
|
-
padding:
|
366
|
+
padding: spacing.space(1) spacing.space(1) spacing.space(1) spacing.space(2);
|
381
367
|
|
382
368
|
@include colour.thick-keyline-accent(left);
|
383
369
|
|
@@ -389,7 +375,7 @@ small {
|
|
389
375
|
@include typography.relative-font-size(16);
|
390
376
|
|
391
377
|
.tna-blockquote & {
|
392
|
-
margin:
|
378
|
+
margin: spacing.space(1) 0 0;
|
393
379
|
}
|
394
380
|
|
395
381
|
&::before {
|
@@ -399,7 +385,9 @@ small {
|
|
399
385
|
}
|
400
386
|
|
401
387
|
@include media.on-tiny {
|
402
|
-
padding: 0.
|
388
|
+
padding: spacing.space(0.5) spacing.space(0.5) spacing.space(0.5) #{spacing.space(
|
389
|
+
1
|
390
|
+
)};
|
403
391
|
}
|
404
392
|
}
|
405
393
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
@use "sass:map";
|
2
2
|
|
3
3
|
$colour-palette-brand: (
|
4
|
-
"black": #
|
4
|
+
"black": #010101,
|
5
5
|
"grey": #8c9694,
|
6
6
|
"light-grey": #d9d9d6,
|
7
7
|
"white": #fff,
|
@@ -37,7 +37,7 @@ $colour-palette-brand: (
|
|
37
37
|
@return hex-to-rgb(map.get($colour-palette-brand, $colour), $opacity);
|
38
38
|
}
|
39
39
|
|
40
|
-
$dark-grey: #26262a;
|
40
|
+
$dark-grey: #26262a !default;
|
41
41
|
$base-font: #343338 !default;
|
42
42
|
$link-colour: #0062a8 !default;
|
43
43
|
$link-colour-visited: #4c2c92 !default;
|
@@ -80,7 +80,7 @@ $colour-palette-default: (
|
|
80
80
|
"contrast-button-background": brand-colour("white"),
|
81
81
|
"contrast-button-hover-text": brand-colour("white"),
|
82
82
|
"contrast-button-hover-background": brand-colour("black"),
|
83
|
-
"accent-background": #
|
83
|
+
"accent-background": #101112,
|
84
84
|
"accent-background-light": #ededed,
|
85
85
|
"accent-font-base": brand-colour("white"),
|
86
86
|
"accent-font-dark": brand-colour("white"),
|
@@ -102,8 +102,8 @@ DARK THEME
|
|
102
102
|
$colour-palette-dark: map.merge(
|
103
103
|
$colour-palette-default,
|
104
104
|
(
|
105
|
-
"page-background": #
|
106
|
-
"background-tint": #
|
105
|
+
"page-background": #212223,
|
106
|
+
"background-tint": #323334,
|
107
107
|
"font-base": brand-colour("white", 0.95),
|
108
108
|
"font-dark": brand-colour("white"),
|
109
109
|
"font-light": brand-colour("white", 0.51),
|
@@ -121,7 +121,7 @@ $colour-palette-dark: map.merge(
|
|
121
121
|
"button-background": brand-colour("white"),
|
122
122
|
"button-hover-text": brand-colour("white"),
|
123
123
|
"button-hover-background": brand-colour("black"),
|
124
|
-
"contrast-background": #
|
124
|
+
"contrast-background": #101112,
|
125
125
|
"contrast-link-visited":
|
126
126
|
map.get($colour-palette-default, "contrast-link-visited"),
|
127
127
|
)
|
@@ -1,7 +1,7 @@
|
|
1
|
-
$largest-container-width:
|
1
|
+
$largest-container-width: 1280px !default;
|
2
2
|
|
3
|
-
$gutter-width:
|
4
|
-
$gutter-width-tiny:
|
3
|
+
$gutter-width: 2 !default;
|
4
|
+
$gutter-width-tiny: 1 !default;
|
5
5
|
|
6
6
|
$column-count: 12;
|
7
7
|
$column-count-medium: 6;
|
@@ -1,40 +1,3 @@
|
|
1
|
-
@use "sass:math";
|
2
|
-
@use "./typography";
|
3
|
-
|
4
1
|
$largest-medium-device-px: 1024 !default;
|
5
2
|
$largest-small-device-px: 768 !default;
|
6
3
|
$largest-tiny-device-px: 480 !default;
|
7
|
-
|
8
|
-
$smallest-large-device-em: #{math.div(
|
9
|
-
$largest-medium-device-px + 1,
|
10
|
-
typography.$relative-1rem-px
|
11
|
-
)}em;
|
12
|
-
$largest-medium-device-em: #{math.div(
|
13
|
-
$largest-medium-device-px,
|
14
|
-
typography.$relative-1rem-px
|
15
|
-
)}em;
|
16
|
-
$smallest-medium-device-em: #{math.div(
|
17
|
-
$largest-small-device-px + 1,
|
18
|
-
typography.$relative-1rem-px
|
19
|
-
)}em;
|
20
|
-
$largest-small-device-em: #{math.div(
|
21
|
-
$largest-small-device-px,
|
22
|
-
typography.$relative-1rem-px
|
23
|
-
)}em;
|
24
|
-
$smallest-small-device-em: #{math.div(
|
25
|
-
$largest-tiny-device-px + 1,
|
26
|
-
typography.$relative-1rem-px
|
27
|
-
)}em;
|
28
|
-
$largest-tiny-device-em: #{math.div(
|
29
|
-
$largest-tiny-device-px,
|
30
|
-
typography.$relative-1rem-px
|
31
|
-
)}em;
|
32
|
-
|
33
|
-
$media-large: "(min-width: #{$smallest-large-device-em})";
|
34
|
-
$media-lt-large: "(max-width: #{$largest-medium-device-em})";
|
35
|
-
$media-medium: "(min-width: #{$smallest-medium-device-em}) and (max-width: #{$largest-medium-device-em})";
|
36
|
-
$media-gt-mobile: "(min-width: #{$smallest-medium-device-em})";
|
37
|
-
$media-mobile: "(max-width: #{$largest-small-device-em})";
|
38
|
-
$media-small: "(min-width: #{$smallest-small-device-em}) and (max-width: #{$largest-small-device-em})";
|
39
|
-
$media-gt-tiny: "(min-width: #{$smallest-small-device-em})";
|
40
|
-
$media-tiny: "(max-width: #{$largest-tiny-device-em})";
|
@@ -1,22 +1,24 @@
|
|
1
1
|
@use "sass:map";
|
2
2
|
|
3
|
+
$spacing-unit-px: 16 !default;
|
4
|
+
|
3
5
|
$spacing: (
|
4
|
-
"xs": 0.
|
5
|
-
"s":
|
6
|
-
"m":
|
7
|
-
"l":
|
8
|
-
"xl":
|
9
|
-
"xxl":
|
6
|
+
"xs": 0.5,
|
7
|
+
"s": 1,
|
8
|
+
"m": 2,
|
9
|
+
"l": 3,
|
10
|
+
"xl": 5,
|
11
|
+
"xxl": 8,
|
10
12
|
) !default;
|
11
13
|
|
12
14
|
$spacing-mobile: map.merge(
|
13
15
|
$spacing,
|
14
16
|
(
|
15
|
-
"xs": 0.
|
16
|
-
"s": 0.
|
17
|
-
"m": 1.
|
18
|
-
"l":
|
19
|
-
"xl":
|
20
|
-
"xxl":
|
17
|
+
"xs": 0.5,
|
18
|
+
"s": 0.75,
|
19
|
+
"m": 1.5,
|
20
|
+
"l": 2,
|
21
|
+
"xl": 3,
|
22
|
+
"xxl": 5,
|
21
23
|
)
|
22
24
|
) !default;
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
1
|
+
$relative-1rem-px: 16; // 16px = 1rem
|
2
2
|
|
3
3
|
$use-local-fonts: false !default;
|
4
4
|
|
5
|
-
$relative-1rem-px: 16; // 16px is always 1rem
|
6
|
-
|
7
5
|
$body-font-size-px: 18 !default;
|
8
6
|
$body-font-size-px-mobile: 17 !default;
|
9
|
-
$body-line-height:
|
7
|
+
$body-line-height: 1.75 !default;
|
10
8
|
|
11
9
|
$interactive-text-decoration-thickness: 3.5px !default;
|
12
10
|
|
@@ -21,3 +19,27 @@ $heading-font-weight: 500 !default;
|
|
21
19
|
$detail-font-family: "Roboto Mono", monospace !default;
|
22
20
|
$detail-font-weight: 400 !default;
|
23
21
|
$detail-font-weight-bold: 500 !default;
|
22
|
+
|
23
|
+
$heading-xl-font-size-default: 64 !default;
|
24
|
+
$heading-xl-font-size-medium: 48 !default;
|
25
|
+
$heading-xl-font-size-small: 36 !default;
|
26
|
+
$heading-xl-font-size-tiny: $heading-xl-font-size-small !default;
|
27
|
+
$heading-xl-line-height: 1.1 !default;
|
28
|
+
|
29
|
+
$heading-l-font-size-default: 36 !default;
|
30
|
+
$heading-l-font-size-medium: 30 !default;
|
31
|
+
$heading-l-font-size-small: 28 !default;
|
32
|
+
$heading-l-font-size-tiny: 25 !default;
|
33
|
+
$heading-l-line-height: 1.3 !default;
|
34
|
+
|
35
|
+
$heading-m-font-size-default: 22 !default;
|
36
|
+
$heading-m-font-size-medium: 21 !default;
|
37
|
+
$heading-m-font-size-small: 20 !default;
|
38
|
+
$heading-m-font-size-tiny: 19 !default;
|
39
|
+
$heading-m-line-height: 1.6 !default;
|
40
|
+
|
41
|
+
$heading-s-font-size-default: 18 !default;
|
42
|
+
$heading-s-font-size-medium: $heading-s-font-size-default !default;
|
43
|
+
$heading-s-font-size-small: $heading-s-font-size-default !default;
|
44
|
+
$heading-s-font-size-tiny: $heading-s-font-size-default !default;
|
45
|
+
$heading-s-line-height: 1.6 !default;
|