menu and co

This commit is contained in:
Deltacms 2023-09-22 09:57:09 +02:00
parent 8eca7b4c2a
commit c5a3e63ae1
4 changed files with 11 additions and 3 deletions

View File

@ -495,7 +495,7 @@ core.start = function() {
}
$.each(page, function(index, value) {
$('nav li .' + value).css('min-width', '<?php echo $this->getData(['theme', 'menu', 'minWidthTab']); ?>');
$('nav li ul li .'+value).css('width', $('.'+value).css('width'));
$('nav li ul li a.'+value).css('width', $('nav li a.'+value).css('width'));
$('nav li.' + value).css('text-align', 'left');
});
}
@ -545,7 +545,7 @@ $(document).ready(function(){
$("#navfixedlogout .navSub").css({ 'pointer-events' : 'auto' });
$("#navfixedconnected .navSub").css({ 'pointer-events' : 'auto' });
});
$("nav").mouseleave(function(){
$("nav, .navSub").mouseleave(function(){
$("#navfixedlogout .navSub").css({ 'pointer-events' : 'none' });
$("#navfixedconnected .navSub").css({ 'pointer-events' : 'none' });
});

View File

@ -2566,6 +2566,11 @@ class core extends common {
$marginBottomSmall = $margin;
$marginBottomLarge = $margin;
}
// Site overflow visible si le menu est dans le site ou avant ou après la bannière dans le site
$overflowSite = 'hidden';
if( $this->getData(['theme', 'menu', 'position'])==='site' || ( $this->getData(['theme', 'header', 'position'])==='site' &&
( $this->getData(['theme', 'menu', 'position'])==='site-first' || $this->getData(['theme', 'menu', 'position'])==='site-second' ))) $overflowSite = 'visible';
$css .= '@media screen and (min-width: 800px) { #site { overflow: '.$overflowSite.'; } }';
$css .= '@media screen and (max-width: 799px) { .container { max-width: 100vw; } }';
$css .= $this->getData(['theme', 'site', 'width']) === '100%'
? '@media (min-width: 800px) {#site{margin:0 auto ' . $marginBottomLarge . ' 0 !important;}}@media (max-width: 799px) {#site{margin:0 auto ' . $marginBottomSmall . ' 0 !important;}}#site.light{margin:5% auto !important;} body{margin:0 auto !important;} #bar{margin:0 auto !important;} body > header{margin:0 auto !important;} body > nav {margin: 0 auto !important;} body > footer {margin:0 auto !important;}'

View File

@ -267,7 +267,6 @@ td > .col12 {
}
/* Site */
#site {
overflow: hidden;
margin-top:0 !important;
}
/* Bannière */

View File

@ -28,6 +28,10 @@
z-index: 8;
opacity: 1;
}
/* correction du padding pour les sous-menu */
#menu .navSub a{
padding-bottom: 5px;
}
/* Barre de navigation fixe quand le menu est en-dehors du site et fixe*/
#navfixedlogout {
position: sticky;