Skip to content

Commit

Permalink
Attempting to fix overflow issue
Browse files Browse the repository at this point in the history
Implementing the fix from @tayfuncetin, referenced here: joshgerdes/jekyll-uno#42 (comment)

Still require one more css fix.
  • Loading branch information
RMBLRX committed Aug 26, 2018
1 parent a15471c commit de0ac2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions static/js/main.js
Expand Up @@ -3,6 +3,7 @@ $(document).ready(function() {
$('body').removeClass('no-js');

$('a.blog-button').click(function() {
$('.content-wrapper__inner').css('display', 'block');
if ($('.panel-cover').hasClass('panel-cover--collapsed')) return;
currentWidth = $('.panel-cover').width();
if (currentWidth < 960) {
Expand All @@ -16,10 +17,12 @@ $(document).ready(function() {

if (window.location.hash && window.location.hash == "#blog") {
$('.panel-cover').addClass('panel-cover--collapsed');
$('.content-wrapper__inner').css('display', 'block')
}

if (window.location.pathname.substring(0, 5) == "/tag/") {
$('.panel-cover').addClass('panel-cover--collapsed');
$('.content-wrapper__inner').css('display', 'block')
}

$('.btn-mobile-menu').click(function() {
Expand Down

0 comments on commit de0ac2b

Please sign in to comment.