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

docs: fix layout without JS enabled #606

Merged
merged 1 commit into from
Mar 1, 2019

Conversation

pschultz
Copy link
Member

@pschultz pschultz commented Mar 1, 2019

The Bootstrap stylesheet for the website sets the header to position: fixed, taking it out of the layout flow. Some javascript later updates
the style attribute, so that the content is pushed down by an
appropriate amount.

If JS is disabled that correction doesn't happen, and so the header
overlaps the content.

Make the header static by default, and only apply position: fixed if
JavaScript is enabled.

Fixes #599

The Bootstrap stylesheet for the website sets the header to position:
fixed, taking it out of the layout flow. Some javascript later updates
the style attribute, so that the content is pushed down by an
appropriate amount.

If JS is disabled that correction doesn't happen, and so the header
overlaps the content.

Make the header static by default, and only apply position: fixed if
JavaScript is enabled.

Fixes #599

Signed-off-by: Peter Schultz <peter.schultz@classmarkets.com>
@magiconair
Copy link
Contributor

Thank you!

@magiconair magiconair merged commit 39910b0 into master Mar 1, 2019
@magiconair magiconair added this to the 1.5.12 milestone Oct 11, 2019
@aaronhurt aaronhurt deleted the 599-website-layout-without-js branch January 23, 2020 15:18
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.

Sidebar of the website is a little off
2 participants