Réduction margin padding dans footer

This commit is contained in:
fredtempez 2019-01-19 23:37:36 +01:00
parent 74af9af2ca
commit e4469a5a89
2 changed files with 15 additions and 14 deletions

View File

@ -77,11 +77,11 @@ class theme extends common {
'bold' => 'Gras' 'bold' => 'Gras'
]; ];
public static $footerHeights = [ public static $footerHeights = [
'5px' => 'Très petite', '0px' => 'Très petite',
'10px' => 'Petite', '5px' => 'Petite',
'20px' => 'Moyenne', '10px' => 'Moyenne',
'30px' => 'Grande', '15px' => 'Grande',
'40px' => 'Très grande' '20px' => 'Très grande'
]; ];
public static $footerPositions = [ public static $footerPositions = [
'hide' => 'Cachée', 'hide' => 'Cachée',

View File

@ -22,7 +22,9 @@ $("input, select").on("change", function() {
css += "footer a{color:" + textColor + "}"; css += "footer a{color:" + textColor + "}";
// Hauteur du pied de page // Hauteur du pied de page
css += "footer .container > div{margin:" + $("#themeFooterHeight").val() + " 0}"; 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{margin:" + $("#themeFooterHeight").val() + " 0}";
css += "footer .container-large > div{padding:0}";
// Alignement du contenu // Alignement du contenu
css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}"; css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}";
css += "#footerText{text-align:" + $("#themeFooterTextAlign").val() + "}"; css += "#footerText{text-align:" + $("#themeFooterTextAlign").val() + "}";
@ -55,24 +57,22 @@ $("input, select").on("change", function() {
} }
}); });
// Position dans les blocs FT // Position dans les blocs
// Bloc texte personnalisé // Bloc texte personnalisé
$("#themeFooterForm").on("change",function() { $("#themeFooterForm").on("change",function() {
switch($("#themeFooterTextPosition").val()) { switch($("#themeFooterTextPosition").val()) {
case 'hide': case 'hide':
$("#footerText").hide(); $("#footerText").hide();
break; break;
case 'left': case 'left':
$("#footerText").show().appendTo("#footerbodyLeft"); $("#footerText").show().appendTo("#footerbodyLeft");
$("#footerText").show().appendTo("#footersiteLeft"); $("#footerText").show().appendTo("#footersiteLeft");
break; break;
case 'center': case 'center':
$("#footerText").show().appendTo("#footerbodyCenter"); $("#footerText").show().appendTo("#footerbodyCenter");
$("#footerText").show().appendTo("#footersiteCenter"); $("#footerText").show().appendTo("#footersiteCenter");
break; break;
case 'right': case 'right':
$("#footerText").show().appendTo("#footerbodyRight"); $("#footerText").show().appendTo("#footerbodyRight");
$("#footerText").show().appendTo("#footersiteRight"); $("#footerText").show().appendTo("#footersiteRight");
break; break;
@ -82,7 +82,7 @@ $("#themeFooterForm").on("change",function() {
$("#footerSocials").hide(); $("#footerSocials").hide();
break; break;
case 'left': case 'left':
$("#footerSocials").show().appendTo("#footerbodyLeft"); $("#footerSocials").show().appendTo("#footerbodyLeft");
$("#footerSocials").show().appendTo("#footersiteLeft"); $("#footerSocials").show().appendTo("#footersiteLeft");
break; break;
case 'center': case 'center':
@ -90,6 +90,7 @@ $("#themeFooterForm").on("change",function() {
$("#footerSocials").show().appendTo("#footersiteCenter"); $("#footerSocials").show().appendTo("#footersiteCenter");
break; break;
case 'right': case 'right':
console.log("right");
$("#footerSocials").show().appendTo("#footerbodyRight"); $("#footerSocials").show().appendTo("#footerbodyRight");
$("#footerSocials").show().appendTo("#footersiteRight"); $("#footerSocials").show().appendTo("#footersiteRight");
break; break;
@ -112,8 +113,6 @@ $("#themeFooterForm").on("change",function() {
break; break;
} }
}).trigger("change"); }).trigger("change");
// Fin Position dans les blocs // Fin Position dans les blocs
@ -128,10 +127,12 @@ $("#themeFooterLoginLink").on("change", function() {
$("#footerLoginLink").hide(); $("#footerLoginLink").hide();
} }
}).trigger("change"); }).trigger("change");
// Aperçu du texte // Aperçu du texte
$("#themeFooterText").on("change keydown keyup", function() { $("#themeFooterText").on("change keydown keyup", function() {
$("#footerText").html($(this).val()); $("#footerText").html($(this).val());
}); });
// Affiche / Cache les options de la position // Affiche / Cache les options de la position
$("#themeFooterPosition").on("change", function() { $("#themeFooterPosition").on("change", function() {
if($(this).val() === 'site') { if($(this).val() === 'site') {