Created
March 30, 2015 16:29
-
-
Save g33kidd/62a3dfb1abb2e7ec5a46 to your computer and use it in GitHub Desktop.
Revisions
-
g33kidd created this gist
Mar 30, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ <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 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ // ---- // Sass (v3.4.12) // Compass (v1.0.3) // ---- .dropdown { #dropdownToggle { display:none; &:checked ~ .dropdown-menu { display: block; } } .dropdown-menu { display: none; } } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ .dropdown #dropdownToggle { display: none; } .dropdown #dropdownToggle:checked ~ .dropdown-menu { display: block; } .dropdown .dropdown-menu { display: none; } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ <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>