Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/_includes/components/phase-banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@

</div>
</div>
<!--
<script>
console.log("{{include.auto_hide}}")
if ("{{include.auto_hide}}" == 'true' && (window.location.hostname.startsWith('notify.nhs.uk') || window.location.hostname.startsWith('127.0.0.2'))) {
document.getElementById("{{ include.phase_id }}").style.visibility = 'hidden';
}
</script>
-->
7 changes: 1 addition & 6 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
</head>

<body class="wrap">
<script>document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' nhsuk-frontend-supported' : '');</script>

<a class="nhsuk-skip-link" href="#maincontent">Skip to main content</a>

{%- include header.html -%}
Expand All @@ -34,10 +32,7 @@

{%- include footer.html -%}

<script type="module">
import { initAll } from '{{site.baseurl}}/assets/js/nhsuk-frontend.min.js'
initAll()
</script>
<script type="module" src="{{site.baseurl}}/assets/js/init.js"></script>
</body>

</html>
4 changes: 2 additions & 2 deletions docs/_layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@
</div>
<div class="nhsnotify-pane__main-content">
{% if page.section != undefined %}
<heading class="nhsuk-heading-s" style="margin-bottom: 0; color: #4c6272">{{ page.section }}</heading>
<span class="nhsuk-caption-xl">{{ page.section }}</span>
{% endif %}
<h1>{{ page.title }}</h1>
<h1 class="nhsuk-heading-xl">{{ page.title }}</h1>
{{ content }}
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions docs/assets/css/_nhsnotify-side-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 6 additions & 0 deletions docs/assets/js/init.js
Original file line number Diff line number Diff line change
@@ -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();
Loading