Created
December 4, 2012 08:46
-
-
Save boblemarin/4201915 to your computer and use it in GitHub Desktop.
Multi-check (redux)
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
| /** | |
| * Multi-check (redux) | |
| */ | |
| div { | |
| vertical-align: middle; | |
| display: inline-block; | |
| background: #FFAAAA; | |
| padding: 1em; | |
| border-radius: 50%; | |
| -webkit-transition: all .3s ease-in-out; | |
| } | |
| input[type='checkbox'].check1:checked + | |
| input[type='checkbox'].check2:checked + | |
| input[type='checkbox'].check3:checked + | |
| input[type='checkbox'].check4:checked ~ | |
| div { | |
| background: #AFA; | |
| } |
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
| <input type="checkbox" class="check1"/> | |
| <input type="checkbox" class="check2"/> | |
| <input type="checkbox" class="check3"/> | |
| <input type="checkbox" class="check4"/> | |
| <div class="result">ok</div> |
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
| // alert('Hello world!'); |
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":"split","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