Created
July 19, 2013 19:50
-
-
Save jwdallas/6041905 to your computer and use it in GitHub Desktop.
Semantic Single-State Toggle
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 characters
/** | |
Semantic Single-State Toggle | |
*/ | |
input[type=radio] { display:none } | |
label { | |
float: left; | |
padding: 10px; | |
background: #f1f1f1; | |
} | |
label:hover { | |
background: #ddd; | |
cursor: pointer; | |
} | |
input:checked + label { background:#aaa } |
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 characters
<input id="sv-day" type="radio" name="segmented-view"><label for="sv-day">Day</label> | |
<input id="sv-week" type="radio" name="segmented-view"><label for="sv-week">Week</label> | |
<input id="sv-year" type="radio" name="segmented-view"><label for="sv-year">Year</label> |
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 characters
// alert('Hello world!'); |
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 characters
{"view":"separate","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