We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As the title, there is no documentation i can find about how to use pseduo class in stylist-rs.
The text was updated successfully, but these errors were encountered:
Yes, this is supported. E.g. in a styled component
let hover_class = css!( :hover { color: blue; } );
You can think of all selectors in a css! block to implicitly mention "the currently generated class", so the above results in css like
.stylist-style-0:hover { color: blue; }
being mounted the <head> and using the hover_class will attach the class stylist-style-0 to your component.
<head>
hover_class
stylist-style-0
Sorry, something went wrong.
@WorldSEnder Thanks, but it's still not very clear to me, could you put an example into the directory examples of this repository?
examples
Can you give a short description what you are trying to achieve and which pseudo class you would like to see, so I can provide a tailored example?
No branches or pull requests
As the title, there is no documentation i can find about how to use pseduo class in stylist-rs.
The text was updated successfully, but these errors were encountered: