Skip to content

Commit

Permalink
equal height content and sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Apr 9, 2014
1 parent 80ab89a commit 5a1f406
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion js/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@ jQuery(document).ready(function($){
// FitVids
$('.entry-content').fitVids();

// Content and Sidebar, Equal Heights
var sidebarHeight = $(".sidebar-primary").outerHeight();
var bodyHeight = $(".content-sidebar-wrap > .content").outerHeight();

if (bodyHeight > sidebarHeight) {
$(".sidebar-primary").css( 'min-height', bodyHeight );
};

/*
// Equal Heights
// Footer Widgets, Equal Heights
function footer_widget_height() {
if(window.innerWidth < 767) {
$('.footer-widgets .widget-area').height('auto');
Expand Down
4 changes: 3 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1199,5 +1199,7 @@ li.comment {
padding: 0 20px;
}


.sidebar-primary {
min-height: 0 !important;
}
}

0 comments on commit 5a1f406

Please sign in to comment.