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

Use light theme when javascript is disabled #145

Merged
merged 1 commit into from
Jun 15, 2016
Merged

Use light theme when javascript is disabled #145

merged 1 commit into from
Jun 15, 2016

Conversation

onur
Copy link
Member

@onur onur commented Jun 15, 2016

mdBook is setting theme (by adding a class attribute to body tag) with javascript.
Page is not using any theme by default and page is not using any styling unless
javascript is enabled.

This patch is adding class attribute to body tag and making mdBook to use light
theme when javascript is disabled.

Fixes: #144

mdBook is setting theme (by adding a class attribute to body tag) with javascript.
Page is not using any theme by default and page is not using any styling unless
javascript is enabled.

This patch is adding class attribute to body tag and making mdBook to use `light`
theme when javascript is disabled.

Fixes: #144
@azerupi azerupi merged commit a4a277c into rust-lang:master Jun 15, 2016
@azerupi
Copy link
Contributor

azerupi commented Jun 15, 2016

Hah thanks! 😄

@onur
Copy link
Member Author

onur commented Jun 15, 2016

Awesome! That was a big issue for me, I thought it was a design choice and never reported the issue 😶

@azerupi
Copy link
Contributor

azerupi commented Jun 15, 2016

I encourage you to report things you think could be better. 😊

Specifically, fully supporting no-JS browsers is not an absolute goal. But if they can be supported without resorting to ugly hacks or added complexity, it's definitely something I want to do. And if it's too much trouble it should at least degrade gracefully when possible.

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