From b8e0d532883fb4aa3b60a93d64e2b6411b94d442 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 31 Oct 2020 18:34:55 +0100 Subject: [PATCH] alignement du menu --- core/core.php | 2 +- core/layout/common.css | 6 +++--- core/module/theme/view/menu/menu.js.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/core.php b/core/core.php index 22fb7272..b8666d10 100644 --- a/core/core.php +++ b/core/core.php @@ -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' diff --git a/core/layout/common.css b/core/layout/common.css index ef6e4d48..18ceda2e 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -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 */ diff --git a/core/module/theme/view/menu/menu.js.php b/core/module/theme/view/menu/menu.js.php index ab3848a5..02b257fb 100644 --- a/core/module/theme/view/menu/menu.js.php +++ b/core/module/theme/view/menu/menu.js.php @@ -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(