|
|
@ -59,6 +59,8 @@ $background-color: #e6e7e8 !default; |
|
|
|
|
|
|
|
|
.switch { |
|
|
.switch { |
|
|
position: relative; |
|
|
position: relative; |
|
|
|
|
|
|
|
|
|
|
|
box-sizing: border-box; |
|
|
width: 260px; |
|
|
width: 260px; |
|
|
min-width: 260px; |
|
|
min-width: 260px; |
|
|
height: 260px; |
|
|
height: 260px; |
|
|
@ -69,21 +71,14 @@ $background-color: #e6e7e8 !default; |
|
|
|
|
|
|
|
|
color: #424242; |
|
|
color: #424242; |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|
-pie-background: -pie-linear-gradient(270deg, #bbb, #ddd); |
|
|
|
|
|
background: #ddd; |
|
|
background: #ddd; |
|
|
background: -owg-linear-gradient(270deg, #bbb, #ddd); |
|
|
|
|
|
background: -webkit-linear-gradient(270deg, #bbb, #ddd); |
|
|
|
|
|
background: -moz-linear-gradient(270deg, #bbb, #ddd); |
|
|
|
|
|
background: -o-linear-gradient(270deg, #bbb, #ddd); |
|
|
|
|
|
background: linear-gradient(180deg, #bbb, #ddd); |
|
|
background: linear-gradient(180deg, #bbb, #ddd); |
|
|
border-radius: 130px; |
|
|
border-radius: 130px; |
|
|
|
|
|
|
|
|
@include box-sizing(border-box); |
|
|
box-shadow: |
|
|
|
|
|
0 0 0 8px rgba(0, 0, 0, .1), |
|
|
@include box-shadow( |
|
|
0 0 3px 1px rgba(0, 0, 0, .1), |
|
|
0 0 0 8px rgba(0,0,0,.1) |
|
|
inset 0 8px 3px -8px rgba(255, 255, 255, .4); |
|
|
,0 0 3px 1px rgba(0,0,0,.1) |
|
|
|
|
|
,inset 0 8px 3px -8px rgba(255,255,255,.4)); |
|
|
|
|
|
|
|
|
|
|
|
input { |
|
|
input { |
|
|
display: none; |
|
|
display: none; |
|
|
@ -95,7 +90,7 @@ $background-color: #e6e7e8 !default; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
|
|
|
|
|
|
@include text-shadow(1px 1px 4px #4a4a4a); |
|
|
text-shadow: 1px 1px 4px #4a4a4a; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.on { |
|
|
.on { |
|
|
@ -103,15 +98,15 @@ $background-color: #e6e7e8 !default; |
|
|
font-family: sans-serif; |
|
|
font-family: sans-serif; |
|
|
color: #444; |
|
|
color: #444; |
|
|
|
|
|
|
|
|
@include transition(all .1s); |
|
|
transition: all .1s; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.off { |
|
|
.off { |
|
|
bottom: 5px; |
|
|
bottom: 5px; |
|
|
|
|
|
|
|
|
@include transition(all .1s); |
|
|
transition: all .1s; |
|
|
|
|
|
|
|
|
@include transform(scaleY(.85)); |
|
|
transform: scaleY(.85); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.but { |
|
|
.but { |
|
|
@ -125,90 +120,82 @@ $background-color: #e6e7e8 !default; |
|
|
border-bottom-width: 0; |
|
|
border-bottom-width: 0; |
|
|
border-radius: 400px 400px 400px 400px / 400px 400px 300px 300px; |
|
|
border-radius: 400px 400px 400px 400px / 400px 400px 300px 300px; |
|
|
|
|
|
|
|
|
@include box-shadow(inset 8px 6px 5px -7px #a2a2a2, |
|
|
box-shadow: |
|
|
inset -8px 6px 5px -7px #a2a2a2, |
|
|
inset 8px 6px 5px -7px #a2a2a2, |
|
|
inset 0 -3px 2px -2px rgba(200, 200, 200, .5), |
|
|
inset -8px 6px 5px -7px #a2a2a2, |
|
|
0 3px 3px -2px #fff, |
|
|
inset 0 -3px 2px -2px rgba(200, 200, 200, .5), |
|
|
inset 0 -230px 60px -200px rgba(255, 255, 255, .2), |
|
|
0 3px 3px -2px #fff, |
|
|
inset 0 220px 40px -200px rgba(0, 0, 0, .3)); |
|
|
inset 0 -230px 60px -200px rgba(255, 255, 255, .2), |
|
|
|
|
|
inset 0 220px 40px -200px rgba(0, 0, 0, .3); |
|
|
|
|
|
|
|
|
@include transition(all .2s); |
|
|
transition: all .2s; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.back { |
|
|
.back { |
|
|
|
|
|
|
|
|
|
|
|
box-sizing: border-box; |
|
|
width: 210px; |
|
|
width: 210px; |
|
|
height: 210px; |
|
|
height: 210px; |
|
|
padding: 4px 4px; |
|
|
padding: 4px 4px; |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|
background-color: #888787; |
|
|
background-color: #888787; |
|
|
background-image: -owg-linear-gradient(0deg, transparent 30%, transparent 70%), -owg-linear-gradient(90deg, rgba(150, 150, 150, 0) 30%, rgba(150, 150, 150, .2) 50%, rgba(150, 150, 150, 0) 70%); |
|
|
|
|
|
background-image: -webkit-linear-gradient(0deg, transparent 30%, transparent 70%), -webkit-linear-gradient(90deg, rgba(150, 150, 150, 0) 30%, rgba(150, 150, 150, .2) 50%, rgba(150, 150, 150, 0) 70%); |
|
|
|
|
|
background-image: -moz-linear-gradient(0deg, transparent 30%, transparent 70%), -moz-linear-gradient(90deg, rgba(150, 150, 150, 0) 30%, rgba(150, 150, 150, .2) 50%, rgba(150, 150, 150, 0) 70%); |
|
|
|
|
|
background-image: -o-linear-gradient(0deg, transparent 30%, transparent 70%), -o-linear-gradient(90deg, rgba(150, 150, 150, 0) 30%, rgba(150, 150, 150, .2) 50%, rgba(150, 150, 150, 0) 70%); |
|
|
|
|
|
background-image: linear-gradient(-90deg, transparent 30%, transparent 70%), linear-gradient(0deg, rgba(150, 150, 150, 0) 30%, rgba(150, 150, 150, .2) 50%, rgba(150, 150, 150, 0) 70%); |
|
|
background-image: linear-gradient(-90deg, transparent 30%, transparent 70%), linear-gradient(0deg, rgba(150, 150, 150, 0) 30%, rgba(150, 150, 150, .2) 50%, rgba(150, 150, 150, 0) 70%); |
|
|
border-radius: 105px; |
|
|
border-radius: 105px; |
|
|
|
|
|
|
|
|
@include box-shadow(30px 30px 30px -20px rgba(58, 58, 58, .3), |
|
|
box-shadow: |
|
|
-30px 30px 30px -20px rgba(58, 58, 58, .3), |
|
|
30px 30px 30px -20px rgba(58, 58, 58, .3), |
|
|
0 30px 30px 0 rgba(16, 16, 16, .3), |
|
|
-30px 30px 30px -20px rgba(58, 58, 58, .3), |
|
|
inset 0 -1px 0 0 #484848); |
|
|
0 30px 30px 0 rgba(16, 16, 16, .3), |
|
|
|
|
|
inset 0 -1px 0 0 #484848; |
|
|
@include box-sizing(border-box); |
|
|
|
|
|
|
|
|
|
|
|
@include transition(all .2s); |
|
|
transition: all .2s; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
input:checked + .back .on, |
|
|
input:checked + .back .on, |
|
|
input:checked + .back .off{ |
|
|
input:checked + .back .off{ |
|
|
@include text-shadow(1px 1px 4px #4a4a4a); |
|
|
text-shadow: 1px 1px 4px #4a4a4a; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
input:checked + .back .on{ |
|
|
input:checked + .back .on{ |
|
|
top: 10px; |
|
|
top: 10px; |
|
|
color: #4c4c4c; |
|
|
color: #4c4c4c; |
|
|
|
|
|
|
|
|
@include transform(scaleY(.85)); |
|
|
transform: scaleY(.85); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
input:checked + .back .off{ |
|
|
input:checked + .back .off{ |
|
|
bottom: 5px; |
|
|
bottom: 5px; |
|
|
color: #444; |
|
|
color: #444; |
|
|
|
|
|
|
|
|
@include transform(scaleY(1)); |
|
|
transform: scaleY(1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
input:checked + .back .but{ |
|
|
input:checked + .back .but{ |
|
|
margin-top: 20px; |
|
|
margin-top: 20px; |
|
|
background: #dcdcdc; |
|
|
background: #dcdcdc; |
|
|
background-image: -owg-radial-gradient(50% 15%, circle closest-corner, rgba(0, 0, 0, .3), transparent); |
|
|
|
|
|
background-image: -webkit-radial-gradient(50% 15%, circle closest-corner, rgba(0, 0, 0, .3), transparent); |
|
|
|
|
|
background-image: -moz-radial-gradient(50% 15%, circle closest-corner, rgba(0, 0, 0, .3), transparent); |
|
|
|
|
|
background-image: -o-radial-gradient(50% 15%, circle closest-corner, rgba(0, 0, 0, .3), transparent); |
|
|
|
|
|
background-image: radial-gradient(50% 15%, circle closest-corner, rgba(0, 0, 0, .3), transparent); |
|
|
background-image: radial-gradient(50% 15%, circle closest-corner, rgba(0, 0, 0, .3), transparent); |
|
|
border-radius: 400px 400px 400px 400px / 300px 300px 400px 400px; |
|
|
border-radius: 400px 400px 400px 400px / 300px 300px 400px 400px; |
|
|
|
|
|
|
|
|
@include box-shadow(inset 8px -4px 5px -7px #a9a9a9, |
|
|
box-shadow: |
|
|
inset -8px -4px 5px -7px #808080, |
|
|
inset 8px -4px 5px -7px #a9a9a9, |
|
|
0 -3px 8px -4px rgba(50, 50, 50, .4), |
|
|
inset -8px -4px 5px -7px #808080, |
|
|
inset 0 3px 4px -2px #9c9c9c, |
|
|
0 -3px 8px -4px rgba(50, 50, 50, .4), |
|
|
inset 0 280px 40px -200px rgba(0, 0, 0, .2), |
|
|
inset 0 3px 4px -2px #9c9c9c, |
|
|
inset 0 -200px 40px -200px rgba(180, 180, 180, .2)); |
|
|
inset 0 280px 40px -200px rgba(0, 0, 0, .2), |
|
|
|
|
|
inset 0 -200px 40px -200px rgba(180, 180, 180, .2); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
input:checked + .back{ |
|
|
input:checked + .back{ |
|
|
padding: 2px 4px; |
|
|
padding: 2px 4px; |
|
|
|
|
|
|
|
|
background-image: -owg-linear-gradient(90deg, #868686 30%, transparent 70%), -owg-linear-gradient(180deg, rgba(115, 115, 115, 0) 0%, rgba(255, 255, 255, .74) 50%, rgba(105, 105, 105, 0) 100%); |
|
|
|
|
|
background-image: -webkit-linear-gradient(90deg, #868686 30%, transparent 70%), -webkit-linear-gradient(180deg, rgba(115, 115, 115, 0) 0%, rgba(255, 255, 255, .74) 50%, rgba(105, 105, 105, 0) 100%); |
|
|
|
|
|
background-image: -moz-linear-gradient(90deg, #868686 30%, transparent 70%), -moz-linear-gradient(180deg, rgba(115, 115, 115, 0) 0%, rgba(255, 255, 255, .74) 50%, rgba(105, 105, 105, 0) 100%); |
|
|
|
|
|
background-image: -o-linear-gradient(90deg, #868686 30%, transparent 70%), -o-linear-gradient(180deg, rgba(115, 115, 115, 0) 0%, rgba(255, 255, 255, .74) 50%, rgba(105, 105, 105, 0) 100%); |
|
|
|
|
|
background-image: linear-gradient(0deg, #868686 30%, transparent 70%), linear-gradient(90deg, rgba(115, 115, 115, 0) 0%, rgba(255, 255, 255, .74) 50%, rgba(105, 105, 105, 0) 100%); |
|
|
background-image: linear-gradient(0deg, #868686 30%, transparent 70%), linear-gradient(90deg, rgba(115, 115, 115, 0) 0%, rgba(255, 255, 255, .74) 50%, rgba(105, 105, 105, 0) 100%); |
|
|
|
|
|
|
|
|
@include box-shadow(30px 30px 30px -20px rgba(49, 49, 49, .1), |
|
|
box-shadow: |
|
|
-30px 30px 30px -20px rgba(111, 111, 111, .1), |
|
|
30px 30px 30px -20px rgba(49, 49, 49, .1), |
|
|
0 30px 30px 0 rgba(0, 0, 0, .2), |
|
|
-30px 30px 30px -20px rgba(111, 111, 111, .1), |
|
|
inset 0 1px 2px 0 rgba(167, 167, 167, .6)); |
|
|
0 30px 30px 0 rgba(0, 0, 0, .2), |
|
|
|
|
|
inset 0 1px 2px 0 rgba(167, 167, 167, .6); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|