From c9461c68573b8ea7380313a26344102a6530da02 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 27 Jun 2019 20:52:30 +0200 Subject: [PATCH] =?UTF-8?q?[9.2.00.dev]=20r=C3=A9glage=20des=20marges=20du?= =?UTF-8?q?=20contenu=20personnalis=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 1 + core/module/theme/view/footer/footer.js.php | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/core/core.php b/core/core.php index a1bc59ad..20d0d31d 100644 --- a/core/core.php +++ b/core/core.php @@ -1092,6 +1092,7 @@ class core extends common { $css .= 'footer{background-color:' . $colors['normal'] . ';color:' . $this->getData(['theme', 'footer', 'textColor']) . '}'; $css .= 'footer a{color:' . $this->getData(['theme', 'footer', 'textColor']) . '}'; //$css .= 'footer .container > div {padding:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; + $css .= '#footerFontText > p {margin-top: 0; margin-bottom: 0;}'; $css .= '#footersiteLeft, #footersiteCenter, #footersiteRight {padding:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; $css .= '#footerSocials{text-align:' . $this->getData(['theme', 'footer', 'socialsAlign']) . '}'; $css .= '#footerText{text-align:' . $this->getData(['theme', 'footer', 'textAlign']) . '}'; diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php index a89e9dc1..5216fdf9 100755 --- a/core/module/theme/view/footer/footer.js.php +++ b/core/module/theme/view/footer/footer.js.php @@ -56,11 +56,18 @@ $("input, select").on("change", function() { break; case 'site': $("footer").show().appendTo("#site"); + $("footer > div:first-child").removeAttr("class"); + $("footer > div:first-child").addClass("container"); break; case 'body': $("footer").show().appendTo("body"); + $("footer > div:first-child").removeAttr("class"); + $("footer > div:first-child").addClass("container-large"); break; } + // RĂ©duire la marge du paragraphe de la zone de texte enrichie + $("#footerFontText > p").css("margin-top","0"); + $("#footerFontText > p").css("margin-bottom","0"); });