Skip to content

Commit 1e08edc

Browse files
authored
Merge pull request #4004 from nhsuk/split-frontend-stylesheets
Use separate stylesheets for public- and SAIS-facing interfaces
2 parents 0378753 + f545e66 commit 1e08edc

16 files changed

Lines changed: 52 additions & 140 deletions

File tree

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1-
@use "sass:color";
2-
31
// NHS.UK frontend components
4-
@forward "vendor/nhsuk-frontend";
2+
@forward "vendor/nhsuk-frontend" with (
3+
$nhsuk-page-width: 1100px,
4+
$nhsuk-grid-widths: (
5+
one-quarter: 25%,
6+
one-third: 33.3333%,
7+
one-half: 50%,
8+
two-thirds: 66.6666%,
9+
three-quarters: 75%,
10+
full: 100%,
11+
filters: 30%,
12+
results: 70%,
13+
)
14+
);
515

616
// GOV.UK Frontend components
717
@forward "vendor/govuk-frontend";
818

9-
// App-specific components
19+
// Application components
1020
@forward "components";

app/assets/stylesheets/components/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
@forward "highlight";
1313
@forward "search-input";
1414
@forward "secondary-navigation";
15-
@forward "signed-in";
1615
@forward "status";
1716
@forward "summary-list";
1817
@forward "tables";

app/assets/stylesheets/components/_signed-in.scss

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/assets/stylesheets/core/settings/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@use "sass:color";
22
@use "../../vendor/nhsuk-frontend" as *;
33

4-
$page-width: 1100px;
54
// stylelint-disable-next-line scss/dollar-variable-pattern
65
$color_dark-orange: color.scale(
76
color.mix($color_nhsuk-red, $color_nhsuk-yellow, 60%),

app/assets/stylesheets/public.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// NHS.UK frontend components
2+
@forward "vendor/nhsuk-frontend";
3+
4+
// Public-facing GOV.UK Frontend components
5+
@forward "vendor/govuk-frontend/public";
6+
7+
// Public-facing components
8+
@forward "components/autocomplete";
9+
@forward "components/environment";
10+
@forward "components/summary-list";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@use "base" as *;
2+
3+
@forward "components/notification-banner";
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
@forward "file-upload";
22
@forward "notification-banner";
33
@forward "pagination";
4-
@forward "password-input";

app/assets/stylesheets/vendor/govuk-frontend/components/password-input/_index.scss

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
@forward "pkg:nhsuk-frontend/packages/core" with (
2-
$nhsuk-fonts-path: "/",
3-
$nhsuk-grid-widths: (
4-
one-quarter: 25%,
5-
one-third: 33.3333%,
6-
one-half: 50%,
7-
two-thirds: 66.6666%,
8-
three-quarters: 75%,
9-
full: 100%,
10-
filters: 30%,
11-
results: 70%,
12-
)
13-
);
1+
@forward "pkg:nhsuk-frontend/packages/core";

app/javascript/controllers/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ application.register(
3434
NhsukNotificationBannerController,
3535
);
3636

37-
import NhsukPasswordInputController from "./nhsuk_password_input_controller";
38-
application.register("nhsuk-password-input", NhsukPasswordInputController);
39-
4037
import NhsukRadiosController from "./nhsuk_radios_controller";
4138
application.register("nhsuk-radios", NhsukRadiosController);
4239

0 commit comments

Comments
 (0)