You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
282 lines
4.9 KiB
282 lines
4.9 KiB
/* dojox.mobile.Switch */ |
|
/* Switch - common */ |
|
.mblSwitch { |
|
margin: 0; |
|
position: relative; |
|
display: inline-block; |
|
height: 27px; |
|
line-height: 29px; |
|
overflow: hidden; |
|
text-align: left; |
|
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); |
|
} |
|
.mblListItem .mblSwitch { |
|
position: absolute; |
|
right: 12px; |
|
top: 8px; |
|
} |
|
.mblSwitchInner { |
|
position: absolute; |
|
top: 0; |
|
height: 27px; |
|
} |
|
.mblSwitchAnimation .mblSwitchInner { |
|
-webkit-transition-property: left; |
|
transition-property: left; |
|
-webkit-transition-duration: 0.1s; |
|
transition-duration: 0.1s; |
|
} |
|
.mblSwitchOn .mblSwitchInner { |
|
left: 0; |
|
} |
|
.mblSwitchBg { |
|
position: absolute; |
|
top: 0; |
|
width: 94px; |
|
height: 27px; |
|
font-family: Helvetica; |
|
font-size: 16px; |
|
font-weight: bold; |
|
line-height: 29px; |
|
-webkit-box-sizing: border-box; |
|
box-sizing: border-box; |
|
border: none; |
|
} |
|
.mblSwitchBgLeft { |
|
left: 0; |
|
color: white; |
|
background-color: #3f84eb; |
|
} |
|
.mblSwitchBgRight { |
|
color: #7f7f7f; |
|
} |
|
.mblSwitchKnob { |
|
position: absolute; |
|
top: 0; |
|
height: 27px; |
|
font-size: 1px; |
|
-webkit-box-sizing: border-box; |
|
box-sizing: border-box; |
|
border: 2px solid #000000; |
|
background-color: #ffffff; |
|
width: 18px !important; |
|
z-index: 3; |
|
border-radius: 0 !important; |
|
} |
|
.mblSwitchText { |
|
position: relative; |
|
top: 0; |
|
width: 53px; |
|
height: 27px; |
|
padding: 0; |
|
line-height: 28px; |
|
text-align: center; |
|
} |
|
.mblSwitchTextLeft { |
|
left: 0; |
|
} |
|
.mblSwitchTextRight { |
|
left: 40px; |
|
} |
|
/* Square Shape */ |
|
.mblSwSquareShape { |
|
width: 94px; |
|
} |
|
.mblSwSquareShape.mblSwitchOff .mblSwitchInner { |
|
left: -53px; |
|
} |
|
.mblSwSquareShape .mblSwitchBg { |
|
border-radius: 2px; |
|
} |
|
.mblSwSquareShape .mblSwitchBgRight { |
|
left: 53px; |
|
} |
|
.mblSwSquareShape .mblSwitchKnob { |
|
left: 53px; |
|
width: 41px; |
|
border-radius: 2px; |
|
} |
|
.mblSwSquareShape .mblSwitchText { |
|
width: 53px; |
|
} |
|
.mblSwSquareShape .mblSwitchTextRight { |
|
left: 40px; |
|
} |
|
/* Round Shape1 */ |
|
.mblSwRoundShape1 { |
|
width: 77px; |
|
} |
|
.mblSwRoundShape1.mblSwitchOff .mblSwitchInner { |
|
left: -50px; |
|
} |
|
.mblSwRoundShape1 .mblSwitchBg { |
|
width: 77px; |
|
border-radius: 14px; |
|
} |
|
.mblSwRoundShape1 .mblSwitchBgRight { |
|
left: 50px; |
|
} |
|
.mblSwRoundShape1 .mblSwitchKnob { |
|
left: 50px; |
|
width: 27px; |
|
border-radius: 13px; |
|
} |
|
.mblSwRoundShape1 .mblSwitchText { |
|
width: 50px; |
|
} |
|
.mblSwRoundShape1 .mblSwitchTextRight { |
|
left: 26px; |
|
} |
|
/* Round Shape2 */ |
|
.mblSwRoundShape2 { |
|
width: 94px; |
|
} |
|
.mblSwRoundShape2.mblSwitchOff .mblSwitchInner { |
|
left: -51px; |
|
} |
|
.mblSwRoundShape2 .mblSwitchBg { |
|
border-radius: 14px; |
|
} |
|
.mblSwRoundShape2 .mblSwitchBgRight { |
|
left: 51px; |
|
} |
|
.mblSwRoundShape2 .mblSwitchKnob { |
|
left: 51px; |
|
width: 43px; |
|
border-radius: 13px; |
|
} |
|
.mblSwRoundShape2 .mblSwitchText { |
|
width: 51px; |
|
} |
|
.mblSwRoundShape2 .mblSwitchTextRight { |
|
left: 42px; |
|
} |
|
/* Arc Shape1 */ |
|
.mblSwArcShape1 { |
|
width: 77px; |
|
} |
|
.mblSwArcShape1.mblSwitchOff .mblSwitchInner { |
|
left: -50px; |
|
} |
|
.mblSwArcShape1 .mblSwitchBg { |
|
width: 77px; |
|
border-radius: 5px/14px; |
|
} |
|
.mblSwArcShape1 .mblSwitchBgRight { |
|
left: 50px; |
|
} |
|
.mblSwArcShape1 .mblSwitchKnob { |
|
left: 50px; |
|
width: 27px; |
|
border-radius: 5px/13px; |
|
} |
|
.mblSwArcShape1 .mblSwitchText { |
|
width: 50px; |
|
} |
|
.mblSwArcShape1 .mblSwitchTextRight { |
|
left: 26px; |
|
} |
|
/* Arc Shape2 */ |
|
.mblSwArcShape2 { |
|
width: 94px; |
|
} |
|
.mblSwArcShape2.mblSwitchOff .mblSwitchInner { |
|
left: -51px; |
|
} |
|
.mblSwArcShape2 .mblSwitchBg { |
|
border-radius: 5px/14px; |
|
} |
|
.mblSwArcShape2 .mblSwitchBgRight { |
|
left: 51px; |
|
} |
|
.mblSwArcShape2 .mblSwitchKnob { |
|
left: 51px; |
|
width: 43px; |
|
border-radius: 5px/13px; |
|
} |
|
.mblSwArcShape2 .mblSwitchText { |
|
width: 51px; |
|
} |
|
.mblSwArcShape2 .mblSwitchTextRight { |
|
left: 42px; |
|
} |
|
/* Default Shape */ |
|
.mblSwDefaultShape { |
|
width: 94px; |
|
} |
|
.mblSwDefaultShape.mblSwitchOff .mblSwitchInner { |
|
left: -53px; |
|
} |
|
.mblSwDefaultShape .mblSwitchBg { |
|
border-radius: 2px; |
|
} |
|
.mblSwDefaultShape .mblSwitchBgRight { |
|
left: 53px; |
|
} |
|
.mblSwDefaultShape .mblSwitchKnob { |
|
left: 53px; |
|
width: 41px; |
|
border-radius: 2px; |
|
} |
|
.mblSwDefaultShape .mblSwitchText { |
|
width: 53px; |
|
} |
|
.mblSwDefaultShape .mblSwitchTextRight { |
|
left: 40px; |
|
} |
|
.mblSwitchBgLeft { |
|
background-color: Highlight; |
|
height: 14px; |
|
margin: auto 4px; |
|
top: 50%; |
|
bottom: 50%; |
|
border-radius: 0 !important; |
|
width: 45px !important; |
|
z-index: 1; |
|
} |
|
.mblSwitch { |
|
width: 65px; |
|
float: right; |
|
display: block; |
|
clear: right; |
|
} |
|
.mblSwitch:before { |
|
content: ''; |
|
width: 85%; |
|
height: 65%; |
|
position: absolute; |
|
border: 2px solid #ffffff; |
|
margin: auto 0; |
|
top: 50%; |
|
bottom: 50%; |
|
z-index: 2; |
|
} |
|
.mblSwitch.mblSwitchOn .mblSwitchKnob { |
|
left: 45px !important; |
|
} |
|
.mblSwitch .mblSwitchInner { |
|
width: 100%; |
|
} |
|
.mblSwitch[disabled] .mblSwitchKnob, |
|
.mblSwitch[disabled] .mblSwitchBgLeft { |
|
background-color: #808080; |
|
} |
|
.mblSwitch[disabled]:before { |
|
border-color: #808080; |
|
} |
|
.mblSwitchText { |
|
display: none !important; |
|
} |
|
.mblSwitchLabel { |
|
color: #ffffff; |
|
position: relative; |
|
float: left; |
|
clear: both; |
|
margin: 3px 0; |
|
} |
|
.mblSwitchContainer { |
|
width: 100%; |
|
min-height: 27px; |
|
margin-top: 8px; |
|
margin-bottom: 8px; |
|
}
|
|
|