UNPKG

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.

55 lines (54 loc) 1.79 kB
/* dojox.mobile.CheckBox */ .mblCheckBox { position: relative; margin: -0.5em 3px 0.3em 4px; width: 1em; height: 1em; border-style: outset; border-width: 1px; 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: 1px solid #c0c0c0; border-bottom-color: #9b9b9b; border-radius: 0; } .mblCheckBoxSelected { background-image: -webkit-gradient(linear, left top, left bottom, from(#bbbbbb), to(#999999)); background-image: linear-gradient(to bottom, #bbbbbb 0%, #999999 100%); } .mblCheckBoxChecked, .mblCheckBox:checked { background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#e2e2e2)); background-image: linear-gradient(to bottom, #ffffff 0%, #e2e2e2 100%); } .mblCheckBoxChecked::after, .mblCheckBox:checked::after { position: absolute; content: ""; width: 0.3em; height: 0.6em; top: 0; left: 0.3em; 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; } .mblCheckBoxChecked.mblCheckBoxSelected, .mblCheckBox:checked.mblCheckBoxSelected { background-image: -webkit-gradient(linear, left top, left bottom, from(#bbbbbb), to(#999999)); background-image: linear-gradient(to bottom, #bbbbbb 0%, #999999 100%); } .mblCheckBoxChecked.mblCheckBoxSelected::after, .mblCheckBox:checked.mblCheckBoxSelected::after { border-color: #ffffff; }