Created
December 1, 2012 17:58
-
-
Save radmar/4183603 to your computer and use it in GitHub Desktop.
Revisions
-
radmar revised this gist
Dec 2, 2012 . 2 changed files with 10 additions and 14 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 @@ -7,7 +7,7 @@ visibility: hidden; } .switch-content { /*-webkit-transition: all 500ms ease-in-out; -moz-transition: all 500ms ease-in-out; @@ -16,7 +16,7 @@ transition: all 500ms ease-in-out; } .switch { display: inline-block; height: 30px; overflow: hidden; @@ -27,18 +27,15 @@ line-height: 30px; } .switch-content { height: 200%; position: relative; width: auto; display: inline-block; color: white } .switch-content-checked, .switch-content-unchecked { /*background: rgba(157, 38, 29, 0.5);*/ cursor: pointer; display: block; @@ -49,5 +46,5 @@ } .switch-toggle:checked + .switch > .switch-content { top: 0; background-color: green;} .switch-toggle + .switch > .switch-content { top: -100%; background-color: 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,10 +1,9 @@ <!-- content to be placed inside <body>…</body> --> <input type="checkbox" id="check1" class="switch-toggle" /> <label class="switch" for="check1"> <div class="switch-content"> <div class="switch-content-checked">Enabled</div> <div class="switch-content-unchecked">Disabled</div> </div> </label> -
radmar revised this gist
Dec 2, 2012 . 2 changed files with 16 additions and 13 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 @@ -2,12 +2,12 @@ * Checkbox alternative UI */ .switch-toggle { display: none; visibility: hidden; } .switch, switch-content { /*-webkit-transition: all 500ms ease-in-out; -moz-transition: all 500ms ease-in-out; @@ -16,7 +16,7 @@ transition: all 500ms ease-in-out; } .switch-viewport { display: inline-block; height: 30px; overflow: hidden; @@ -27,15 +27,18 @@ line-height: 30px; } .switch { height: 200%; position: relative; width: auto; display: inline-block; color: white } .switch-button { } .switch-content { /*background: rgba(157, 38, 29, 0.5);*/ cursor: pointer; display: block; @@ -46,5 +49,5 @@ } .switch-toggle:checked + .switch-viewport > .switch { top: 0; background-color: green;} .switch-toggle + .switch-viewport > .switch { top: -100%; background-color: 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,10 +1,10 @@ <!-- content to be placed inside <body>…</body> --> <input type="checkbox" id="check1" class="switch-toggle" /> <label class="switch-viewport" for="check1"> <div class="switch"> <div class="switch-button"><!-- --></div> <div class="switch-content switch-content-checked">Enabled</div> <div class="switch-content switch-content-unchecked">Disabled</div> </div> </label> -
radmar revised this gist
Dec 2, 2012 . 2 changed files with 5 additions and 4 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 @@ -35,7 +35,7 @@ color: white } .slider-content-checked, .slider-content-unchecked { /*background: rgba(157, 38, 29, 0.5);*/ cursor: pointer; display: block; 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 @@ -2,8 +2,9 @@ <input type="checkbox" id="check1" class="slider-toggle" /> <label class="slider-viewport" for="check1"> <div class="slider"> <div class="slider-button"></div> <div class="slider-content-checked">Enabled</div> <div class="slider-content-unchecked">Disabled</div> </div> </label> -
radmar revised this gist
Dec 2, 2012 . 1 changed file with 1 addition and 1 deletion.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 @@ -42,7 +42,7 @@ height: 50%; width: auto; text-align: center; padding: 0 5px; } -
radmar revised this gist
Dec 2, 2012 . 1 changed file with 2 additions and 2 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 @@ -1,7 +1,7 @@ <!-- content to be placed inside <body>…</body> --> <input type="checkbox" id="check1" class="slider-toggle" /> <label class="slider-viewport" for="check1"> <div class="slider"> <div class="slider-content">Enabled</div> <div class="slider-content">Disabled</div> -
radmar revised this gist
Dec 2, 2012 . 1 changed file with 2 additions and 2 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 @@ -3,8 +3,8 @@ */ .slider-toggle { display: none; visibility: hidden; } .slider, slider-content { -
radmar revised this gist
Dec 2, 2012 . 1 changed file with 6 additions and 6 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 @@ -3,8 +3,8 @@ */ .slider-toggle { /*display: none; visibility: hidden;*/ } .slider, slider-content { @@ -16,8 +16,7 @@ transition: all 500ms ease-in-out; } .slider-viewport { display: inline-block; height: 30px; overflow: hidden; @@ -33,6 +32,7 @@ position: relative; width: auto; display: inline-block; color: white } .slider-content { @@ -46,5 +46,5 @@ } .slider-toggle:checked + .slider-viewport > .slider { top: 0; background-color: green;} .slider-toggle + .slider-viewport > .slider { top: -100%; background-color: red;} -
radmar revised this gist
Dec 2, 2012 . 2 changed files with 4 additions and 4 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 @@ -9,10 +9,10 @@ .slider, slider-content { /*-webkit-transition: all 500ms ease-in-out; -moz-transition: all 500ms ease-in-out; -ms-transition: all 500ms ease-in-out; -o-transition: all 500ms ease-in-out;*/ transition: all 500ms ease-in-out; } 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 @@ -3,7 +3,7 @@ <input type="checkbox" id="1" class="slider-toggle" /> <label class="slider-viewport" for="1"> <div class="slider"> <div class="slider-content">Enabled</div> <div class="slider-content">Disabled</div> </div> </label> -
radmar revised this gist
Dec 2, 2012 . 1 changed file with 6 additions and 11 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 @@ -7,7 +7,7 @@ visibility: hidden; } .slider, slider-content { -webkit-transition: all 500ms ease-in-out; -moz-transition: all 500ms ease-in-out; @@ -17,25 +17,20 @@ } .slider-viewport { display: inline-block; height: 30px; overflow: hidden; width: auto; position: relative; margin: 0; cursor: pointer; line-height: 30px; } .slider { height: 200%; position: relative; width: auto; display: inline-block; } -
radmar revised this gist
Dec 2, 2012 . 2 changed files with 10 additions and 10 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 @@ -7,13 +7,13 @@ visibility: hidden; } .slider { -webkit-transition: all 500ms ease-in-out; -moz-transition: all 500ms ease-in-out; -ms-transition: all 500ms ease-in-out; -o-transition: all 500ms ease-in-out; transition: all 500ms ease-in-out; } .slider-viewport { @@ -51,5 +51,5 @@ } .slider-toggle + .slider-viewport > .slider { top: 0; background-color: green; color: white} .slider-toggle:checked + .slider-viewport > .slider { top: -100%; background-color: 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 @@ -2,8 +2,8 @@ <input type="checkbox" id="1" class="slider-toggle" /> <label class="slider-viewport" for="1"> <div class="slider"> <div class="slider-content checked"><span>Enabled</span></div> <div class="slider-content"><span>Disabled</span></div> </div> </label> -
radmar revised this gist
Dec 2, 2012 . 2 changed files with 8 additions and 10 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 @@ -9,11 +9,11 @@ .slider-content { -webkit-transition: all 1500ms ease-in-out; -moz-transition: all 1500ms ease-in-out; -ms-transition: all 1500ms ease-in-out; -o-transition: all 1500ms ease-in-out; transition: all 1500ms ease-in-out; } .slider-viewport { @@ -51,7 +51,5 @@ } .slider-toggle + .slider-viewport > .slider { top: 0; background-color: #59ffbd;} .slider-toggle:checked + .slider-viewport > .slider { top: -100%; background-color: #ff4f51;} 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":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} -
radmar revised this gist
Dec 2, 2012 . 1 changed file with 9 additions and 10 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 @@ -7,14 +7,13 @@ visibility: hidden; } .slider-content { -webkit-transition: background-color 1500ms ease-in-out; -moz-transition: background-color 1500ms ease-in-out; -ms-transition: background-color 1500ms ease-in-out; -o-transition: background-color 1500ms ease-in-out; transition: background-color 1500ms ease-in-out; } .slider-viewport { @@ -43,8 +42,6 @@ .slider-content { /*background: rgba(157, 38, 29, 0.5);*/ cursor: pointer; display: block; height: 50%; @@ -53,6 +50,8 @@ padding: 0 5%; } .slider-toggle + .slider-viewport > .slider { top: 0; } .slider-toggle:checked + .slider-viewport > .slider { top: -100%; } .slider-toggle + .slider-viewport > .slider .slider-content { background-color: #ff4f51; } .slider-toggle:checked + .slider-viewport > .slider .slider-content.checked { background-color: #59ffbd; } -
radmar revised this gist
Dec 1, 2012 . 1 changed file with 2 additions and 2 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 @@ -3,8 +3,8 @@ */ .slider-toggle { display: none; visibility: hidden; } .slider-content, -
radmar revised this gist
Dec 1, 2012 . 1 changed file with 1 addition and 1 deletion.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 @@ -1,5 +1,5 @@ /** * Checkbox alternative UI */ .slider-toggle { -
radmar revised this gist
Dec 1, 2012 . 2 changed files with 3 additions and 3 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 @@ -3,8 +3,8 @@ */ .slider-toggle { /*display: none; visibility: hidden;*/ } .slider-content, 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 @@ -3,7 +3,7 @@ <input type="checkbox" id="1" class="slider-toggle" /> <label class="slider-viewport" for="1"> <div class="slider"> <div class="slider-content"><span>Disabled</span></div> <div class="slider-content checked"><span>Enabled</span></div> </div> </label> -
radmar revised this gist
Dec 1, 2012 . 1 changed file with 2 additions and 2 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 @@ -19,7 +19,7 @@ .slider-viewport { /* Uncomment the border-radius and border declaration to see the webkit bug in Chrome or Safari */ /*border-radius: 10px; border: 1px solid black;*/ /*-moz-border-radius: 50px;*/ display: inline-block; height: 30px; @@ -43,7 +43,7 @@ .slider-content { /*background: rgba(157, 38, 29, 0.5);*/ background-color: #ff4f51; cursor: pointer; display: block; -
radmar revised this gist
Dec 1, 2012 . 1 changed file with 6 additions and 4 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 @@ -9,16 +9,17 @@ .slider-content, .slider { -webkit-transition: all 500ms ease-in-out; -moz-transition: all 500ms ease-in-out; -ms-transition: all 500ms ease-in-out; -o-transition: all 500ms ease-in-out; transition: all 500ms ease-in-out; } .slider-viewport { /* Uncomment the border-radius and border declaration to see the webkit bug in Chrome or Safari */ border-radius: 10px; border: 1px solid black; /*-moz-border-radius: 50px;*/ display: inline-block; height: 30px; @@ -42,6 +43,7 @@ .slider-content { /*background: rgba(157, 38, 29, 0.5);*/ border-radius: 7px; background-color: #ff4f51; cursor: pointer; display: block; @@ -51,6 +53,6 @@ padding: 0 5%; } .checked { background-color: #59ffbd; } .slider-toggle + .slider-viewport > .slider { top: 0; } .slider-toggle:checked + .slider-viewport > .slider { top: -100%; } -
radmar revised this gist
Dec 1, 2012 . 1 changed file with 2 additions and 2 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 @@ -3,7 +3,7 @@ <input type="checkbox" id="1" class="slider-toggle" /> <label class="slider-viewport" for="1"> <div class="slider"> <div class="slider-content checked"><span>Enabled</span></div> <div class="slider-content"><span>Disabled</span></div> </div> </label> -
radmar created this gist
Dec 1, 2012 .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,56 @@ /** * Checkbox alternative */ .slider-toggle { display: none; visibility: hidden; } .slider-content, .slider { /* -webkit-transition: all 500ms ease-in-out; -moz-transition: all 500ms ease-in-out; -ms-transition: all 500ms ease-in-out; -o-transition: all 500ms ease-in-out; transition: all 500ms ease-in-out; */} .slider-viewport { /* Uncomment the border-radius and border declaration to see the webkit bug in Chrome or Safari */ /* border-radius: 50px; border: 5px solid green; */ /*-moz-border-radius: 50px;*/ display: inline-block; height: 30px; line-height: 30px; overflow: hidden; /*width: 300px*/ width: auto; position: relative; margin: 0; cursor: pointer; } .slider { /*height: 100%;*/ height: 200%; position: relative; /*width: 200%; */ width: auto; display: inline-block; } .slider-content { /*background: rgba(157, 38, 29, 0.5);*/ background-color: #ff4f51; cursor: pointer; display: block; height: 50%; width: auto; text-align: center; padding: 0 5%; } .checked { background-color: #59bdff; } .slider-toggle + .slider-viewport > .slider { top: 0; } .slider-toggle:checked + .slider-viewport > .slider { top: -100%; } 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 @@ <!-- content to be placed inside <body>…</body> --> <input type="checkbox" id="1" class="slider-toggle" /> <label class="slider-viewport" for="1"> <div class="slider"> <div class="slider-content checked"><span>Aktywny</span></div> <div class="slider-content"><span>Nieaktywny</span></div> </div> </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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ // 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ {"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}