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

Improve ios layout #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BenjaminPoulain
Copy link

This should help with the weird margins on iPhone/iPad

On scaling-capable viewports (iPad, iPhone, etc), the site had some
weird margins here and there. This patch attemps to improve that.

The design is about 1000px wide. The default viewport width is 980px.
This mismatch affects anything size relative to the layout size.
I added a viewport meta tag to force the minimum layout size to be big enough.

The next problem is that some elements were sized 1000px wide, while
others were sized 1002 pixel wide. This difference came from a one pixel
border not accounted in the explicit width.
I changed box-sizing to border-box and just set the width to 1000px
everywhere. The browser can figure how to size the boxes.
@karpathy
Copy link
Owner

i'll take a look soon, thank you

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