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.

84 lines (83 loc) 2.17 kB
/* dojox.mobile.CheckBox */ .mblCheckBox { position: relative; margin: -0.5em 3px 0.3em 4px; width: 1em; height: 1em; border-style: outset; border-width: 1px; 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: 2px solid #ffffff; border-radius: 0; opacity: 0; margin: 0; margin-top: 8px; margin-bottom: 8px; transform: none; z-index: 1; } .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: black; } .mblCheckBoxChecked.mblCheckBoxSelected::after, .mblCheckBox:checked.mblCheckBoxSelected::after { border-color: white; } .mblCheckBox + .mblCheckableInputDecorator:before { content: ''; width: 20px; height: 20px; position: absolute; border: 2px solid #ffffff; background-color: transparent; margin-left: -25px; z-index: 0; border-radius: 0; margin-top: 8px; margin-bottom: 8px; } .mblCheckBox:not([disabled]):active + .mblCheckableInputDecorator:before, .mblCheckBox:not([disabled]) + .mblCheckableInputDecorator:active:before { background-color: Highlight; } .mblCheckBoxChecked + .mblCheckableInputDecorator:before { background-image: url("images/dark/check.png"); background-position: 50% 50%; background-size: 32px 32px; background-repeat: no-repeat; } .mblCheckBox[disabled] + .mblCheckableInputDecorator:before { border-color: #808080; } .mblCheckBox[disabled].mblCheckBoxChecked + .mblCheckableInputDecorator:before { background-image: url("images/check-disabled.png"); background-position: 50% 50%; background-size: 32px 32px; background-repeat: no-repeat; } .mblCheckableInputContainer + label { color: #ffffff; margin: 0 5px 0 5px; margin-top: 8px; margin-bottom: 8px; -ms-user-select: none; display: inline-block; }