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.
51 lines (50 loc) • 1.62 kB
CSS
/* dojox.mobile.RadioButton */
.mblRadioButton {
position: relative;
margin: -0.5em 3px 0.3em 4px;
width: 1em;
height: 1em;
border-style: outset;
border-width: 1px;
border-radius: 0.5em;
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#e2e2e2));
background-image: linear-gradient(to bottom, #ffffff 0%, #e2e2e2 100%);
font: inherit;
cursor: pointer;
-webkit-appearance: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-transform: translateY(0.45em);
transform: translateY(0.45em);
border-style: solid;
border-color: #c0c0c0;
}
.mblRadioButtonChecked,
.mblRadioButton:checked {
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#e2e2e2));
background-image: linear-gradient(to bottom, #ffffff 0%, #e2e2e2 100%);
}
.mblRadioButtonChecked::after,
.mblRadioButton:checked::after {
position: absolute;
content: "";
width: 0.3em;
height: 0.6em;
top: 0;
left: 0.25em;
border-width: 0.15em;
border-style: none solid solid none;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-transform-origin: 50% 50%;
transform-origin: 50% 50%;
border-color: #000000;
}
.mblRadioButtonChecked.mblRadioButtonSelected,
.mblRadioButton:checked.mblRadioButtonSelected {
background-image: -webkit-gradient(linear, left top, left bottom, from(#bbbbbb), to(#999999));
background-image: linear-gradient(to bottom, #bbbbbb 0%, #999999 100%);
}
.mblRadioButtonChecked.mblRadioButtonSelected::after,
.mblRadioButton:checked.mblRadioButtonSelected::after {
border-color: #ffffff;
}