Open lexoyo opened 1 year ago
Do as they do in webflow:
style all H2
Add the ability to
.parent:pseudo .child
@ceubri
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 <select>
"
Also why not support design tokens?
=> how?
Why?
GrapesJS style manager is used in Silex v3 to style CSS classes and ID of the selected element in the editor
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