This commit is contained in:
albert
2013-03-18 21:39:02 -07:00
parent 9cb44d348b
commit 67086d48dd
2 changed files with 20 additions and 2 deletions

View File

@@ -1,4 +1,13 @@
$(function() {
var offset = $("aside#sidebar").offset().top + $("aside#sidebar").height();
$("#page-footer").css({"position": "absolute", "top": offset, "width": "100%", "height": "5em"});
var $sidebar = $("#sidebar");
var $content = $("#content");
var sidebar_offset = $sidebar.offset().top + $sidebar.height();
var content_offset = $content.offset().top + $content.height();
var offset = null;
if (sidebar_offset > content_offset) {
offset = sidebar_offset;
} else {
offset = content_offset;
}
$("#page-footer").css({"position": "absolute", "top": offset, "width": "100%", "height": "3em"});
});

View File

@@ -4,4 +4,13 @@ div#c-favorites {
section#content > h1 {
font-size: $h3_size;
}
div#posts {
margin-left: 0;
margin-right: 6.5em;
}
#content {
margin-left: 15em;
}
}