@nationalarchives/frontend 0.16.1 → 0.17.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.
- package/nationalarchives/all.css +1 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/components/accordion/accordion.css.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
- package/nationalarchives/components/breadcrumbs/fixtures.json +5 -26
- package/nationalarchives/components/breadcrumbs/macro-options.json +0 -7
- package/nationalarchives/components/breadcrumbs/template.njk +3 -9
- package/nationalarchives/components/button/button.css.map +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
- package/nationalarchives/components/date-input/date-input.css.map +1 -1
- package/nationalarchives/components/date-search/date-search.css.map +1 -1
- package/nationalarchives/components/details/details.css.map +1 -1
- package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
- package/nationalarchives/components/files-list/files-list.css +1 -1
- package/nationalarchives/components/files-list/files-list.css.map +1 -1
- package/nationalarchives/components/files-list/files-list.scss +35 -53
- package/nationalarchives/components/files-list/fixtures.json +5 -4
- package/nationalarchives/components/files-list/macro-options.json +6 -0
- package/nationalarchives/components/files-list/template.njk +6 -1
- package/nationalarchives/components/footer/fixtures.json +3 -3
- package/nationalarchives/components/footer/footer.css.map +1 -1
- package/nationalarchives/components/footer/template.njk +12 -5
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/global-header/global-header.css.map +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/hero/fixtures.json +6 -20
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +20 -53
- package/nationalarchives/components/hero/macro-options.json +6 -0
- package/nationalarchives/components/hero/template.njk +3 -2
- package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
- package/nationalarchives/components/pagination/pagination.css.map +1 -1
- package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
- package/nationalarchives/components/picture/picture.css.map +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
- package/nationalarchives/components/radios/radios.css.map +1 -1
- package/nationalarchives/components/search-field/search-field.css.map +1 -1
- package/nationalarchives/components/secondary-navigation/secondary-navigation.css.map +1 -1
- package/nationalarchives/components/select/select.css.map +1 -1
- package/nationalarchives/components/sidebar/sidebar.css.map +1 -1
- package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.css.map +1 -1
- package/nationalarchives/components/text-input/text-input.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.css.map +1 -1
- package/nationalarchives/components/warning/warning.css.map +1 -1
- package/nationalarchives/error-page.css +1 -1
- package/nationalarchives/error-page.css.map +1 -1
- package/nationalarchives/print.css.map +1 -1
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/nationalarchives/templates/fixtures.json +6 -6
- package/nationalarchives/tools/_colour.scss +42 -39
- package/nationalarchives/utilities/typography/_index.scss +4 -0
- package/nationalarchives/variables/_borders.scss +1 -0
- package/nationalarchives/variables/_typography.scss +6 -5
- package/package.json +1 -1
@@ -141,77 +141,80 @@ $base-colours: (
|
|
141
141
|
fill: colour-var($colour) if($important, !important, null);
|
142
142
|
}
|
143
143
|
|
144
|
-
@mixin thick-keyline($direction: "") {
|
144
|
+
@mixin thick-keyline($direction: "", $veryThick: false) {
|
145
|
+
$border-width: borders.$thick-border-width;
|
146
|
+
@if $veryThick {
|
147
|
+
$border-width: borders.$very-thick-border-width;
|
148
|
+
}
|
145
149
|
@if $direction != "" {
|
146
|
-
@include colour-border(
|
147
|
-
"keyline",
|
148
|
-
borders.$thick-border-width,
|
149
|
-
solid,
|
150
|
-
$direction
|
151
|
-
);
|
150
|
+
@include colour-border("keyline", $border-width, solid, $direction);
|
152
151
|
} @else {
|
153
|
-
@include colour-border("keyline",
|
152
|
+
@include colour-border("keyline", $border-width, solid);
|
154
153
|
}
|
155
154
|
}
|
156
155
|
|
157
|
-
@mixin thick-keyline-dark($direction: "") {
|
156
|
+
@mixin thick-keyline-dark($direction: "", $veryThick: false) {
|
157
|
+
$border-width: borders.$thick-border-width;
|
158
|
+
@if $veryThick {
|
159
|
+
$border-width: borders.$very-thick-border-width;
|
160
|
+
}
|
158
161
|
@if $direction != "" {
|
159
|
-
@include colour-border(
|
160
|
-
"keyline-dark",
|
161
|
-
borders.$thick-border-width,
|
162
|
-
solid,
|
163
|
-
$direction
|
164
|
-
);
|
162
|
+
@include colour-border("keyline-dark", $border-width, solid, $direction);
|
165
163
|
} @else {
|
166
|
-
@include colour-border("keyline-dark",
|
164
|
+
@include colour-border("keyline-dark", $border-width, solid);
|
167
165
|
}
|
168
166
|
}
|
169
167
|
|
170
|
-
@mixin thick-keyline-accent($direction: "") {
|
168
|
+
@mixin thick-keyline-accent($direction: "", $veryThick: false) {
|
169
|
+
$border-width: borders.$thick-border-width;
|
170
|
+
@if $veryThick {
|
171
|
+
$border-width: borders.$very-thick-border-width;
|
172
|
+
}
|
171
173
|
@if $direction != "" {
|
172
|
-
@include colour-border(
|
173
|
-
"accent-border",
|
174
|
-
borders.$thick-border-width,
|
175
|
-
solid,
|
176
|
-
$direction
|
177
|
-
);
|
174
|
+
@include colour-border("accent-border", $border-width, solid, $direction);
|
178
175
|
} @else {
|
179
|
-
@include colour-border("accent-border",
|
176
|
+
@include colour-border("accent-border", $border-width, solid);
|
180
177
|
}
|
181
178
|
}
|
182
179
|
|
183
|
-
@mixin thick-keyline-error($direction: "") {
|
180
|
+
@mixin thick-keyline-error($direction: "", $veryThick: false) {
|
181
|
+
$border-width: borders.$thick-border-width;
|
182
|
+
@if $veryThick {
|
183
|
+
$border-width: borders.$very-thick-border-width;
|
184
|
+
}
|
184
185
|
@if $direction != "" {
|
185
186
|
@include colour-border(
|
186
187
|
"form-error-border",
|
187
|
-
|
188
|
+
$border-width,
|
188
189
|
solid,
|
189
190
|
$direction
|
190
191
|
);
|
191
192
|
} @else {
|
192
|
-
@include colour-border(
|
193
|
-
"form-error-border",
|
194
|
-
borders.$thick-border-width,
|
195
|
-
solid
|
196
|
-
);
|
193
|
+
@include colour-border("form-error-border", $border-width, solid);
|
197
194
|
}
|
198
195
|
}
|
199
196
|
|
200
|
-
@mixin thick-keyline-brand($direction: "", $brandColour) {
|
197
|
+
@mixin thick-keyline-brand($direction: "", $brandColour, $veryThick: false) {
|
198
|
+
$border-width: borders.$thick-border-width;
|
199
|
+
@if $veryThick {
|
200
|
+
$border-width: borders.$very-thick-border-width;
|
201
|
+
}
|
201
202
|
@if $direction != "" {
|
202
|
-
border-#{$direction}:
|
203
|
-
#{brand-colour($brandColour)}
|
204
|
-
solid;
|
203
|
+
border-#{$direction}: $border-width #{brand-colour($brandColour)} solid;
|
205
204
|
} @else {
|
206
|
-
border:
|
205
|
+
border: $border-width #{brand-colour($brandColour)} solid;
|
207
206
|
}
|
208
207
|
}
|
209
208
|
|
210
|
-
@mixin thick-keyline-transparent($direction: "") {
|
209
|
+
@mixin thick-keyline-transparent($direction: "", $veryThick: false) {
|
210
|
+
$border-width: borders.$thick-border-width;
|
211
|
+
@if $veryThick {
|
212
|
+
$border-width: borders.$very-thick-border-width;
|
213
|
+
}
|
211
214
|
@if $direction != "" {
|
212
|
-
border-#{$direction}:
|
215
|
+
border-#{$direction}: $border-width transparent solid;
|
213
216
|
} @else {
|
214
|
-
border:
|
217
|
+
border: $border-width transparent solid;
|
215
218
|
}
|
216
219
|
}
|
217
220
|
|
@@ -23,6 +23,10 @@
|
|
23
23
|
@include typography.font-size(typographyVars.$body-font-size-px);
|
24
24
|
line-height: typographyVars.$body-line-height;
|
25
25
|
|
26
|
+
@include media.on-medium {
|
27
|
+
@include typography.font-size(typographyVars.$body-font-size-px-medium);
|
28
|
+
}
|
29
|
+
|
26
30
|
@include media.on-mobile {
|
27
31
|
@include typography.font-size(typographyVars.$body-font-size-px-mobile);
|
28
32
|
}
|
@@ -23,7 +23,8 @@ $relative-1rem-px: 16; // 16px = 1rem
|
|
23
23
|
*/
|
24
24
|
$use-local-fonts: false !default;
|
25
25
|
|
26
|
-
$body-font-size-px:
|
26
|
+
$body-font-size-px: 19 !default;
|
27
|
+
$body-font-size-px-medium: 18 !default;
|
27
28
|
$body-font-size-px-mobile: 17 !default;
|
28
29
|
$body-line-height: 1.75 !default;
|
29
30
|
|
@@ -89,12 +90,12 @@ $heading-l-font-size-tiny: 25 !default;
|
|
89
90
|
$heading-l-line-height: 1.3 !default;
|
90
91
|
|
91
92
|
$heading-m-font-size-default: 22 !default;
|
92
|
-
$heading-m-font-size-medium:
|
93
|
-
$heading-m-font-size-small:
|
94
|
-
$heading-m-font-size-tiny:
|
93
|
+
$heading-m-font-size-medium: $heading-m-font-size-default !default;
|
94
|
+
$heading-m-font-size-small: 21 !default;
|
95
|
+
$heading-m-font-size-tiny: $heading-m-font-size-small !default;
|
95
96
|
$heading-m-line-height: 1.6 !default;
|
96
97
|
|
97
|
-
$heading-s-font-size-default:
|
98
|
+
$heading-s-font-size-default: 19 !default;
|
98
99
|
$heading-s-font-size-medium: $heading-s-font-size-default !default;
|
99
100
|
$heading-s-font-size-small: $heading-s-font-size-default !default;
|
100
101
|
$heading-s-font-size-tiny: $heading-s-font-size-default !default;
|