dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
53 lines (52 loc) • 1.97 kB
CSS
/* dojox.mobile.ToggleButton */
.mblToggleButton {
position: relative;
padding: 0 10px 0 25px;
height: 29px;
border-width: 1px 1px 1px 1px;
border-style: outset;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd), to(#cecece), color-stop(0.5, #f8f8f8), color-stop(0.5, #eeeeee));
background-image: linear-gradient(to bottom, #fdfdfd 0%, #f8f8f8 50%, #eeeeee 50%, #cecece 100%);
font-family: Helvetica;
line-height: 29px;
cursor: pointer;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
border-color: #9cacc0;
border-radius: 5px;
font-size: 13px;
color: black;
}
.mblToggleButton:disabled {
border-color: grey;
background-image: none;
color: grey;
cursor: default;
}
.mblToggleButtonSelected {
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0f0f0), to(#bfbfbf), color-stop(0.5, #ebebeb), color-stop(0.5, #dedede));
background-image: linear-gradient(to bottom, #f0f0f0 0%, #ebebeb 50%, #dedede 50%, #bfbfbf 100%);
}
.mblToggleButtonChecked {
background-image: -webkit-gradient(linear, left top, left bottom, from(#7a9de9), to(#2362dd), color-stop(0.5, #366edf), color-stop(0.5, #215fdc));
background-image: linear-gradient(to bottom, #7a9de9 0%, #366edf 50%, #215fdc 50%, #2362dd 100%);
color: white;
}
.mblToggleButtonChecked:after {
position: absolute;
content: "";
top: 6px;
left: 7px;
width: 5px;
height: 10px;
border-width: 2px;
border-style: none solid solid none;
-webkit-transform: rotate(45deg) skew(10deg);
transform: rotate(45deg) skew(10deg);
-webkit-transform-origin: 50% 50%;
transform-origin: 50% 50%;
border-color: white;
}
.mblToggleButtonChecked.mblToggleButtonSelected {
background-image: -webkit-gradient(linear, left top, left bottom, from(#8ea4c1), to(#4a6c9b), color-stop(0.5, #5877a2), color-stop(0.5, #476999));
background-image: linear-gradient(to bottom, #8ea4c1 0%, #5877a2 50%, #476999 50%, #4a6c9b 100%);
}