largeur de la bannière hors le site
This commit is contained in:
parent
4572612051
commit
7db65c45b1
|
@ -26,16 +26,17 @@ $("input, select").on("change", function() {
|
||||||
|
|
||||||
// Contenu perso
|
// Contenu perso
|
||||||
if ($("#themeHeaderFeature").val() == "feature") {
|
if ($("#themeHeaderFeature").val() == "feature") {
|
||||||
css = "header{height:" + $("#themeHeaderHeight").val() + ";line-height:1.3;background-color:'';background-image:'none'!important;}";
|
css = "header{height:" + $("#themeHeaderHeight").val() + ";background-position:top; background-repeat: no-repeat;;line-height:1.15;background-color:unset;;background-image:unset;text-align:unset}";
|
||||||
$("#featureContent").append("header").show();
|
$("#featureContent").appendTo("header").show();
|
||||||
$("#themeHeaderTitle").hide();
|
$("#themeHeaderTitle").hide();
|
||||||
$("header").css("background-image", "none");
|
|
||||||
$("header").css("background-color", "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Couleurs, image, alignement et hauteur de la bannière
|
// Couleurs, image, alignement et hauteur de la bannière
|
||||||
if ($("#themeHeaderFeature").val() == "wallpaper") {
|
if ($("#themeHeaderFeature").val() == "wallpaper") {
|
||||||
|
|
||||||
|
// Masque le contenu perso
|
||||||
|
$("#featureContent").hide();
|
||||||
// Récupérer la taille de l'image
|
// Récupérer la taille de l'image
|
||||||
var tmpImg = new Image();
|
var tmpImg = new Image();
|
||||||
tmpImg.onload = function() {
|
tmpImg.onload = function() {
|
||||||
|
@ -91,13 +92,13 @@ $("input, select").on("change", function() {
|
||||||
|
|
||||||
// Taille, couleur, épaisseur et capitalisation du titre de la bannière
|
// Taille, couleur, épaisseur et capitalisation du titre de la bannière
|
||||||
css += "header span{color:" + $("#themeHeaderTextColor").val() + ";font-family:'" + headerFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeHeaderFontWeight").val() + ";font-size:" + $("#themeHeaderFontSize").val() + ";text-transform:" + $("#themeHeaderTextTransform").val() + "}";
|
css += "header span{color:" + $("#themeHeaderTextColor").val() + ";font-family:'" + headerFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeHeaderFontWeight").val() + ";font-size:" + $("#themeHeaderFontSize").val() + ";text-transform:" + $("#themeHeaderTextTransform").val() + "}";
|
||||||
|
|
||||||
// Cache le titre de la bannière
|
// Cache le titre de la bannière
|
||||||
|
|
||||||
if($("#themeHeaderTextHide").is(":checked")) {
|
if($("#themeHeaderTextHide").is(":checked")) {
|
||||||
$("header #themeHeaderTitle").hide();
|
$("#themeHeaderTitle").hide();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("header #themeHeaderTitle").show();
|
$("#themeHeaderTitle").show();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Marge
|
// Marge
|
||||||
|
@ -165,6 +166,18 @@ $("input, select").on("change", function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Largeur du header
|
||||||
|
switch ($("#themeHeaderContainer").val()) {
|
||||||
|
case "container":
|
||||||
|
$("header").removeClass("container-large");
|
||||||
|
$("header").addClass("container");
|
||||||
|
break;
|
||||||
|
case "container-large":
|
||||||
|
$("header").removeClass("container");
|
||||||
|
$("header").addClass("container-large");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// La bannière est cachée, déplacer le menu dans le site
|
// La bannière est cachée, déplacer le menu dans le site
|
||||||
if (positionHeader === "hide" &&
|
if (positionHeader === "hide" &&
|
||||||
(positionNav === "body-first" ||
|
(positionNav === "body-first" ||
|
||||||
|
|
Loading…
Reference in New Issue