-
Notifications
You must be signed in to change notification settings - Fork 158
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
Gutenberg doesn't play nice with other styles/libs #63
Comments
Hey @stefanchrobot I think that's a good idea. This issue has never crossed my mind tbh. I'll keep it in mind for the next release... |
I wonder if it is possible to create a marriage between Bulma and Gutenberg. Bulma does not affect the generic selectors and has a special class "content" for an area where a CMS or whatever inserts html-formatted content with generic selectors only. |
@juh2 I haven't heard of Bulma... what is it? |
I really like Gutenberg's look, but am struggling to figure out how I could sneak it into an existing project without it breaking everything is styled globally without a "gutenberg" class. |
@wmhilton I know what you mean, others mentioned this and I experience it myself. Unfortunately, I don't have much time to work on this. Do you have any ideas how this could be done better? |
Well, I started by just prepending a There's probably a way to do it cleverly using SASS... hold on while I try something... if it works I'll make a PR. |
Awesome, that would be much appreciated @wmhilton ! |
Use sass : .gutenberg {
@import "~gutenberg-web-type/src/style/gutenberg";
} |
It's tough to use Gutenberg together with other styles/libs, since it's hijacking top-level and generic selectors, i.e. *, html and body.
What do you think about scoping Gutenberg's application to a certain subtree, i.e.:
The text was updated successfully, but these errors were encountered: