Created
May 22, 2012 13:09
-
-
Save tyv/2768933 to your computer and use it in GitHub Desktop.
выберет все элементы "не ссылки"
This file contains hidden or 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
form input[type="checkbox"]:disabled + label | |
{ | |
color: #ccc | |
} | |
form input[type="checkbox"]:not(:disabled) | |
{ | |
font-size: 150%; | |
} | |
form input[type="checkbox"]:not(:disabled) + label | |
{ | |
font-size: 150%; | |
color: green; | |
} | |
/* | |
выберет все элементы "не ссылки" | |
*:not(:link):not(:visited) | |
{ | |
color: red !important; | |
} | |
*/ |
This file contains hidden or 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
<form> | |
<div> | |
<input type="checkbox" id="cb-1"> | |
<label for="cb-1">чекбокс-1</label> | |
</div> | |
<div> | |
<input type="checkbox" id="cb-2" disabled> | |
<label for="cb-2">чекбокс-2</label> | |
</div> | |
<div> | |
<input type="checkbox" id="cb-3"> | |
<label for="cb-3">чекбокс-3</label> | |
</div> | |
<a href="/">ссылка</a> | |
</form> | |
This file contains hidden or 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":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment