Layout static

This commit is contained in:
Michael RICOIS 2016-06-15 17:51:55 +02:00
parent 7fa85f3f28
commit 91bc8403f6
3 changed files with 30 additions and 44 deletions

View File

@ -12,10 +12,10 @@
<div id="page-wrap">
<?php echo $this->layout()->content?>
</div>
</div>
<div id="footer">
<?php echo $this->render('footer.phtml'); ?>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>

View File

@ -1,23 +1,5 @@
$(function() {
$(window).bind("load resize", function() {
var topOffset = 50;
var bottomOffset = 50;
height = ((this.window.innerHeight > 0) ? this.window.innerHeight : this.screen.height) - 1;
height = height - topOffset - bottomOffset - 40;
if (height < 1) height = 1;
if (height > topOffset) {
$("#page-wrap").css("min-height", (height) + "px");
}
});
$('#side-menu').metisMenu();
var element = $('ul#side-menu.nav a').filter(function() {
return this.href == window.location || window.location.href.indexOf(this.href) == 0;
}).addClass('active').parent().parent().addClass('in').parent();
if (element.is('li')) {
element.addClass('active');
}
$('img.flag').on('click', function() {
var url = window.location.href;
@ -93,9 +75,9 @@ $(function() {
if ($('a.AncienSiege').length){
$('a.AncienSiege').qtip({
hide: { event: "unfocus" },
content: { title: {button: true}, text: $('a.AncienSiege').attr('title') },
style: { width: 350, classes: "ui-tooltip-cream" },
position: { my: "top center", at: "bottom center" }
content: { title: {button:true}, text:$('a.AncienSiege').attr('title') },
style: { width:350, classes:"ui-tooltip-cream" },
position: { my:"top center", at:"bottom center" }
});
$('a.AncienSiege').attr('title', "Cliquez pour consulter les informations d'activité.");
}
@ -103,11 +85,11 @@ $(function() {
//Tooltip RNVP
if ($('a.rnvp').length){
$('a.rnvp').qtip({
hide: { event: "click" },
hide: { event:"click" },
content: {
title: {button: true, text: $('a.rnvp').attr('title')},
title: {button:true, text:$('a.rnvp').attr('title')},
text: function(event,api) {
$.ajax({ url: $(this).data('href') })
$.ajax({ url:$(this).data('href') })
.done(function(html) {
api.set('content.text', html)
})
@ -117,8 +99,8 @@ $(function() {
return 'Chargement...';
}
},
style: { width: 350, classes: "ui-tooltip-cream" },
position: { my: "top center", at: "bottom center" }
style: { width:350, classes:"ui-tooltip-cream" },
position: { my:"top center", at:"bottom center" }
});
}

View File

@ -13,14 +13,15 @@ body {
height: auto !important;
height: 100%;
/* Negative indent footer by its height */
margin: 0 auto -50px;
/*margin: 0 auto -50px;*/
/* Pad bottom by footer height */
padding: 0 0 40px;
/*padding: 0 0 40px;*/
}
/* Set the fixed height of the footer here */
#footer {
height: 50px;
margin: 0 0 0 250px;
background-color: #f8f8f8;
}
@ -54,14 +55,17 @@ p.bg-classes {
----------------------------------*/
body {
background-color: #f8f8f8;
padding-top: 50px;
/*padding-top: 50px;*/
}
#page-wrap {
position: inherit;
margin: 0 0 0 250px;
padding: 0 15px;
border-left: 1px solid #e7e7e7;
border-bottom: 1px solid #e7e7e7;
min-height: 568px;
background-color: #fff;
border-bottom: 1px solid #e7e7e7;
}
/*
@ -74,13 +78,6 @@ body {
}
}*/
#page-wrap {
position: inherit;
margin: 0 0 0 250px;
padding: 0 30px;
border-left: 1px solid #e7e7e7;
}
#content {
background-color: #fff;
padding: 5px 0;
@ -109,6 +106,13 @@ h3 {
.ui-dialog {text-align:left;}
.ui-widget {font-size: 1em;}
.ui-autocomplete-loading {background: white url('/themes/default/images/ui-anim_basic_16x16.gif') right center no-repeat; }
.qtip-titlebar{
font-size:13px;
line-height:13px;
}
.qtip-content{
font-size: 13px;
}
div.ui-state-highlight p {margin: 10px;}
div.ui-state-highlight a {text-decoration: underline;}