-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): use CSS layer to let user customize app - WF-57
We want the user to be able to customize any style using `import_stylesheet` feature. But, actually, he needs to use `!important` everywhere to makes his rules have more weight. The solution is to use CSS cascade layers to redefine the priority of rules easily. We can move all Writer Framework CSS into a layer `wf`. This makes other CSS rules have more priority by default. So I just installed PostCSS and a plugin `postcss-assign-layer`. This automates surrounding our styles by layers.
- Loading branch information
Showing
3 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters