Created
July 16, 2013 22:26
-
-
Save bellerus/6015756 to your computer and use it in GitHub Desktop.
Selectors
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
/* Selectors */ | |
body { | |
background: #00a3e6; | |
color: white; | |
font-size: 40px; | |
font-family: Helvetica; | |
min-height: 100%; | |
} | |
/* descendant */ | |
.container ol { | |
} | |
/* child */ | |
.container > ol { | |
margin-left: 50px; | |
} | |
/* sibling */ | |
span + span { | |
} | |
/* pseudo */ | |
ol li:first-child, ol li:last-child { | |
} | |
/* pseudo */ | |
ol li:nth-of-type(odd) { | |
} | |
/* pseudo */ | |
li:hover { | |
} | |
input[type="text"][class~="valid"] { | |
background: red; | |
} |
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
<div class="container"> | |
<ol> | |
<li>:link</li> | |
<li>:visited</li> | |
<li>:active</li> | |
<li>:hover</li> | |
<li>:nth-of-type</li> | |
<li>:even/odd</li> | |
<li>:enabled</li> | |
<li>:checked</li> | |
<li>:disabled</li> | |
<li> | |
<ol> | |
<li>secondary</li> | |
</ol> | |
</li> | |
</ol> | |
</div> | |
<span>part 1</span><span>part 2</span> | |
<input type="text" class="login valid" value="Hi there" /> | |
<input type="submit" class="login valid" checked /> |
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
// alert('Hello world!'); |
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
{"view":"separate","fontsize":"200","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment