Changeset 888:e805b4de003b
- Timestamp:
- 10/18/12 14:41:18 (13 years ago)
- Branch:
- default
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/common.js
r343 r888 319 319 -------------------------------------------------------- */ 320 320 function positionFooter() { 321 $("#wrapper").css({ overflow: "auto" }); 322 var page_height = $("#top").height() + $("#wrapper").height() - $("#footer").height(); 323 if( page_height < $(window).height() ){ 324 // calcul de la largeur 325 var page_width = $(document).width() - 30; 326 $("#footer").css({ 327 position: "absolute", 328 bottom: "10px", 329 width: page_width+"px", 330 padding: ".75em 0", 331 marginbottom: "0" 332 }); 333 } else { 334 $("#footer").css({ 335 position: "static", 336 padding: ".75em 0", 337 width: "auto" 338 }); 339 } 340 321 $('#footer').constantfooter(); 341 322 } 342 323 … … 385 366 }); 386 367 387 388 368 // Sticky footer 389 369 positionFooter(); -
admin/style/default.css
r814 r888 337 337 #footer { 338 338 clear: both; 339 padding: .75em 2em; 340 margin: 6em 15px .5em 15px; 339 padding: .75em 0; 341 340 -webkit-border-radius: .3em; 342 341 -moz-border-radius: .3em; 343 border-radius: .3em; 344 background: #575859 url(dc_logo_small.png) no-repeat right bottom; 342 background: #575859 url(dc_logo_small.png) no-repeat 8px bottom; 345 343 color: #fff; 346 344 } -
inc/admin/lib.dc.page.php
r812 r888 370 370 self::jsLoad('js/jquery/jquery.biscuit.js'). 371 371 self::jsLoad('js/jquery/jquery.bgFade.js'). 372 self::jsLoad('js/jquery/jquery.constantfooter.js'). 372 373 self::jsLoad('js/common.js'). 373 374 self::jsLoad('js/prelude.js').
Note: See TracChangeset
for help on using the changeset viewer.