-
Notifications
You must be signed in to change notification settings - Fork 596
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
Advanced CSS selectors plugin for grapesjs #1496
Labels
Milestone
Comments
Solution 4Do as they do in webflow:
Add the ability to
|
Solution 4 is good, it lets the user select a class among parents, but while we are at it, we should also let the user select among other CSS combinators such as "next sibling", which would mean we style the element when it is the next sibling of the 2nd selector => Replace "when nested in" with "when Also why not support design tokens? => how? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why?
GrapesJS selector manager is used in Silex v3 to manage the CSS classes applied to the selected element(s). And to apply a style to these CSS classes
Here are use cases where this is not enough
.container img
because the image is not selectable at edition time.list ul.cell::nth-child(odd) > li
.my-text ul li
Here are the ideas I could come up with in order to create a useful plugin for grapesjs
Solution 1
A UI for grapesjs css
Solution 2
Just a code editor to edit all CSS
Solution 3
Preview arbitrary selectors in the layers UI and add arbitrary selectors to the style manager
About custom UI for Selector Manager: https://grapesjs.com/docs/modules/Selectors.html#customization
Links
The text was updated successfully, but these errors were encountered: