From 3be60a5fa10974e13fa3f16818ed306beb15e09d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 21 Apr 2021 08:55:21 +0100 Subject: [PATCH] Don't show the mobile menu when page is loading --- web/themes/custom/opdavies/assets/css/utilities/x-cloak.pcss | 3 +++ web/themes/custom/opdavies/templates/layout/page.html.twig | 2 +- web/themes/custom/opdavies/templates/menu/menu--main.html.twig | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 web/themes/custom/opdavies/assets/css/utilities/x-cloak.pcss diff --git a/web/themes/custom/opdavies/assets/css/utilities/x-cloak.pcss b/web/themes/custom/opdavies/assets/css/utilities/x-cloak.pcss new file mode 100644 index 0000000..8cf0e3e --- /dev/null +++ b/web/themes/custom/opdavies/assets/css/utilities/x-cloak.pcss @@ -0,0 +1,3 @@ +[x-cloak] { + @apply hidden +} diff --git a/web/themes/custom/opdavies/templates/layout/page.html.twig b/web/themes/custom/opdavies/templates/layout/page.html.twig index 71b863c..1ac529c 100644 --- a/web/themes/custom/opdavies/templates/layout/page.html.twig +++ b/web/themes/custom/opdavies/templates/layout/page.html.twig @@ -59,7 +59,7 @@