Created
August 25, 2014 14:25
-
-
Save m59peacemaker/2c21e3ffaffb343a1716 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<ul class="checkbox-tree"> | |
<li> | |
<i class="plus"></i> | |
<input id="category" type="checkbox"> | |
<label for="category">Category</label> | |
<ul> | |
<li> | |
<input type="checkbox"> | |
<label>Foo</label> | |
</li> | |
<li> | |
<input type="checkbox"> | |
<label>Bar</label> | |
</li> | |
</ul> | |
</li> | |
</ul> |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
.plus:after { | |
content: '+'; | |
} | |
.checkbox-tree { | |
ul { | |
display: none; | |
} | |
input:checked ~ ul { | |
display: block; | |
} | |
list-style: none; | |
input { | |
//display: none; | |
} | |
} |
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
.plus:after { | |
content: '+'; | |
} | |
.checkbox-tree { | |
list-style: none; | |
} | |
.checkbox-tree ul { | |
display: none; | |
} | |
.checkbox-tree input:checked ~ ul { | |
display: block; | |
} |
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
<ul class="checkbox-tree"> | |
<li> | |
<i class="plus"></i> | |
<input id="category" type="checkbox"> | |
<label for="category">Category</label> | |
<ul> | |
<li> | |
<input type="checkbox"> | |
<label>Foo</label> | |
</li> | |
<li> | |
<input type="checkbox"> | |
<label>Bar</label> | |
</li> | |
</ul> | |
</li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment