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.

68 lines
1.4 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. .form-horizontal .radio-container, .form-horizontal .checkbox-container {
  16. margin-top: 7px;
  17. margin-left: 0;
  18. }
  19. /* Hide the browser's default radio button */
  20. .radio-container input {
  21. position: absolute;
  22. opacity: 0;
  23. }
  24. /* Create a custom radio button */
  25. .radiomark {
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. height: 20px;
  30. width: 20px;
  31. border-radius: 50%;
  32. border: 1px solid #DDD;
  33. }
  34. /* On mouse-over, tint the border */
  35. .radiomark:hover {
  36. border-color: #5db4ea;
  37. }
  38. /* When the radio button is checked, add a colored background */
  39. .radio-container input:checked ~ .radiomark {
  40. border-color: #0091EA;
  41. background-color: #0091EA;
  42. }
  43. /* Create the indicator (the dot/circle - hidden when not checked) */
  44. .radiomark:after {
  45. content: "";
  46. position: absolute;
  47. display: none;
  48. }
  49. /* Show the indicator (dot/circle) when checked */
  50. .radio-container input:checked ~ .radiomark:after {
  51. display: block;
  52. }
  53. /* Style the indicator (dot/circle) */
  54. .radio-container .radiomark:after {
  55. top: 6px;
  56. left: 6px;
  57. width: 6px;
  58. height: 6px;
  59. border-radius: 50%;
  60. background: white;
  61. }