You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.3 KiB

  1. /* Customize the label (the container) */
  2. .radio-container {
  3. display: block;
  4. position: relative;
  5. padding-left: 30px;
  6. margin-bottom: 12px;
  7. margin-left: 20px;
  8. cursor: pointer;
  9. -webkit-user-select: none;
  10. -moz-user-select: none;
  11. -ms-user-select: none;
  12. user-select: none;
  13. font-weight: normal;
  14. }
  15. /* Hide the browser's default radio button */
  16. .radio-container input {
  17. position: absolute;
  18. opacity: 0;
  19. }
  20. /* Create a custom radio button */
  21. .radiomark {
  22. position: absolute;
  23. top: 0;
  24. left: 0;
  25. height: 20px;
  26. width: 20px;
  27. border-radius: 50%;
  28. border: 1px solid #DDD;
  29. }
  30. /* On mouse-over, tint the border */
  31. .radiomark:hover {
  32. border-color: #5db4ea;
  33. }
  34. /* When the radio button is checked, add a colored background */
  35. .radio-container input:checked ~ .radiomark {
  36. border-color: #0091EA;
  37. background-color: #0091EA;
  38. }
  39. /* Create the indicator (the dot/circle - hidden when not checked) */
  40. .radiomark:after {
  41. content: "";
  42. position: absolute;
  43. display: none;
  44. }
  45. /* Show the indicator (dot/circle) when checked */
  46. .radio-container input:checked ~ .radiomark:after {
  47. display: block;
  48. }
  49. /* Style the indicator (dot/circle) */
  50. .radio-container .radiomark:after {
  51. top: 6px;
  52. left: 6px;
  53. width: 6px;
  54. height: 6px;
  55. border-radius: 50%;
  56. background: white;
  57. }