Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add collapsible menu and hamburger for mobile - closes #3 #10

Merged
merged 8 commits into from
Jan 19, 2018

Conversation

monkeywithacupcake
Copy link
Contributor

Using the jekyll/minima construct as an example, I modified the al-folio theme to use a hamburger on mobile. It is collapsed by default, but the pages expand down when the hamburger is clicked.

screen shot 2018-01-06 at 08 59 11

Copy link
Owner

@alshedivat alshedivat left a comment

Choose a reason for hiding this comment

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

Nice! Thanks a lot for the fantastic contribution!

I'm happy to merge after just a couple minor changes:

  • Looks like @import 'media-queries'; has to be moved up in the assets/css/main.scss since media-query mixin is used in the previous imports (otherwise, Jekyll refuses to build). Please move @import 'media-queries'; from line 31 to line 8.
  • Please adjust the padding to make it consistent with one used in the .scss files (see comments).

.menu-icon {
display: none;
}

Copy link
Owner

Choose a reason for hiding this comment

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

Please adjust padding to 4 spaces per tab.

}
margin-left: 10px;
}
}
Copy link
Owner

Choose a reason for hiding this comment

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

Something is wrong with padding in this block as well. Please adjust.

@content;
}
}

Copy link
Owner

Choose a reason for hiding this comment

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

Padding (4 spaces per tab).

@monkeywithacupcake
Copy link
Contributor Author

I think I addressed all of the spacing updates (sorry) and I moved the media-query import up.

@claudiogreco
Copy link

On mobile, when I click on the publications page, the website becomes wider, and the menu button becomes hidden because it moves to the right instead of maintaining its position. Does it happen only to me? Can you fix it? Thanks!

@monkeywithacupcake
Copy link
Contributor Author

monkeywithacupcake commented Jan 19, 2018

I'm not seeing that behavior on my iPhone, but when I use developer tools in Chrome and click on my publications page, I do see that behavior. It isn't like that for any other page on my iPhone or in Chrome. I have no idea what is different. See it live at http://jessachandler.com (note, I hid publications from my menu, but it is still constructed the same and can be found at /publications)

@claudiogreco
Copy link

Hi, thanks for your answer. On your website, I see the same behavior using Chrome from my Android phone. It is like the website zooms in when I go on the publications page. Do you know any workaround?

@alshedivat
Copy link
Owner

@monkeywithacupcake Thanks again for the contribution! I'm merging this PR.

@claudiogreco Yes, I'm aware of the problem with the publications page on small screens. The styles weren't originally designed to support mobile, so that could be fixed by updating/rewriting styles a bit. I am guessing that there are other potential problems (e.g., some fonts might appear too large on small screens). Please feel free to open separate issues for each problem you find, so we can track them better. I'll make sure to address them in the subsequent updates.

And PRs are more than welcome as always! :)

@alshedivat alshedivat merged commit 0d48d01 into alshedivat:master Jan 19, 2018
alshedivat added a commit that referenced this pull request Jan 20, 2018
add collapsible menu and hamburger for mobile - closes #3 [ci skip]
wjidea added a commit to wjidea/al-folio that referenced this pull request Feb 12, 2018
add collapsible menu and hamburger for mobile - closes alshedivat#3 [ci skip]
jbscoggi pushed a commit to jbscoggi/website that referenced this pull request Feb 18, 2019
add collapsible menu and hamburger for mobile - closes alshedivat#3
manojgulati added a commit to Lab-14/Lab-14.github.io that referenced this pull request May 28, 2021
hagenmek added a commit to hagenmek/al-folio that referenced this pull request Feb 18, 2023
antchristou pushed a commit to antchristou/antchristou.github.io that referenced this pull request Nov 20, 2023
add collapsible menu and hamburger for mobile - closes alshedivat#3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants