Mise en attente line-height proportionnelle
This commit is contained in:
parent
c1168c7ee8
commit
aaefb93363
@ -376,11 +376,11 @@ core.start = function() {
|
|||||||
var height = heightpx.substr(0,heightpx.length-2);
|
var height = heightpx.substr(0,heightpx.length-2);
|
||||||
var ratio = width / height;
|
var ratio = width / height;
|
||||||
if ( ($(window).width() / ratio) <= height) {
|
if ( ($(window).width() / ratio) <= height) {
|
||||||
var feature = "<?php echo $this->getdata(['theme','header','feature']);?>";
|
//var feature = "<?php echo $this->getdata(['theme','header','feature']);?>";
|
||||||
$("header").height( $(window).width() / ratio );
|
$("header").height( $(window).width() / ratio );
|
||||||
if( feature !== "feature"){
|
//if( feature !== "feature"){
|
||||||
$("header").css("line-height", $(window).width() / ratio + "px");
|
// $("header").css("line-height", $(window).width() / ratio + "px");
|
||||||
};
|
//};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).trigger("resize");
|
}).trigger("resize");
|
||||||
|
Loading…
Reference in New Issue
Block a user