Skip to content

Commit

Permalink
final responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
Bearded Avenger committed Sep 12, 2014
1 parent b23e647 commit 40dbaf4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/assets/css/aesop-admin.css

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion admin/assets/js/generator.js
Expand Up @@ -19,7 +19,15 @@ jQuery(document).ready(function($) {
var settingsHeight = function(){
var height = $(window).height() - 90;
var width = $(window).width();
$('#aesop-generator-settings-outer').css({'height':height});

if ( width < 782 ) {
var genLeftHeight = $('.aesop-generator-left').height();
var buttonHeight = $('.aesop-buttoninsert-wrap').height();
} else {
var genLeftHeight = '';
var buttonHeight = '';
}
$('#aesop-generator-settings-outer').css({'height':height + genLeftHeight + buttonHeight});

if ( height < 700 && width > 782 ) {
$('.aesop-generator-left').addClass('aesop-generator-small-height');
Expand Down

0 comments on commit 40dbaf4

Please sign in to comment.