loleaflet/css/mobilewizard.css           |   33 +++++++++++++++++++++++++++++++
 loleaflet/src/control/Control.Menubar.js |    4 +--
 2 files changed, 35 insertions(+), 2 deletions(-)

New commits:
commit bab6017803eca2b6b31d7788ede26ec04294636d
Author:     Pedro <pedro.si...@collabora.com>
AuthorDate: Thu Oct 17 09:43:42 2019 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Thu Oct 17 13:10:05 2019 +0200

    Style mobilewizard.menuwizard and add css classes via JS to 
toolbar-hamburger
    
    Change-Id: I8c455507aa79f4cbba6db56597b8fe350554515b
    Reviewed-on: https://gerrit.libreoffice.org/80930
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    Tested-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/loleaflet/css/mobilewizard.css b/loleaflet/css/mobilewizard.css
index e69de29bb..7ca085dc6 100644
--- a/loleaflet/css/mobilewizard.css
+++ b/loleaflet/css/mobilewizard.css
@@ -0,0 +1,33 @@
+span.menu-entry-icon img {
+    width: 24px;
+    margin: 4px;
+}
+
+#mobile-wizard.menuwizard #mobile-wizard-content{
+  overflow: hidden !important;
+}
+
+#mobile-wizard.menuwizard{
+  top: 0px !important;
+  height: 100% !important;
+  z-index: 999 !important;
+}
+
+#mobile-wizard.menuwizard #mobile-wizard-back.close-button{
+  visibility: hidden !important;
+}
+
+#toolbar-hamburger.menuwizard-opened{
+  z-index: 1000 !important;
+  position: relative !important;
+  background-color: #dae6f3 !important;
+  padding-left: 8px !important;
+  border-radius: 0 0 0 100px !important;
+}
+
+#mobile-wizard.menuwizard #mobile-wizard-titlebar{
+  border: none !important;
+}
+span#main-menu-btn-icon {
+    filter: none !important;
+}
diff --git a/loleaflet/src/control/Control.Menubar.js 
b/loleaflet/src/control/Control.Menubar.js
index c4baf137d..6375fed20 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -798,7 +798,7 @@ L.Control.Menubar = L.Control.extend({
                                                        window.mobileMenuWizard 
= true;
                                                        var menuData = 
self._map.menubar.generateFullMenuStructure();
                                                        
self._map.fire('mobilewizard', menuData);
-                                                       
$('#main-menu-btn-icon').css('filter', 'drop-shadow(0px 0px 4px #0b87e7)')
+                                                       
$('#toolbar-hamburger').addClass('menuwizard-opened');
                                                }
                                        } else if (!L.Browser.mobile) {
                                                $menu.show().slideUp(250, 
function() { $menu.css('display', ''); });
@@ -806,7 +806,7 @@ L.Control.Menubar = L.Control.extend({
                                        } else {
                                                window.mobileMenuWizard = false;
                                                
self._map.fire('closemobilewizard');
-                                               
$('#main-menu-btn-icon').css('filter', '')
+                                               
$('#toolbar-hamburger').removeClass('menuwizard-opened').addClass('menuwizard-closed');
                                        }
                                });
                                // hide mobile menu beforeunload
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to