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
Setting the css prop on ONE element will affect all instances
css
import React from 'react'; import outline from 'react-outline' import { Styles } from 'react-outline' let styles = { base : { title:{ base:{ background: "lightblue", color:"black" }, "div:nth-child(even)":{ background: "darkblue" , color:"white" } } } } styles = outline(styles); const Title = styles.title`div` export default <div> <Styles/> <Title css={{"div:nth-child(even)":{color:"red"}}}> <div>foo</div> <div>bar</div> <div>baz</div> </Title> <Title css={{"div:nth-child(even)":{color:"green"}}}> <div>foo</div> <div>bar</div> <div>baz</div> </Title> </div>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Setting the
css
prop on ONE element will affect all instancesThe text was updated successfully, but these errors were encountered: