Skip to content

Mobile friendlier header, footer, and code blocks #320

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

Merged
merged 3 commits into from
Aug 13, 2017
Merged

Mobile friendlier header, footer, and code blocks #320

merged 3 commits into from
Aug 13, 2017

Conversation

jenweber
Copy link
Contributor

@jenweber jenweber commented Aug 5, 2017

Closes #317 and maybe #274

Sidebar bug: I brought in the media query breaks just a bit, to align the sidebar behavior with the container. This means it jumps into mobile arrangement sooner.

Responsive header/footer: The main problem was that all the responsive CSS ported over from the main site wasn't being applied because that class was was not included in the html.

Coderay block separating from line numbers: just a global-ish css rule on tables that didn't make sense.

Coderay block selection: in the more global CSS was a z-index: -1 applied to table layouts, which had an unexpected effect on code blocks. Setting the z index back to normal for coderay tables fixes the cursor problem. TBD whether code can be copied & pasted in mobile.

@locks locks temporarily deployed to ember-api-docs-staging-pr-320 August 6, 2017 02:45 Inactive
Copy link
Member

@sivakumar-kailasam sivakumar-kailasam left a comment

Choose a reason for hiding this comment

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

On iPad the footer seems to look different than the other parts of website.

API Docs
ember-api-docs-staging-pr-320 herokuapp com-api-ember-2 14-namespaces-ember ipad

Homepage
emberjs com- ipad

@sivakumar-kailasam
Copy link
Member

@jenweber let me know if it was because of page layout in which case this looks good to merge.

@jenweber
Copy link
Contributor Author

jenweber commented Aug 6, 2017

I'll change the breakpoints to match. Good catch.

@jenweber
Copy link
Contributor Author

@sivakumar-kailasam I have updated the header/footer breakpoints to match the rest of the website. It still needs another pair of eyes just to be sure.

I have also replaced any stray breakpoints to be the variables in _grid-settings.scss. I changed the header nav to be relatively positioned. It was fixed and none of the rest of the site works that way. If that was intentional, we just need to ignore the final commit.

If it all looks right for you too, I think this is good to go.

@locks locks temporarily deployed to ember-api-docs-staging-pr-320 August 13, 2017 06:13 Inactive
@sivakumar-kailasam
Copy link
Member

Looks great now @jenweber. The header being fixed must've been a bug.

@sivakumar-kailasam sivakumar-kailasam merged commit 6f31c04 into ember-learn:master Aug 13, 2017
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.

code block layout bug in mobile, can't copy & paste
3 participants