alignement du menu

This commit is contained in:
Fred Tempez 2020-10-31 18:34:55 +01:00
parent 81a6496ee6
commit b8e0d53288
3 changed files with 5 additions and 5 deletions

View File

@ -1597,7 +1597,7 @@ class core extends common {
}
$css .= 'nav #burgerText{color:' . $colors['text'] . '}';
$css .= 'nav .navLevel1 a.active {border-radius:' . $this->getData(['theme', 'menu', 'radius']) . '}';
$css .= '#menu{text-align:' . $this->getData(['theme', 'menu', 'textAlign']) . '}';
$css .= '#menuLeft{float:' . $this->getData(['theme', 'menu', 'textAlign']) . '}';
if($this->getData(['theme', 'menu', 'margin'])) {
if(
$this->getData(['theme', 'menu', 'position']) === 'site-first'

View File

@ -523,11 +523,11 @@ nav a:hover {
}
nav #menuLeft {
display: flex;
float: left;
display: inline-flex;
/*float: left;*/
}
nav #menuRight {
display: flex;
display: inline-flex;
float: right;
}
/* fin barre de menu */

View File

@ -54,7 +54,7 @@ $("input, select").on("change", function() {
// Taille, hauteur, épaisseur et capitalisation de caractères du menu
css += "#toggle span,#menu a{padding:" + $("#themeMenuHeight").val() + ";font-family:'" + menuFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeMenuFontWeight").val() + ";font-size:" + $("#themeMenuFontSize").val() + ";text-transform:" + $("#themeMenuTextTransform").val() + "}";
// Alignement du menu
css += "#menu{text-align:" + $("#themeMenuTextAlign").val() + "}";
css += "#menuLeft{float:" + $("#themeMenuTextAlign").val() + "}";
// Marge
if($("#themeMenuMargin").is(":checked")) {
if(