RadioButton.css 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* dojox.mobile.RadioButton */
  2. .mblRadioButton {
  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: 0.5em;
  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. .mblRadioButtonChecked, .mblRadioButton:checked {
  18. border-color: #9CACC0;
  19. background-image: -webkit-gradient(linear, left top, left bottom, from(#00a200), to(#00d300), color-stop(0.2, #00ba00), color-stop(0.2, #00ba00));
  20. }
  21. .mblRadioButtonChecked::after, .mblRadioButton:checked::after {
  22. position: absolute;
  23. content: "";
  24. width: 0.3em;
  25. height: 0.6em;
  26. top: 0;
  27. left: 0.25em;
  28. border-color: white;
  29. border-width: 0.15em;
  30. border-style: none solid solid none;
  31. border-color: white;
  32. -webkit-transform: rotate(45deg);
  33. -webkit-transform-origin: 50% 50%;
  34. }
  35. .mblRadioButtonChecked.mblRadioButtonSelected, .mblRadioButton:checked.mblRadioButtonSelected {
  36. border-color: #9CACC0;
  37. background-image: -webkit-gradient(linear, left top, left bottom, from(#ad7500), to(#ffaa00), color-stop(0.06, #ffb200), color-stop(0.5, #ffc700));
  38. }
  39. .mblRadioButtonChecked.mblRadioButtonSelected::after, .mblRadioButton:checked.mblRadioButtonSelected::after {
  40. border-color: white;
  41. }