-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Bug overriding default values in css #639
Comments
Thanks for reporting that, we will release a new version to fix that for that later today. |
Consider we can open a new API And we'll document this:
// override.styl.
$textColor = red
#my-style {} It's recommended to separate the style part to // override.styl, will be mounted immediately after the default configuration, but before all styles.
$textColor = red // index.styl, mounted after all styles.
#my-style {} With that we'll have no any breaking changes. |
Seems like a good solution ! Maybe having explicit filenames would help user not misunderstand ?
Or even folder based and parsed for all files inside the folders ?
Or a mix of both :
|
1. Fixed overriding css doesn't work at 0.11.0 (close: #639) 2. Split override.styl into two APIs: override.styl and style.styl, the former will focus on ONLY the style constants override, while the latter will focus on styles override or custom styles. See also: https://vuepress.vuejs.org/default-theme-config/#simple-css-override.
Bug report
Version
0.11.0
Steps to reproduce
1 - Override default theme css variable value (.vuepress/override.styl)
2 - Changes don't apply. Seems like in the latest version, whilst correcting the duplicate css override, the default values are set last and therefore not overriding the variable values before these values are used.
What is expected?
Default theme css values should be applied
What is actually happening?
Default theme css values are not applied
Other relevant information
The text was updated successfully, but these errors were encountered: