From ee0e159edf99d4c31dca573da04be63109d91277 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 24 Oct 2019 23:07:35 +0200 Subject: [PATCH] [10.0.52.dev) suppression line height dans thme.css + image map --- core/core.php | 10 +++++----- core/layout/common.css | 7 ++++--- core/module/theme/view/menu/menu.js.php | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/core/core.php b/core/core.php index b4b1c610..2e92e244 100644 --- a/core/core.php +++ b/core/core.php @@ -31,7 +31,7 @@ class common { const TEMP_DIR = 'site/tmp/'; // Numéro de version - const ZWII_VERSION = '10.0.51.dev'; + const ZWII_VERSION = '10.0.52.dev'; public static $actions = []; public static $coreModuleIds = [ @@ -112,7 +112,7 @@ class common { // 'codemirror', // Désactivé par défaut 'tippy', 'zwiico', - // 'imagemap', + 'imagemap', 'simplelightbox' ], 'view' => '' @@ -163,8 +163,8 @@ class common { if (file_exists(self::DATA_DIR . 'core.json') === true && $this->getData(['core','dataVersion']) < 10000) { $this->importData(); - //common::$importNotices [] = "Importation réalisée avec succès" ; - echo ''; + common::$importNotices [] = "Importation réalisée avec succès" ; + //echo ''; } // Installation fraîche, initialisation des modules manquants @@ -1257,7 +1257,7 @@ class core extends common { $css .= 'nav{margin:0 20px 0}'; } } - $css .= '#i18nBar {padding:' . $this->getData(['theme', 'menu', 'height']) . ';}'; + //$css .= '#i18nBar {padding:' . $this->getData(['theme', 'menu', 'height']) . ';}'; $colors = helper::colorVariants($this->getData(['theme', 'menu', 'backgroundColor'])); $css .= 'nav #burgerText {color:' . $colors['text'] . ';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'menu', 'font'])) . '",sans-serif;' . 'font-weight:' . $this->getData(['theme', 'menu', 'fontWeight']) . ';text-transform:' . $this->getData(['theme', 'menu', 'textTransform']) . '}'; $css .= '#toggle span,#menu a{padding:' . $this->getData(['theme', 'menu', 'height']) .';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'menu', 'font'])) . '",sans-serif;font-weight:' . $this->getData(['theme', 'menu', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'menu', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'menu', 'textTransform']) . '}'; diff --git a/core/layout/common.css b/core/layout/common.css index b8d5cbce..56b6076b 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -596,9 +596,9 @@ ul .menuSideChild, li .menuSideChild { /* Icones de langues du menu */ nav .flag { height: 12px; - vertical-align: top; padding: 0 3px 0 3px; max-width:100%; + max-height:100%; } nav .flagSelected { @@ -608,10 +608,11 @@ nav .flagSelected { /* Paramètres du menu et de la barre de langue */ #menuBar { - display: inline-flex ; + display: inline-flex; } #i18nBar { - display: flex ; + margin: 5px; + display: inline-flex; float: right; } diff --git a/core/module/theme/view/menu/menu.js.php b/core/module/theme/view/menu/menu.js.php index af5e8741..64daaabe 100755 --- a/core/module/theme/view/menu/menu.js.php +++ b/core/module/theme/view/menu/menu.js.php @@ -23,7 +23,7 @@ $("input, select").on("change", function() { css += "nav a,#toggle span,nav a:hover{color:" + $("#themeMenuTextColor").val() + "}"; css += "nav a:hover{background-color:" + colors.darken + "}"; css += "nav a.active{background-color:" + colors.veryDarken + "}"; - css += "#i18nBar {padding:" + $("#themeMenuHeight").val() + "}"; + //css += "#i18nBar {padding:" + $("#themeMenuHeight").val() + "}"; // 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