darkmode bgcolor #3607
-
Checklist
Package namevuepress-theme-hope Which operating system are you using?
Describe the bugThe template on prod hardcode the background. The configuration background on Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 15 replies
-
Have you ever test that? Normally, body is on html and sharing the same size, so the bgcolor will be applied correctly. |
Beta Was this translation helpful? Give feedback.
-
@Mister-Hope Sorry for waste your time. Please see https://github.com/subquery/documentation, check out on 0f9042f4f5a1941df508814a09281e0aa2cd90bc. Build and serve it. The config is darkmode only and have configaration with
I don't find relative changes on the new version change log. If it has been change. |
Beta Was this translation helpful? Give feedback.
-
The key I think is only compile
The priority of |
Beta Was this translation helpful? Give feedback.
-
Hi like I said above, the final color displayed should be body’s bgcolor |
Beta Was this translation helpful? Give feedback.
-
I am not sure, as you are already applying a patch. Just take our theme docs as an example: The body background color comes from css file: While the color defined in template is already overrided: Create a new template and try modifying I am curious why you need an |
Beta Was this translation helpful? Give feedback.
-
BTW, your customization on my theme looks nice, and it would be great if you can add send a pr to https://theme-hope.vuejs.press/demo/projects.html#docs-using-vuepress-theme-hope |
Beta Was this translation helpful? Give feedback.
-
Hi, there also have a problem. The default style is
When I browse in Mac, I can over scroll the page and the html's background will show.
html < html[data-theme="dark"]. |
Beta Was this translation helpful? Give feedback.
b3db538