Replies: 4 comments 10 replies
-
I'm very interested in this. Especially the parent:state > child selector Like This is what I've been thinking to build: Styles will always apply to the selected element, so if I wanted to achieve the example above, I would have to select the .img element, and then choose the parent .card from the select element, and also the :hover state from that select element. I think that's understandable enough for the user... But I'm a bit lost on how to do actual implementation. Let me know what you think and maybe we con work something out together! |
Beta Was this translation helpful? Give feedback.
-
@artf I'm sorry I can't find a way to replace the default selector manager with a custom one |
Beta Was this translation helpful? Give feedback.
-
One more question @artf, and hopefully not too dumb I can't edit a custom selector, here is a reproductible demo Reproduce:
What I get is What I would expect is Here is what the demo does:
Is this the intended behavior? |
Beta Was this translation helpful? Give feedback.
-
Hello I'm back on this project after I did a POC last time. I wish I could have some feedback before it's implemented :) This time I am taking the W3C specs as a reference and I thought about the UX too :) Supported
Not supported
UXHere is a sketch of what i ended up with And here are the use cases I am including in my tests:
My grapesjs plugin will be made of web components Let me know what you think or if you have questions to challenge the concepts 👍 |
Beta Was this translation helpful? Give feedback.
-
Hello GrapesJS Community,
As some of you may already know, I am actively working on the development of Silex, a free/libre website builder, which will soon be using GrapesJS as its underlying engine. As a part of this project, I have already released several plugins to fill in some of the features that Silex currently lacks to make it a compelling alternative to other web builders like Webflow.
I am writing today to share a new plugin idea and to seek your valuable feedback and suggestions. This plugin revolves around the concept of advanced CSS Selectors, aimed to offer users the ability to define intricate CSS selectors in order to style:
This feature does not appear to be on the current roadmap for GrapesJS (please correct me if I'm wrong) and I think it could provide a useful addition to the platform. Is this a good idea to do it as a plugin? (@artf let me know if you have plans that would make it incompatible or redondant with the core?)
Here are some ideas for the ux and implémentation:
My primary areas of concern are:
An alternative (or perhaps supplementary) approach could be to allow users to manually input a selector.
Also interesting: in webflow, you can't explicitly define selectors like "child of a class" or "sibling", you can create nested structures by adding elements within others, and the cascading nature of CSS applies. You can then style these nested elements differently based on their parent class or element.
I'd love to hear your thoughts, ideas, and any feedback you might have. If there's anyone here with a knack for creating UI mockups and would be interested in collaborating, that would be fantastic as well.
For a broader view of the development ideas for Silex, you can visit our roadmap on GitHub here.
Thank you for taking the time to read this and for any assistance you can provide!
Beta Was this translation helpful? Give feedback.
All reactions