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

Hey, I made main app page responsive #29

Merged
merged 21 commits into from
Aug 3, 2018

Conversation

waseemyusuf
Copy link
Contributor

This is what is the responsive page now looks like on this branch:

responsive main app page demo

Defined viewport to prevent horizontal scrolling.
Liked to Normalize.css CDN which will help to add consistency to browser styling across various browsers.
implemented universal box sizing reset with inheritance
The default styles will be made with mobile users in mind. Next, breakpoints will be added using the @media query to add styles for desktop/laptop/widescreen devices
Changed the old navbar to a new one that collapses on smartphones to a menu toggle. This required heavy changes to structure of header. The current structure is much simpler. It was taken from Bootstrap's documentation on navigation bars.

Also: Included link to Bootstrap JavaScript in the <head>. This was required for the menu toggle to work.
on hovering on a navbar element, the 2px border that would appear below would make the elements move up by 2px. I solved this problem by adding a 2px transparent border during no hover, so the elements would be shifted up by 2px at all times and therefore no movement while hovering
...by using z index. This was needed because the <div> on the right was getting on top of this left <div>.
This declaration created a big ugly gap between it and the next <div> on mobile.
Didnt remove it entirely and instead commented because it is weirdly specific and might be important later. I dont know though.
@treyhboy treyhboy merged commit a3baa63 into treyhboy:master Aug 3, 2018
@treyhboy
Copy link
Owner

treyhboy commented Aug 3, 2018

Great Work @waseemyusuf

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.

2 participants