diff --git a/docs/_includes/components/phase-banner.html b/docs/_includes/components/phase-banner.html index fed98d6..5e2662a 100644 --- a/docs/_includes/components/phase-banner.html +++ b/docs/_includes/components/phase-banner.html @@ -15,9 +15,11 @@ + diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 78564cd..ab3c23c 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -24,8 +24,6 @@ - - Skip to main content {%- include header.html -%} @@ -34,10 +32,7 @@ {%- include footer.html -%} - + diff --git a/docs/_layouts/page.html b/docs/_layouts/page.html index 569a764..a5b297c 100644 --- a/docs/_layouts/page.html +++ b/docs/_layouts/page.html @@ -121,9 +121,9 @@
{% if page.section != undefined %} - {{ page.section }} + {{ page.section }} {% endif %} -

{{ page.title }}

+

{{ page.title }}

{{ content }}
diff --git a/docs/assets/css/_nhsnotify-side-nav.scss b/docs/assets/css/_nhsnotify-side-nav.scss index be60658..427ed6d 100644 --- a/docs/assets/css/_nhsnotify-side-nav.scss +++ b/docs/assets/css/_nhsnotify-side-nav.scss @@ -61,6 +61,10 @@ } } +.nhsnotify-side-nav__list-section:not(:first-of-type) { + margin-top: 24px; +} + .nhsnotify-side-nav__item { padding: 4px 0 0.5em; diff --git a/docs/assets/js/init.js b/docs/assets/js/init.js new file mode 100644 index 0000000..601a42b --- /dev/null +++ b/docs/assets/js/init.js @@ -0,0 +1,6 @@ +// Add classes to body for progressive enhancement +document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' nhsuk-frontend-supported' : ''); + +// Initialize NHS UK Frontend components +import { initAll } from './nhsuk-frontend.min.js'; +initAll();