forked from ZwiiCMS-Team/ZwiiCMS
Réduction margin padding dans footer
This commit is contained in:
parent
74af9af2ca
commit
e4469a5a89
@ -77,11 +77,11 @@ class theme extends common {
|
||||
'bold' => 'Gras'
|
||||
];
|
||||
public static $footerHeights = [
|
||||
'5px' => 'Très petite',
|
||||
'10px' => 'Petite',
|
||||
'20px' => 'Moyenne',
|
||||
'30px' => 'Grande',
|
||||
'40px' => 'Très grande'
|
||||
'0px' => 'Très petite',
|
||||
'5px' => 'Petite',
|
||||
'10px' => 'Moyenne',
|
||||
'15px' => 'Grande',
|
||||
'20px' => 'Très grande'
|
||||
];
|
||||
public static $footerPositions = [
|
||||
'hide' => 'Cachée',
|
||||
|
@ -22,7 +22,9 @@ $("input, select").on("change", function() {
|
||||
css += "footer a{color:" + textColor + "}";
|
||||
// Hauteur du pied de page
|
||||
css += "footer .container > div{margin:" + $("#themeFooterHeight").val() + " 0}";
|
||||
css += "footer .container > div{padding:0}";
|
||||
css += "footer .container-large > div{margin:" + $("#themeFooterHeight").val() + " 0}";
|
||||
css += "footer .container-large > div{padding:0}";
|
||||
// Alignement du contenu
|
||||
css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}";
|
||||
css += "#footerText{text-align:" + $("#themeFooterTextAlign").val() + "}";
|
||||
@ -55,10 +57,8 @@ $("input, select").on("change", function() {
|
||||
}
|
||||
});
|
||||
|
||||
// Position dans les blocs FT
|
||||
|
||||
// Position dans les blocs
|
||||
// Bloc texte personnalisé
|
||||
|
||||
$("#themeFooterForm").on("change",function() {
|
||||
switch($("#themeFooterTextPosition").val()) {
|
||||
case 'hide':
|
||||
@ -90,6 +90,7 @@ $("#themeFooterForm").on("change",function() {
|
||||
$("#footerSocials").show().appendTo("#footersiteCenter");
|
||||
break;
|
||||
case 'right':
|
||||
console.log("right");
|
||||
$("#footerSocials").show().appendTo("#footerbodyRight");
|
||||
$("#footerSocials").show().appendTo("#footersiteRight");
|
||||
break;
|
||||
@ -112,8 +113,6 @@ $("#themeFooterForm").on("change",function() {
|
||||
break;
|
||||
}
|
||||
}).trigger("change");
|
||||
|
||||
|
||||
// Fin Position dans les blocs
|
||||
|
||||
|
||||
@ -128,10 +127,12 @@ $("#themeFooterLoginLink").on("change", function() {
|
||||
$("#footerLoginLink").hide();
|
||||
}
|
||||
}).trigger("change");
|
||||
|
||||
// Aperçu du texte
|
||||
$("#themeFooterText").on("change keydown keyup", function() {
|
||||
$("#footerText").html($(this).val());
|
||||
});
|
||||
|
||||
// Affiche / Cache les options de la position
|
||||
$("#themeFooterPosition").on("change", function() {
|
||||
if($(this).val() === 'site') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user