From 702b75531969f33cacfdd0b5094ed003a3f24671 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 26 Dec 2020 23:01:55 +0000 Subject: [PATCH] Make child links toggleable --- assets/css/tailwind.pcss | 6 ++++++ templates/html.html.twig | 1 + templates/includes/navbar.html.twig | 21 +++++++++++++++++---- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/assets/css/tailwind.pcss b/assets/css/tailwind.pcss index b5c61c9..6fd7ca0 100644 --- a/assets/css/tailwind.pcss +++ b/assets/css/tailwind.pcss @@ -1,3 +1,9 @@ @tailwind base; @tailwind components; @tailwind utilities; + +@layer base { + [x-cloak] { + display: none + } +} diff --git a/templates/html.html.twig b/templates/html.html.twig index 93e2951..c06165f 100644 --- a/templates/html.html.twig +++ b/templates/html.html.twig @@ -10,6 +10,7 @@ {% block body %}{% endblock %} + {% block javascripts %}{% endblock %} diff --git a/templates/includes/navbar.html.twig b/templates/includes/navbar.html.twig index 3650f0e..b1b2912 100644 --- a/templates/includes/navbar.html.twig +++ b/templates/includes/navbar.html.twig @@ -15,14 +15,27 @@