From 3bc5943028e0c7a1def1ccf8b01f6f7900031f2e Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 24 Apr 2021 20:21:39 -0500 Subject: [PATCH] Trigger mobile nav with css --- assets/css/tailwind.css | 13 +++- components/navbar.vue | 130 ++++++++++++++++++++-------------------- 2 files changed, 77 insertions(+), 66 deletions(-) diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index ad77e5c..e3e1512 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -70,7 +70,6 @@ html { margin: 0; } - /** * Here you would add any custom utilities you need that don't come out of the * box with Tailwind. @@ -160,3 +159,15 @@ html { background-position: -100% 0; } } + + + +button:focus .parent-focus\:visible, +button:active .parent-focus\:visible { + display: block; +} + +button:focus .parent-focus\:hidden, +button:active .parent-focus\:hidden { + display: none; +} diff --git a/components/navbar.vue b/components/navbar.vue index ef68570..5493020 100644 --- a/components/navbar.vue +++ b/components/navbar.vue @@ -2,49 +2,70 @@ @@ -170,10 +170,10 @@ export default { ]) } }, - data: function () { - return { - isOpen: false - } - } + // data: function () { + // return { + // // isOpen: false + // } + // } }