[9.2.00.dev] réglage des marges du contenu personnalisé

This commit is contained in:
fredtempez 2019-06-27 20:52:30 +02:00
parent bd62b58c59
commit c9461c6857
2 changed files with 8 additions and 0 deletions

View File

@ -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']) . '}';

View File

@ -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");
});