Created
March 30, 2015 16:29
-
-
Save g33kidd/62a3dfb1abb2e7ec5a46 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
<div class="dropdown"> | |
<input type="checkbox" id="dropdownToggle" /> | |
<label for="dropdownToggle">DROPDOWN</label> | |
<ul class="dropdown-menu"> | |
<li>List Item</li> | |
<li>List Item</li> | |
</ul> | |
</div> |
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.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
.dropdown { | |
#dropdownToggle { | |
display:none; | |
&:checked ~ .dropdown-menu { | |
display: block; | |
} | |
} | |
.dropdown-menu { | |
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
.dropdown #dropdownToggle { | |
display: none; | |
} | |
.dropdown #dropdownToggle:checked ~ .dropdown-menu { | |
display: block; | |
} | |
.dropdown .dropdown-menu { | |
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
<div class="dropdown"> | |
<input type="checkbox" id="dropdownToggle" /> | |
<label for="dropdownToggle">DROPDOWN</label> | |
<ul class="dropdown-menu"> | |
<li>List Item</li> | |
<li>List Item</li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment