Skip to content

Commit 456307e

Browse files
authored
removing nhs logo from website (#314)
1 parent bf6f67a commit 456307e

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/stylesheets/extra.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
color: black;
2929
}
3030

31-
.md-logo-nhs {
31+
.md-logo-home {
3232
height: auto;
3333
}
3434

@@ -37,8 +37,8 @@ a {
3737
min-width: 24px;
3838
}
3939

40-
.md-header__button.md-logo-nhs :is(img, svg) {
41-
width: 85px !important;
40+
.md-header__button.md-logo-home :is(img, svg) {
41+
width: 32px !important;
4242
height: auto !important;
4343
}
4444

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ theme:
215215
primary: indigo
216216
font:
217217
text: Arial
218-
logo: images/logo/nhs-blue-on-white.jpg
218+
logo: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xMCAyMHYtNmg0djZoNXYtOGgzTDEyIDMgMiAxMmgzdjh6Ii8+PC9zdmc+
219219
favicon: images/favicon/favicon.ico
220220
features:
221221
- search.share
@@ -257,7 +257,7 @@ extra:
257257
name: NHS England Data Science
258258
meta:
259259
- name: "og:image"
260-
content: "https://nhsengland.github.io/datascience/docs/images/logo/nhs-white-on-blue.jpg"
260+
content: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xMCAyMHYtNmg0djZoNXYtOGgzTDEyIDMgMiAxMmgzdjh6Ii8+PC9zdmc+"
261261
generator: false
262262
copyright: Copyright © 2023 Crown Copyright (NHS England)
263263
extra_javascript:

overrides/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ <h1>A showcase of some of our projects!</h1>
486486
const anchor = slides[i].querySelector('a');
487487
anchor.href = url;
488488
const img = anchor.querySelector('img');
489-
img.src = 'images/logo/nhs-blue-on-white.jpg'
490-
img.alt = 'NHS Logo';
489+
img.src = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iIzAwNUVCOCIgZD0iTTEwIDIwdi02aDR2Nmg1di04aDNMMTIgMyAyIDEyaDN2OHoiLz48L3N2Zz4='
490+
img.alt = 'Home Symbol';
491491
const span = anchor.querySelector('span');
492492
span.textContent = `${page.title.split(' - ').shift()} →`;
493493
}

overrides/partials/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<a
4545
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
4646
title="{{ config.site_name | e }}"
47-
class="md-header__button md-logo-nhs"
47+
class="md-header__button md-logo-home"
4848
aria-label="{{ config.site_name }}"
4949
data-md-component="logo"
5050
>

0 commit comments

Comments
 (0)