Skip to content

Commit

Permalink
Fixing 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)

Adapting the original Jekyll fix to the Hugo version of the theme.
  • Loading branch information
RMBLRX authored Aug 27, 2018
1 parent a15471c commit b6742ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions static/css/uno.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions static/css/uno.min.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions static/js/main.js
Original file line number Diff line number Diff line change
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
4 changes: 3 additions & 1 deletion static/js/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit b6742ea

@RMBLRX
Copy link
Owner Author

@RMBLRX RMBLRX commented on b6742ea Aug 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to make the post disappear when it's opened, so I'll have to fix that, yet.

Please sign in to comment.