-
-
Save LukeSmetham/2fdb901b5fa5c1e4dc1a880642180d62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const List = styled.div` | |
// Target immediate children of List that have siblings | |
& > * + * { | |
margin-top: 16px; | |
} | |
// Target any List components that are the child of an <article> | |
article & { | |
color: white; | |
} | |
// Target any adjacent Lists | |
& + & { | |
margin-top: 16px; | |
} | |
// Target the List when hovered | |
&:hover { | |
background-color: red; | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment