From 218690db00d0b3a8ae737320437de654292af34d Mon Sep 17 00:00:00 2001 From: John BOTELLA Date: Thu, 7 Mar 2019 17:05:27 +0100 Subject: [PATCH] add css behavior --- htdocs/core/lib/functions.lib.php | 4 +--- htdocs/theme/eldy/style.css.php | 5 +++++ htdocs/theme/md/style.css.php | 5 +++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 36cdf2c7686..7d5487f1215 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -7197,9 +7197,7 @@ function printCommonFooter($zone = 'private') print '/* JS CODE TO ENABLE to manage handler to switch left menu page (menuhider) */'."\n"; print 'jQuery(".menuhider").click(function() {'; print ' console.log("We click on .menuhider");'."\n"; - //print " $('.side-nav').animate({width:'toggle'},200);\n"; // OK with eldy theme but not with md - print " $('.side-nav').toggle()\n"; - print " $('.login_block').toggle()\n"; + print " $('body').toggleClass('sidebar-collapse')\n"; print '});'."\n"; } diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index b21a399f8bd..076d2797f08 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -1221,6 +1221,11 @@ td.showDragHandle { box-shadow: 3px 0 6px -2px #eee; background: rgb(); } + +body.sidebar-collapse .side-nav { + display: none; +} + div.blockvmenulogo { border-bottom: 0 !important; diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index fcff90c4359..a7cf2785810 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -1246,6 +1246,11 @@ div.login_block { z-index: 90; } +body.sidebar-collapse .side-nav { + display: none; +} + + div.backgroundsemitransparent { background:rgba(255,255,255,0.6); padding-left: 10px;