-
Notifications
You must be signed in to change notification settings - Fork 0
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
d54c57a
commit 34af4f4
Showing
8 changed files
with
92 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.switch_box{ | ||
display: flex; | ||
align-items: center; | ||
-webkit-box-pack: center; | ||
-ms-flex-pack: center; | ||
justify-content: center; | ||
-webkit-box-align: center; | ||
-ms-flex-align: center; | ||
align-items: center; | ||
-webkit-box-flex: 1; | ||
-ms-flex: 1; | ||
flex: 1; | ||
} | ||
|
||
input[type="checkbox"].switch_1{ | ||
font-size: 30px; | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
width: 1em; | ||
height: 0.5em; | ||
background: #ddd; | ||
border-radius: 3em; | ||
position: relative; | ||
cursor: pointer; | ||
outline: none; | ||
-webkit-transition: all .2s ease-in-out; | ||
transition: all .2s ease-in-out; | ||
} | ||
|
||
input[type="checkbox"].switch_1:checked{ | ||
background: $blue; | ||
} | ||
|
||
input[type="checkbox"].switch_1:after{ | ||
position: absolute; | ||
content: ""; | ||
width: 0.5em; | ||
height: 0.5em; | ||
border-radius: 50%; | ||
background: #fff; | ||
-webkit-box-shadow: 0 0 .25em rgba(0,0,0,.3); | ||
box-shadow: 0 0 .25em rgba(0,0,0,.3); | ||
-webkit-transform: scale(.7); | ||
transform: scale(.7); | ||
left: 0; | ||
-webkit-transition: all .2s ease-in-out; | ||
transition: all .2s ease-in-out; | ||
} | ||
|
||
input[type="checkbox"].switch_1:checked:after{ | ||
left: calc(100% - 0.5em); | ||
} |
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
@import "./video_controls"; | ||
@import "./main_content.scss"; | ||
@import "./sliders.scss"; | ||
@import "./checkbox.scss"; | ||
@import url("https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"); | ||
@import "node_modules/bootstrap/scss/bootstrap"; | ||
|
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
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