Skip to content

Commit 7518bc6

Browse files
basic nhs theming (#14)
1 parent 2a6f921 commit 7518bc6

File tree

16 files changed

+145
-52
lines changed

16 files changed

+145
-52
lines changed

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ description: >- # this means to ignore newlines until "baseurl:"
2525
baseurl: "/nhs-notify-web-cms" # the subpath of your site, e.g. /blog
2626
url: "https://nhsdigital.github.io" # the base hostname & protocol for your site, e.g. http://example.com
2727

28-
collections_dir: _collections
28+
collections_dir: collections
2929

3030
collections:
3131
notify-repos:

docs/_layouts/home.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: default
3+
---
4+
5+
<h1>{{page.site_title}}</h1>
6+
7+
{{ content }}

docs/_layouts/nhs-notify-home.html

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

docs/_layouts/nhs-notify-page.html

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

docs/_layouts/page.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: default
3+
---
4+
5+
<h1>{{page.title}}</h1>
6+
7+
{{ content }}

docs/_sass/color_schemes/nhs.scss

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
11
@import "./color_schemes/light";
22

3+
4+
@font-face {
5+
font-family: "Frutiger W01";
6+
font-style: normal;
7+
src: url("https://assets.nhs.uk/fonts/FrutigerLTW01-55Roman.woff2") format('woff2');
8+
}
9+
10+
@font-face {
11+
font-family: "Frutiger W01";
12+
font-weight: 800;
13+
font-style: normal;
14+
src: url("https://assets.nhs.uk/fonts/FrutigerLTW01-65Bold.woff2") format('woff2');
15+
}
16+
17+
318
// Typography
419

520
// prettier-ignore
6-
$body-font-family: "Frutiger W01", Arial, Sans-serif;
7-
$mono-font-family: "Frutiger W01", Arial, Sans-serif;
21+
$body-font-family: Frutiger W01,Arial,Sans-serif;
22+
$mono-font-family: Frutiger W01,Arial,Sans-serif;
823

924

1025

1126
$blue-000: #005eb8;
1227
$grey-dk-000: #d8dde0;
1328
$grey-dk-100: #f0f4f5;
14-
$sidebar-color: $grey-dk-000;
29+
$grey-dk-300: #212B32;
30+
$sidebar-color: $grey-dk-100;
1531
$body-background-color: $grey-dk-100;
1632
$link-color: $blue-000;
1733

1834
$font-size-7: 1.25rem;
35+
$font-size-6: 2rem;
36+
$font-size-8: 3rem;
37+
//$font-size-5: 1.188rem; // h3

docs/_sass/custom/custom.scss

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Totally custom here.
2+
3+
.nav-category {
4+
text-transform: none;
5+
color: $grey-dk-300;
6+
@include fs-4;
7+
font-weight: 600;
8+
}
9+
10+
.main-content {
11+
ul > {
12+
li::before {
13+
color: $grey-dk-300;
14+
}
15+
}
16+
}
17+
18+
.site-title {
19+
font-weight: 600;
20+
font-size: 1.2rem !important;
21+
}
22+
23+
.nav-list {
24+
.nav-list-item {
25+
@include fs-4;
26+
font-weight: 400;
27+
-webkit-font-smoothing: antialiased;
28+
}
29+
}
30+
31+
body {
32+
color: $grey-dk-300;
33+
font-size: 1.2rem !important;
34+
//line-height: 28px;
35+
//@include fs-5;
36+
}
37+
38+
@media (min-width: 31.25rem) {
39+
h1,
40+
.text-alpha {
41+
font-size: 3rem !important;
42+
font-weight: 600;
43+
}
44+
}
45+
46+
@media (min-width: 31.25rem) {
47+
h2,
48+
.text-alpha {
49+
font-size: 2rem !important;
50+
font-weight: 600;
51+
}
52+
}
53+
54+
@media (min-width: 31.25rem) {
55+
h3,
56+
.text-alpha {
57+
font-size: 1.5rem !important;
58+
font-weight: 600;
59+
}
60+
}

0 commit comments

Comments
 (0)