How I can change inner styles if the user hover on root element #100
-
I want to change the inner block styles of any nested elements. I made the examples that I want: https://codesandbox.io/s/change-inner-styles-on-root-block-pc02bz?file=/src/styles.css If you hover over the grey block, you can see that colour on the nested How can I make this with CSS example:
|
Beta Was this translation helpful? Give feedback.
Answered by
1aron
Dec 9, 2022
Replies: 1 comment 1 reply
-
It's super easy: <div class="fg:white:hover>.inner">
<div class="inner"> Or even use Master's reactive syntax: <div class="parent">
<div class=".parent:hover_{fg:white}"> It must be admitted that the tutorial documentation of v1 is not friendly, we've made many improvements in v2, so stay tuned. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
inthedark122
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's super easy:
Or even use Master's reactive syntax:
It must be admitted that the tutorial documentation of v1 is not friendly, we've made many improvements in v2, so stay tuned.