Skip to content

Instantly share code, notes, and snippets.

@boblemarin
Created December 4, 2012 08:46
Show Gist options
  • Select an option

  • Save boblemarin/4201915 to your computer and use it in GitHub Desktop.

Select an option

Save boblemarin/4201915 to your computer and use it in GitHub Desktop.
Multi-check (redux)
/**
* 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;
}
<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>
// alert('Hello world!');
{"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