[9.2.03] correction sticky menu
This commit is contained in:
parent
2120ee51f8
commit
fdd09c0f65
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## Version 9.2.03
|
||||
- Corrections :
|
||||
- Menu fixe en dehors du site : impossibilité de sélectionner un élément sous un sous-menu.
|
||||
- Modification de structure du fichier main.php
|
||||
|
||||
## Version 9.2.02
|
||||
- Correction :
|
||||
|
@ -216,6 +216,7 @@ core.start = function() {
|
||||
menuDOM.css("display", "");
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Message sur l'utilisation des cookies
|
||||
*/
|
||||
@ -328,16 +329,6 @@ core.start = function() {
|
||||
});
|
||||
}).trigger("resize");
|
||||
|
||||
// Ajouter l'attribut data-lity afin de faire la liaison avec lity
|
||||
//$("a[rel='data-lity']").attr("data-lity","");
|
||||
|
||||
// Ajouter la classe Gallery afin de faire la liaison avec simplelightbox
|
||||
//$("a[rel='gallery']").addClass("gallery","");
|
||||
|
||||
|
||||
// Appel dans init.js
|
||||
// $('.gallery').simpleLightbox();
|
||||
|
||||
};
|
||||
core.start();
|
||||
|
||||
@ -369,3 +360,19 @@ core.relativeLuminanceW3C = function(rgba) {
|
||||
var B = (BsRGBA <= .03928) ? BsRGBA / 12.92 : Math.pow((BsRGBA + .055) / 1.055, 2.4);
|
||||
return .2126 * R + .7152 * G + .0722 * B;
|
||||
};
|
||||
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
/**
|
||||
* Affiche le sous-menu quand il est sticky
|
||||
*/
|
||||
$("nav").mouseenter(function(){
|
||||
$("#navfixedlogout .navLevel2").css({ 'pointer-events' : 'auto' });
|
||||
$("#navfixedconnected .navLevel2").css({ 'pointer-events' : 'auto' });
|
||||
});
|
||||
$("nav").mouseleave(function(){
|
||||
$("#navfixedlogout .navLevel2").css({ 'pointer-events' : 'none' });
|
||||
$("#navfixedconnected .navLevel2").css({ 'pointer-events' : 'none' });
|
||||
});
|
||||
});
|
||||
|
@ -32,7 +32,7 @@ class common {
|
||||
const TEMP_DIR = 'site/tmp/';
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_VERSION = '9.2.02';
|
||||
const ZWII_VERSION = '9.2.03';
|
||||
|
||||
public static $actions = [];
|
||||
public static $coreModuleIds = [
|
||||
@ -2141,7 +2141,7 @@ class layout extends common {
|
||||
empty($childrenPageIds)) {
|
||||
continue;
|
||||
}
|
||||
$items .= '<ul>';
|
||||
$items .= '<ul class="navLevel2">';
|
||||
foreach($childrenPageIds as $childKey) {
|
||||
// Propriétés de l'item
|
||||
$active = ($childKey === $currentPageId) ? ' class="active"' : '';
|
||||
@ -2205,7 +2205,7 @@ class layout extends common {
|
||||
'">Connexion</a></li>';
|
||||
}
|
||||
// Retourne les items du menu
|
||||
echo '<ul>' . $items . '</ul>';
|
||||
echo '<ul class="navLevel1">' . $items . '</ul>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -454,6 +454,7 @@ nav li ul li {
|
||||
display: block;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
nav li:hover ul {
|
||||
z-index: 8;
|
||||
opacity: 1;
|
||||
@ -472,7 +473,6 @@ nav a:hover {
|
||||
nav #menu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
@ -518,8 +518,10 @@ nav a:hover {
|
||||
position: sticky;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#navfixedconnected .navLevel2,
|
||||
#navfixedlogout .navLevel2 {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Menu vertical */
|
||||
|
||||
@ -933,8 +935,8 @@ label {
|
||||
padding: 10px 0;
|
||||
background: #F5F5F5;
|
||||
text-align: center;
|
||||
float: right;
|
||||
min-height :100%;
|
||||
/*float: right;*/
|
||||
min-height :100%;
|
||||
}
|
||||
.inputFile:hover {
|
||||
text-decoration: none;
|
||||
|
@ -40,11 +40,8 @@
|
||||
?>
|
||||
>
|
||||
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||
<div id="menu" class="
|
||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'top'){echo 'container-large';}else{echo'container';}
|
||||
?>">
|
||||
|
||||
<?php $layout->showMenu(); ?>
|
||||
<div id="menu" class="<?php if($this->getData(['theme', 'menu', 'position']) === 'top'){echo 'container-large';}else{echo'container';}
|
||||
?>"><?php $layout->showMenu(); ?>
|
||||
</div>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
@ -54,7 +51,7 @@
|
||||
<?php
|
||||
if ($this->getData(['theme','header','linkHome'])){
|
||||
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
|
||||
<?php if(
|
||||
<?php if (
|
||||
$this->getData(['theme', 'header', 'textHide']) === false
|
||||
// Affiche toujours le titre de la bannière pour l'édition du thème
|
||||
OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header')
|
||||
|
Loading…
Reference in New Issue
Block a user