Replies: 2 comments 12 replies
-
The Group feature has been released in <div class="p:10|20|30|40:hover@sm text:center:hover@sm font:red-60/.5:hover@sm">without group</div>
<div class="{p:10|20|30|40;text:center;font:red-60/.5}:hover@sm">group</div> Because selectors have different behavior at the start and at the end, it is not possible to put the current selector in front. |
Beta Was this translation helpful? Give feedback.
0 replies
-
What do you think about some alternative syntax for group instead of curly braces |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, for using multiple styles with the same selector, you will have:
Plugin
So I developed a plugin master-styles-group, after using it you can shorten the code to one line:
In addition, it also compatible with putting selector before group.
In the Master Discord, @oberonlai shows his usage with
master-styles-group
.Master Styles native support grouping
After some discussion, @1aron also agrees that grouping is a useful feature and can reduce the code a lot. Since it may require changes to existing syntax and other breaking changes, it may not be implemented until
styles
v2.0 publish (#17).I hope you guys can share some views on it.
Beta Was this translation helpful? Give feedback.
All reactions