[9.1.13] footer avec marges ok
This commit is contained in:
parent
f8668168dd
commit
c7fdb3e997
@ -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']) . '}';
|
||||
|
@ -576,6 +576,10 @@ footer {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#footersite {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#footerLoginLink,
|
||||
#footerDisplayCopyright,
|
||||
#footerDisplayVersion,
|
||||
|
@ -81,18 +81,15 @@ class theme extends common {
|
||||
'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'
|
||||
];
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user