Skip to content

Commit

Permalink
Push noscript styles to head
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed Feb 4, 2025
1 parent 4d0678a commit 959f513
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions resources/views/snippets/_noscript.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@
<!-- statamic-peak-tools::snippets/_noscript.antlers.html -->
{{ unless live_preview }}
<noscript>
<style>
nav.hidden,
nav ul [x-cloak],
nav ul li ul {
display: block !important;
}
</style>
<p class="relative z-50 py-3 px-4 bg-gray-100 border-b border-gray-200 text-center font-bold text-xs text-gray-600">{{ trans:strings.no_script }}</p>
</noscript>

{{ push:head }}
<noscript>
<style>
nav.hidden,
nav ul [x-cloak],
nav ul li ul {
display: block !important;
}
</style>
</noscript>
{{ /push:head }}
{{ /unless }}
<!-- End: statamic-peak-tools::snippets/_noscript.antlers.html -->

0 comments on commit 959f513

Please # to comment.