-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
928561a
commit 45fb754
Showing
7 changed files
with
91 additions
and
26 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
label.slider { | ||
display: inline-block; | ||
background: #ccc; | ||
border: 1px solid #ccc; | ||
width: 32px; | ||
height: 18px; | ||
margin: 0 30px 0 5px; | ||
border-radius: 9px; | ||
vertical-align: middle!important; | ||
box-sizing: border-box; | ||
transition: 0.05s 0.05s; | ||
cursor: pointer; | ||
position: relative; | ||
} | ||
|
||
label.slider::before { | ||
content: ''; | ||
display: block; | ||
width: 16px; | ||
height: 16px; | ||
background: #f9f9f9; | ||
border: 1px solid #fff; | ||
box-sizing: border-box; | ||
border-radius: 50%; | ||
box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 1), inset -1px -1px 2px rgba(0, 0, 0, 0.2); | ||
transition: 0.1s; | ||
transform: translateX(0); | ||
} | ||
|
||
input[type="checkbox"] { | ||
display: none; | ||
} | ||
|
||
input[type="checkbox"]:checked + label.slider { | ||
background: #6e1edc; | ||
border-color: #6e1edc; | ||
} | ||
|
||
input[type="checkbox"]:checked + label.slider::before { | ||
transform: translateX(14px); | ||
} |
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
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
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
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
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