Browse Source

fix issue #31

develop
Simon Vieille 2 months ago
parent
commit
511f5a0c45
Signed by: deblan GPG Key ID: 03383D15A1D31745
2 changed files with 11 additions and 10 deletions
  1. +2
    -6
      css/sideMenu.css
  2. +9
    -4
      templates/js/script.php

+ 2
- 6
css/sideMenu.css View File

@ -217,15 +217,11 @@
.side-menu-always-displayed #side-menu.open,
.side-menu-always-displayed #side-menu.open .side-menu-apps-list,
.side-menu-always-displayed #side-menu.open .side-menu-header,
.side-menu-always-displayed #side-menu:hover,
.side-menu-always-displayed #side-menu:hover .side-menu-apps-list,
.side-menu-always-displayed #side-menu:hover .side-menu-header {
.side-menu-always-displayed #side-menu.open .side-menu-header {
width: 100%;
}
.side-menu-always-displayed #side-menu.open .side-menu-app-text,
.side-menu-always-displayed #side-menu:hover .side-menu-app-text {
.side-menu-always-displayed #side-menu.open .side-menu-app-text {
display: inline;
}

+ 9
- 4
templates/js/script.php View File

@ -67,7 +67,7 @@
}
}
<?php if ($_['opener-hover']): ?>
<?php if ($_['opener-hover'] || ($_['always-displayed'] && !$_['big-menu'])): ?>
var sideMenuMouseLeave = function() {
sideMenu
.removeClass('open')
@ -87,9 +87,14 @@
}
if (!isTouchDevice) {
headerMenuOpener.on('mouseenter', sideMenuOpenerMouseEnter)
sideMenu.addClass('hide-opener')
<?php if ($_['opener-hover']): ?>
headerMenuOpener.on('mouseenter', sideMenuOpenerMouseEnter)
sideMenu.addClass('hide-opener')
<?php else: ?>
sideMenu.on('mouseleave', sideMenuMouseLeave)
sideMenu.on('mouseenter', sideMenuOpenerMouseEnter)
<?php endif ?>
}
<?php endif; ?>

Loading…
Cancel
Save