-
-
Save gersteba/2afc1a1c59bda8e73cb56c14d2983cf4 to your computer and use it in GitHub Desktop.
Revisions
-
gersteba revised this gist
Mar 27, 2018 . 1 changed file with 1 addition and 0 deletions.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 @@ -13,6 +13,7 @@ label { } input[type=checkbox]:checked ~ label { border-color: red; margin-bottom: 60px; } /* Default State */ -
gersteba revised this gist
Mar 27, 2018 . 3 changed files with 19 additions and 8 deletions.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 @@ -6,24 +6,34 @@ input[type=checkbox] { left: -9999px; } label { display: inline-block; margin: 60px 0 10px 0; cursor: pointer; border: 2px solid transparent; } input[type=checkbox]:checked ~ label { border-color: red; } /* Default State */ div { width: 400px; height: 100px; line-height: 100px; color: white; text-align: center; } div.first { background: red; } div.second{ background: green; } /* Toggled State */ input[type=checkbox]:checked ~ div.first { background: green; } input[type=checkbox]:checked ~ div.second { background: red; } 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 @@ -1,3 +1,4 @@ <input type="checkbox" id="toggle-1"> <label for="toggle-1">I'm a toggle</label> <div class="first">I'm controlled by toggle. No JavaScript!</div> <div class="second">I'm controlled by toggle. No JavaScript!</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 @@ -1 +1 @@ {"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} -
chriscoyier revised this gist
Dec 21, 2011 . No changes.There are no files selected for viewing
-
chriscoyier revised this gist
Dec 21, 2011 . 1 changed file with 1 addition and 0 deletions.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 @@ -8,6 +8,7 @@ input[type=checkbox] { label { -webkit-appearance: push-button; -moz-appearance: button; display: inline-block; margin: 60px 0 10px 0; cursor: pointer; } -
chriscoyier created this gist
Dec 21, 2011 .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,28 @@ /* Checkbox Hack */ input[type=checkbox] { position: absolute; top: -9999px; left: -9999px; } label { -webkit-appearance: push-button; -moz-appearance: button; margin: 60px 0 10px 0; cursor: pointer; } /* Default State */ div { background: green; width: 400px; height: 100px; line-height: 100px; color: white; text-align: center; } /* Toggled State */ input[type=checkbox]:checked ~ div { background: red; } 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,3 @@ <label for="toggle-1">I'm a toggle</label> <input type="checkbox" id="toggle-1"> <div>I'm controlled by toggle. No JavaScript!</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 @@ {"view":"split-vertical","prefixfree":"1","page":"css"}