gestion footeré
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
This commit is contained in:
@ -44,6 +44,8 @@ $( window ).resize(function() {
|
||||
|
||||
|
||||
function resize() {
|
||||
console.log("resize");
|
||||
|
||||
if($("#header").is(":visible")){
|
||||
$(".navbar-logo").hide();
|
||||
$("#menulink").hide();
|
||||
@ -55,8 +57,13 @@ function resize() {
|
||||
$("#header").show();
|
||||
}
|
||||
|
||||
$("main").css("height",$(window).height()-$(".header").height());
|
||||
$("#page").css("height",$(window).height()-$(".header").height());
|
||||
var footerheight=$("footer").height();
|
||||
if(footerheight) footerheight=footerheight+10;
|
||||
else footerheight=0;
|
||||
console.log(footerheight);
|
||||
|
||||
$("main").css("height",$(window).height()-$(".header").height()-footerheight);
|
||||
$("#page").css("height",$(window).height()-$(".header").height()-footerheight);
|
||||
$("#sidebar").css("min-height",$("body").height()-$(".header").height());
|
||||
}
|
||||
|
||||
|
@ -219,4 +219,33 @@ border-width: 1px;
|
||||
#page {
|
||||
overflow-y: auto;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
/* FOOTER */
|
||||
footer {
|
||||
padding:5px 30px;
|
||||
background-color: var(--colorbgbodydark);
|
||||
color: var(--colorftbodydark) !important;
|
||||
position:absolute;
|
||||
bottom: 0px;
|
||||
left:0px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.footer-adress {
|
||||
font-size:80%;
|
||||
width:50%;
|
||||
}
|
||||
|
||||
.footer-adress p {
|
||||
margin:0px;
|
||||
}
|
||||
|
||||
.footer-social {
|
||||
text-align: right;
|
||||
width:50%;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: var(--colorftbodydark) !important;
|
||||
}
|
Reference in New Issue
Block a user