From 17c1ad06a04cb6eb3c7afeae86784a8e0ffb4955 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 4 Apr 2020 06:53:32 +0100 Subject: [PATCH] feat(js): hide mobile menu when click outside - https://htmldom.dev/detect-clicks-outside-of-an-element --- themes/chameleon/layout/_partial/header.ejs | 6 +++--- themes/chameleon/source/css/chameleon.css | 8 ++++---- themes/chameleon/source/js/chameleon.js | 20 ++++++++++++++++++-- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/themes/chameleon/layout/_partial/header.ejs b/themes/chameleon/layout/_partial/header.ejs index 3ff5653..5737ee8 100644 --- a/themes/chameleon/layout/_partial/header.ejs +++ b/themes/chameleon/layout/_partial/header.ejs @@ -1,6 +1,6 @@