[9.1.13] footer avec marges ok

This commit is contained in:
fredtempez 2019-06-20 07:51:56 +02:00
parent f8668168dd
commit c7fdb3e997
4 changed files with 12 additions and 9 deletions

View File

@ -1081,7 +1081,9 @@ class core extends common {
// Pied de page
$colors = helper::colorVariants($this->getData(['theme', 'footer', 'backgroundColor']));
if($this->getData(['theme', 'footer', 'margin'])) {
$css .= 'footer{margin:0 20px 20px}';
$css .= 'footer{margin:0 20px 20px;padding: 1px 20px;}';
} else {
$css .= 'footer{margin:0;padding:0}';
}
$css .= 'footer span{color:' . $this->getData(['theme', 'footer', 'textColor']) . ';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'footer', 'font'])) . '",sans-serif;font-weight:' . $this->getData(['theme', 'footer', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'footer', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'footer', 'textTransform']) . '}';
$css .= 'footer{background-color:' . $colors['normal'] . ';color:' . $this->getData(['theme', 'footer', 'textColor']) . '}';

View File

@ -576,6 +576,10 @@ footer {
vertical-align: middle;
}
#footersite {
margin: 0;
}
#footerLoginLink,
#footerDisplayCopyright,
#footerDisplayVersion,

View File

@ -80,19 +80,16 @@ class theme extends common {
'left' => 'Bloc Gauche',
'center' => 'Bloc Central',
'right' => 'Bloc Droite'
]
]
];
public static $fontWeights = [
'normal' => 'Maigre',
'bold' => 'Gras'
];
public static $footerHeights = [
'0' => 'Nulles',
'10px' => 'Très petites',
'15px' => 'Petites',
'0' => 'Très petites',
'10px' => 'Petites',
'20px' => 'Grandes',
'30px' => 'Très grandes'
];

View File

@ -37,10 +37,10 @@ $("input, select").on("change", function() {
css += "footer span{color:" + $("#themeFooterTextColor").val() + ";font-family:'" + footerFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeFooterFontWeight").val() + ";font-size:" + $("#themeFooterFontSize").val() + ";text-transform:" + $("#themeFooterTextTransform").val() + "}";
// Marge
if($("#themeFooterMargin").is(":checked")) {
css += 'footer{margin:0 20px 20px}';
css += 'footer{margin:0 20px 20px;padding: 1px 20px;}';
}
else {
css += 'footer{margin:0}';
css += 'footer{margin:0;padding:0}';
}
// Ajout du css au DOM
$("#themePreview").remove();