|
1 | 1 | @use "sass:color"; |
2 | 2 |
|
3 | | -// Configure and import GOV.UK Frontend |
4 | | -$govuk-font-family: "Frutiger W01", Arial, sans-serif; |
5 | | -$govuk-border-colour: #d8dde0; |
6 | | -$govuk-brand-colour: #005eb8; |
7 | | -$govuk-error-colour: #d5281b; |
8 | | -$govuk-success-colour: #007f3b; |
9 | | -$govuk-global-styles: false; |
10 | | -$govuk-new-organisation-colours: true; |
11 | | -$govuk-assets-path: "/"; |
| 3 | +// NHS.UK frontend components |
| 4 | +@forward "vendor/nhsuk-frontend"; |
12 | 5 |
|
13 | | -@import "vendor/govuk-frontend"; |
14 | | - |
15 | | -// Configure and import NHS.UK frontend |
16 | | -$nhsuk-fonts-path: "/"; |
17 | | -$nhsuk-grid-widths: ( |
18 | | - one-quarter: 25%, |
19 | | - one-third: 33.3333%, |
20 | | - one-half: 50%, |
21 | | - two-thirds: 66.6666%, |
22 | | - three-quarters: 75%, |
23 | | - full: 100%, |
24 | | - filters: 30%, |
25 | | - results: 70%, |
26 | | -); |
27 | | - |
28 | | -@import "vendor/nhsuk-frontend"; |
29 | | - |
30 | | -// App options |
31 | | -$app-page-width: 1100px; |
32 | | -$color_app-dark-orange: color.scale( |
33 | | - color.mix($color_nhsuk-red, $color_nhsuk-warm-yellow, 55%), |
34 | | - $lightness: -10% |
35 | | -); |
36 | | - |
37 | | -// Import GOV.UK Frontend components (updated to use NHS.UK frontend styles) |
38 | | -@import "vendor/govuk-frontend/components/file-upload"; |
39 | | -@import "vendor/govuk-frontend/components/password-input"; |
| 6 | +// GOV.UK Frontend components |
| 7 | +@forward "vendor/govuk-frontend"; |
40 | 8 |
|
41 | 9 | // App-specific components |
42 | | -@import "core"; |
43 | | -@import "components"; |
44 | | - |
45 | | -// `$nhsuk-page-width` isn’t globally editable, so need to apply manually |
46 | | -.app-signed-in { |
47 | | - .nhsuk-width-container, |
48 | | - .nhsuk-header__container, |
49 | | - .nhsuk-navigation { |
50 | | - max-width: $app-page-width; |
51 | | - |
52 | | - @include nhsuk-media-query($from: desktop) { |
53 | | - margin: 0 $nhsuk-gutter; |
54 | | - } |
55 | | - |
56 | | - @include nhsuk-media-query( |
57 | | - $and: "(min-width: #{($app-page-width + $nhsuk-gutter * 2)})" |
58 | | - ) { |
59 | | - margin: 0 auto; |
60 | | - } |
61 | | - } |
62 | | -} |
| 10 | +@forward "components"; |
0 commit comments