From 94376ebd04717a3a28413eefe9c0fc167d705fe4 Mon Sep 17 00:00:00 2001 From: Mohamed Jamoun <114928221+MohamedJamoun@users.noreply.github.com> Date: Wed, 7 Aug 2024 12:05:57 +0100 Subject: [PATCH] TH-6: Theme Editor > Mobile burger menu color is not configurable (#10) --- themes/aura/assets/navbar.css | 6 +- themes/aura/sections/main-navbar.liquid | 103 ++++++++++++++++----- themes/harmony/assets/navbar.css | 6 +- themes/harmony/sections/main-navbar.liquid | 65 ++++++++++++- themes/meraki/assets/navbar.css | 2 +- themes/meraki/sections/main-navbar.liquid | 77 +++++++++++++-- themes/meraki/styles/navbar.scss | 2 +- 7 files changed, 219 insertions(+), 42 deletions(-) diff --git a/themes/aura/assets/navbar.css b/themes/aura/assets/navbar.css index 3a7de56c..3c005ec4 100644 --- a/themes/aura/assets/navbar.css +++ b/themes/aura/assets/navbar.css @@ -92,11 +92,7 @@ max-width: 120px; } } -@media screen and (max-width: 767px) { - .yc-header .yc-navbar .menu, .yc-header .yc-navbar .menu-toggler { - height: 30px; - } -} + @media (min-width: 768px) { .yc-header .yc-navbar .menu-toggler { display: none; diff --git a/themes/aura/sections/main-navbar.liquid b/themes/aura/sections/main-navbar.liquid index 5ae7635f..b6c593ef 100644 --- a/themes/aura/sections/main-navbar.liquid +++ b/themes/aura/sections/main-navbar.liquid @@ -19,6 +19,22 @@ .toggle-navbar { display: {{ section.settings.toggle_navbar ? 'none' : 'block' }}; } + + .menu .menu-toggler { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + width: 40px; + height: 40px; + background-color: var(--background-color); + border-radius: var(--border-radius); + transform: scale(calc(var(--size) / 100)); + } + + .menu .menu-toggler ion-icon { + color: var(--color) !important; + } {% endstyle %} {% if section.settings.toggle_navbar != true %} @@ -42,7 +58,19 @@ {%- when 'menu' %} -