RadioButton.css 1.3 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. 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: 0.5em;
  16. -webkit-transform: translatey(0.45em);
  17. }
  18. .mblRadioButtonChecked, .mblRadioButton:checked {
  19. border-color: #769dc0;
  20. background-color: #007ef5;
  21. }
  22. .mblRadioButtonChecked::after, .mblRadioButton:checked::after {
  23. position: absolute;
  24. content: "";
  25. width: 0.3em;
  26. height: 0.6em;
  27. top: 0;
  28. left: 0.25em;
  29. border-color: #000000;
  30. border-width: 0.15em;
  31. border-style: none solid solid none;
  32. -webkit-transform: rotate(45deg);
  33. -webkit-transform-origin: 50% 50%;
  34. }
  35. .mblRadioButtonChecked.mblRadioButtonSelected, .mblRadioButton:checked.mblRadioButtonSelected {
  36. border-color: #769dc0;
  37. background-color: #0064c2;
  38. }
  39. .mblRadioButtonChecked.mblRadioButtonSelected::after, .mblRadioButton:checked.mblRadioButtonSelected::after {
  40. border-color: #000000;
  41. }