CheckBox.css 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. font-size: 18px;
  12. border: 1px outset #b5bcc7;
  13. background-color: #5cb0ff;
  14. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ffffff), color-stop(3.3333333333333335%, rgba(255, 255, 255, 0.1)), color-stop(0.5, rgba(255, 255, 255, 0.6)), color-stop(1, rgba(255, 255, 255, 0.3)));
  15. -webkit-border-radius: 2px;
  16. -webkit-transform: translatey(0.45em);
  17. }
  18. .mblCheckBoxSelected {
  19. border-color: #769dc0;
  20. background-color: #0064c2;
  21. }
  22. .mblCheckBoxChecked, .mblCheckBox:checked {
  23. border-color: #769dc0;
  24. background-color: #007ef5;
  25. }
  26. .mblCheckBoxChecked::after, .mblCheckBox:checked::after {
  27. content: "";
  28. width: 0.3em;
  29. height: 0.6em;
  30. position: absolute;
  31. top: 0;
  32. left: 0.3em;
  33. border-color: #000000;
  34. border-width: 0.15em;
  35. border-style: none solid solid none;
  36. -webkit-transform: rotate(45deg);
  37. -webkit-transform-origin: 50% 50%;
  38. }
  39. .mblCheckBoxChecked.mblCheckBoxSelected, .mblCheckBox:checked.mblCheckBoxSelected {
  40. border-color: #769dc0;
  41. background-color: #0064c2;
  42. }
  43. .mblCheckBoxChecked.mblCheckBoxSelected::after, .mblCheckBox:checked.mblCheckBoxSelected::after {
  44. border-color: #000000;
  45. }