Last active
December 14, 2015 14:59
-
-
Save bkardell/5104770 to your computer and use it in GitHub Desktop.
cars css
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
/* Style the cars that are new and have quality as well as domestic and peformance */ | |
.cars div:allof(.new .quality, .domestic .performance) p { | |
color: red; | |
} | |
/* Style the cars that are foreign and used or domestic, new and effiecient. */ | |
.cars div:anyof(.foreign .used, .domestic .new .efficient) p { | |
color: blue; | |
} | |
/* Style the efficient cars that are neither domestic and used nor foreign and new. */ | |
.efficient:noneof(.domestic .used, .foreign .new) p { | |
color: green; | |
} | |
/* Style the cars that are only one of quality or fast (but not both). */ | |
.cars div:oneof(.quality, .fast) p { | |
font-weight: bold; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment