From 7c8a0a90f4b96cdb33d7f4b0fcc129bbdc6b2adb Mon Sep 17 00:00:00 2001 From: chihyux Date: Mon, 15 Jun 2020 11:24:31 +0800 Subject: [PATCH] fix mobile menu --- assets/javascripts/app.js | 2 +- assets/stylesheets/template/modules/gallery.scss | 1 + assets/stylesheets/template/modules/menu.scss | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 89dd882..c724c97 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -503,7 +503,7 @@ //背景widget設定 if ( location.href.search('editmode=on') != -1 ) { - $('.background').css('z-index','2'); + $('.background').css('z-index','0'); } else { $('.background').css('z-index','-1'); }; diff --git a/assets/stylesheets/template/modules/gallery.scss b/assets/stylesheets/template/modules/gallery.scss index 42dbdd9..39712dc 100644 --- a/assets/stylesheets/template/modules/gallery.scss +++ b/assets/stylesheets/template/modules/gallery.scss @@ -89,6 +89,7 @@ background: lighten($theme-gray, 60%); margin-bottom: 1.25em; border-radius: 0.125em; + width: 100%; @media screen and (max-width: $screen-sm) { margin-right: 1.25em; diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss index ce9c593..3c746bb 100644 --- a/assets/stylesheets/template/modules/menu.scss +++ b/assets/stylesheets/template/modules/menu.scss @@ -245,7 +245,7 @@ @media (max-width: 767px) { .modules-menu .modules-menu-level-0 { - display: unset; + flex-direction: column; } }