| 1 |
/* dojox.mobile.CheckBox */ |
| 2 |
.mblCheckBox { |
| 3 |
position: relative; |
| 4 |
margin: -0.5em 3px 0.3em 4px; |
| 5 |
width: 1em; |
| 6 |
height: 1em; |
| 7 |
border-style: outset; |
| 8 |
border-width: 1px; |
| 9 |
.mbl-button-background-image(); |
| 10 |
font: inherit; |
| 11 |
cursor: pointer; |
| 12 |
.appearance(none); |
| 13 |
.tap-highlight-color(rgba(255,255,255,0)); |
| 14 |
.transform(translateY(0.45em)); |
| 15 |
.mblCheckBox-styles; |
| 16 |
} |
| 17 |
.mblCheckBoxSelected { |
| 18 |
.mbl-button-selected-background-image(); |
| 19 |
} |
| 20 |
.mblCheckBoxChecked, |
| 21 |
.mblCheckBox:checked { |
| 22 |
.mbl-button-checked-background-image(); |
| 23 |
&::after { |
| 24 |
position: absolute; |
| 25 |
content: ""; |
| 26 |
width: 0.3em; |
| 27 |
height: 0.6em; |
| 28 |
top: 0; |
| 29 |
left: 0.3em; |
| 30 |
border-width: 0.15em; |
| 31 |
border-style: none solid solid none; |
| 32 |
.transform(rotate(45deg)); |
| 33 |
.transform-origin(50% 50%); |
| 34 |
.mblCheckBoxChecked-after-styles; |
| 35 |
} |
| 36 |
&.mblCheckBoxSelected { |
| 37 |
.mbl-blue-button-selected-background-image(); |
| 38 |
&::after { |
| 39 |
.mblCheckBoxChecked-mblCheckBoxSelected-after-styles; |
| 40 |
} |
| 41 |
} |
| 42 |
} |