how to return unocss-style instead instead of native-style in used rules? #3755
Unanswered
shellingfordly
asked this question in
Q&A
Replies: 1 comment
-
Maybe I can add child-node-class after creating native-style by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
For example, i want to hidden child when hover parent-div. can used
hover:.child:hidden
?I try to add a
rule
like below:But i hate write native CSS, how to used
hidden
of unocss in return-value of rule.Maybe i should ues
variants
, but i don't know howvariants
works. It just only return a string in the example of docs.I try to match rule in
variants
, but have a question, how to select child node?The
${selector}:hover ${res[1]}:${res[2]}
get value of.hover\>button\:hidden:hover .child:hidden
.This is a error style, can't select child node.
Beta Was this translation helpful? Give feedback.
All reactions