Created
April 24, 2012 10:41
-
-
Save tyv/2478710 to your computer and use it in GitHub Desktop.
Untitled
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
body | |
{ | |
font: 11px Verdana, sans-serif; | |
margin: 20px; | |
} | |
div | |
{ | |
margin-top: 20px; | |
} | |
div input[type="checkbox"] | |
{ | |
position: fixed; | |
left: -200px; | |
} | |
div span | |
{ | |
display: inline-block; | |
padding: 3px 6px; | |
color: #fff; | |
border-radius: 6px; | |
} | |
.red | |
{ | |
background: red; | |
} | |
.green | |
{ | |
background: green; | |
} | |
.blue | |
{ | |
background: blue; | |
} | |
label | |
{ | |
display: inline-block; | |
padding: 3px 6px; | |
margin-right: 20px; | |
text-decoration: underline; | |
cursor: pointer; | |
} | |
label[for="red"] | |
{ | |
color: red; | |
} | |
label[for="green"] | |
{ | |
color: green; | |
} | |
label[for="blue"] | |
{ | |
color: blue; | |
} | |
#red:checked ~ .red, | |
#green:checked ~ .green, | |
#blue:checked ~ .blue | |
{ | |
display: none; | |
} | |
#red:checked ~ label[for="red"], | |
#green:checked ~ label[for="green"], | |
#blue:checked ~ label[for="blue"] | |
{ | |
opacity: 0.3; | |
} |
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="red"> | |
<input type="checkbox" id="green"> | |
<input type="checkbox" id="blue"> | |
<label for="red">красные</label> | |
<label for="green">зеленые</label> | |
<label for="blue">синие</label> | |
<span class="red">красные</span> | |
<span class="green">зеленые</span> | |
<span class="green">зеленые</span> | |
<span class="red">красные</span> | |
<span class="blue">синие</span> | |
<span class="green">зеленые</span> | |
<span class="red">красные</span> | |
<span class="blue">синие</span> | |
<span class="red">красные</span> | |
<span class="green">зеленые</span> | |
<span class="blue">синие</span> | |
</div> | |
</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