CheckBox.css 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* dojox.mobile.CheckBox */
  2. .mblCheckBox {
  3. position: relative;
  4. cursor: pointer;
  5. outline: none;
  6. -webkit-appearance: none;
  7. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  8. margin: -0.5em 3px 0.3em 4px;
  9. width: 1em;
  10. height: 1em;
  11. border: #9CACC0 1px outset;
  12. -webkit-border-radius: 3px;
  13. background-image: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd), to(#cecece), color-stop(0.5, #f8f8f8), color-stop(0.5, #eeeeee));
  14. font: inherit;
  15. -webkit-transform: translatey(0.45em);
  16. }
  17. .mblCheckBoxSelected {
  18. background-image: -webkit-gradient(linear, left top, left bottom, from(#ad7500), to(#ffaa00), color-stop(0.06, #ffb200), color-stop(0.5, #ffc700));
  19. border-color: #9CACC0;
  20. }
  21. .mblCheckBoxChecked, .mblCheckBox:checked {
  22. border-color: #9CACC0;
  23. background-image: -webkit-gradient(linear, left top, left bottom, from(#00a200), to(#00d300), color-stop(0.2, #00ba00), color-stop(0.2, #00ba00));
  24. }
  25. .mblCheckBoxChecked::after, .mblCheckBox:checked::after {
  26. position: absolute;
  27. content: "";
  28. width: 0.3em;
  29. height: 0.6em;
  30. top: 0;
  31. left: 0.3em;
  32. border-color: white;
  33. border-width: 0.15em;
  34. border-style: none solid solid none;
  35. -webkit-transform: rotate(45deg);
  36. -webkit-transform-origin: 50% 50%;
  37. }
  38. .mblCheckBoxChecked.mblCheckBoxSelected, .mblCheckBox:checked.mblCheckBoxSelected {
  39. background-image: -webkit-gradient(linear, left top, left bottom, from(#ad7500), to(#ffaa00), color-stop(0.06, #ffb200), color-stop(0.5, #ffc700));
  40. border-color: #9CACC0;
  41. }
  42. .mblCheckBoxChecked.mblCheckBoxSelected::after, .mblCheckBox:checked.mblCheckBoxSelected::after {
  43. border-color: #9CACC0;
  44. }