|
@@ -110,16 +110,16 @@
|
|
line-height: normal;
|
|
line-height: normal;
|
|
}
|
|
}
|
|
.switch.switch-animate > div {
|
|
.switch.switch-animate > div {
|
|
- -webkit-transition: left 0.5s;
|
|
|
|
- -moz-transition: left 0.5s;
|
|
|
|
- -o-transition: left 0.5s;
|
|
|
|
- transition: left 0.5s;
|
|
|
|
|
|
+ -webkit-transition: margin-left 0.5s;
|
|
|
|
+ -moz-transition: margin-left 0.5s;
|
|
|
|
+ -o-transition: margin-left 0.5s;
|
|
|
|
+ transition: margin-left 0.5s;
|
|
}
|
|
}
|
|
.switch.switch-off > div {
|
|
.switch.switch-off > div {
|
|
- left: -50%;
|
|
|
|
|
|
+ margin-left: -50%;
|
|
}
|
|
}
|
|
.switch.switch-on > div {
|
|
.switch.switch-on > div {
|
|
- left: 0%;
|
|
|
|
|
|
+ margin-left: 0%;
|
|
}
|
|
}
|
|
.switch.switch-disabled,
|
|
.switch.switch-disabled,
|
|
.switch.switch-readonly {
|
|
.switch.switch-readonly {
|
|
@@ -133,18 +133,26 @@
|
|
.switch.switch-readonly > div > label {
|
|
.switch.switch-readonly > div > label {
|
|
cursor: default !important;
|
|
cursor: default !important;
|
|
}
|
|
}
|
|
-.switch:focus {
|
|
|
|
- border-color: #0088cc;
|
|
|
|
|
|
+.switch.switch-focused {
|
|
|
|
+ border-color: rgba(82, 168, 236, 0.8);
|
|
outline: 0;
|
|
outline: 0;
|
|
- -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(red(@btnPrimaryBackground), green(@btnPrimaryBackground), blue(@btnPrimaryBackground), .6);
|
|
|
|
- -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(red(@btnPrimaryBackground), green(@btnPrimaryBackground), blue(@btnPrimaryBackground), .6);
|
|
|
|
- box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(red(@btnPrimaryBackground), green(@btnPrimaryBackground), blue(@btnPrimaryBackground), .6);
|
|
|
|
|
|
+ outline: thin dotted \9;
|
|
|
|
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
|
|
|
+ -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
|
|
|
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
|
}
|
|
}
|
|
.switch > div {
|
|
.switch > div {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
- width: 150%;
|
|
|
|
position: relative;
|
|
position: relative;
|
|
|
|
+ width: 150%;
|
|
top: 0;
|
|
top: 0;
|
|
|
|
+ -webkit-transform: translate3d(0, 0, 0);
|
|
|
|
+ -moz-transform: translate3d(0, 0, 0);
|
|
|
|
+ -o-transform: translate3d(0, 0, 0);
|
|
|
|
+ transform: translate3d(0, 0, 0);
|
|
|
|
+ -webkit-border-radius: 4px;
|
|
|
|
+ -moz-border-radius: 4px;
|
|
|
|
+ border-radius: 4px;
|
|
}
|
|
}
|
|
.switch > div > span,
|
|
.switch > div > span,
|
|
.switch > div > label {
|
|
.switch > div > label {
|
|
@@ -152,7 +160,6 @@
|
|
-moz-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
- position: relative;
|
|
|
|
display: inline-block !important;
|
|
display: inline-block !important;
|
|
height: 100%;
|
|
height: 100%;
|
|
padding-bottom: 4px;
|
|
padding-bottom: 4px;
|
|
@@ -163,7 +170,7 @@
|
|
.switch > div > span {
|
|
.switch > div > span {
|
|
text-align: center;
|
|
text-align: center;
|
|
z-index: 1;
|
|
z-index: 1;
|
|
- width: 33%;
|
|
|
|
|
|
+ width: 33.333333333%;
|
|
}
|
|
}
|
|
.switch > div > span.switch-handle-on {
|
|
.switch > div > span.switch-handle-on {
|
|
-webkit-border-top-left-radius: 4px;
|
|
-webkit-border-top-left-radius: 4px;
|
|
@@ -392,7 +399,7 @@
|
|
margin-top: -1px;
|
|
margin-top: -1px;
|
|
margin-bottom: -1px;
|
|
margin-bottom: -1px;
|
|
z-index: 100;
|
|
z-index: 100;
|
|
- width: 34%;
|
|
|
|
|
|
+ width: 33.333333333%;
|
|
border-left: 1px solid #cccccc;
|
|
border-left: 1px solid #cccccc;
|
|
border-right: 1px solid #cccccc;
|
|
border-right: 1px solid #cccccc;
|
|
color: #333333;
|
|
color: #333333;
|
|
@@ -427,5 +434,8 @@
|
|
}
|
|
}
|
|
.switch input[type=radio],
|
|
.switch input[type=radio],
|
|
.switch input[type=checkbox] {
|
|
.switch input[type=checkbox] {
|
|
- display: none;
|
|
|
|
|
|
+ position: absolute !important;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ z-index: -1;
|
|
}
|
|
}
|