2014-08-27 00:01:15 +00:00
|
|
|
@import '../shared';
|
|
|
|
|
2014-09-02 17:13:35 +00:00
|
|
|
height = 8px;
|
|
|
|
width = round( height * 2.5 );
|
|
|
|
border-radius = height;
|
2014-08-27 00:01:15 +00:00
|
|
|
|
|
|
|
#container {
|
|
|
|
height: 100%;
|
2014-09-02 17:13:35 +00:00
|
|
|
cursor: pointer;
|
|
|
|
padding-left: padding
|
2014-09-02 22:34:12 +00:00
|
|
|
|
2014-09-02 17:13:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#switch-track {
|
|
|
|
width: width;
|
|
|
|
height: height;
|
|
|
|
background: light;
|
|
|
|
border-radius: border-radius;
|
|
|
|
transition: background 0.1s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
#switch-knob {
|
|
|
|
height: height;
|
|
|
|
width: height;
|
|
|
|
border-radius: border-radius;
|
2014-09-03 00:44:37 +00:00
|
|
|
background: font-color;
|
2014-09-02 17:13:35 +00:00
|
|
|
transition: transform 0.15s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.value-true {
|
|
|
|
#switch-track {
|
|
|
|
background: boolean-color;
|
|
|
|
}
|
|
|
|
#switch-knob {
|
|
|
|
transform: translate3d( width - height, 0, 0 );
|
|
|
|
}
|
2014-09-02 22:34:12 +00:00
|
|
|
&:hover #switch-knob {
|
|
|
|
transform: translate3d( width - height, 0, 0 ) scale( 1.5 );
|
|
|
|
}
|
2014-09-02 17:13:35 +00:00
|
|
|
}
|
|
|
|
|
2014-09-03 00:00:52 +00:00
|
|
|
.value-false:hover #switch-knob {
|
|
|
|
transform: scale( 1.5 );
|
|
|
|
}
|
|
|
|
|
2014-09-02 17:13:35 +00:00
|
|
|
#text {
|
|
|
|
margin-left: padding;
|
|
|
|
.value-true & {
|
|
|
|
// color: boolean-color;
|
|
|
|
}
|
|
|
|
.value-false & {
|
|
|
|
color: light;
|
|
|
|
}
|
2014-09-03 00:00:52 +00:00
|
|
|
}
|