Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. .checkboxContainer {
  2. display: block;
  3. position: relative;
  4. padding-left: 35px;
  5. margin-bottom: 12px;
  6. cursor: pointer;
  7. font-size: 22px;
  8. -webkit-user-select: none;
  9. -moz-user-select: none;
  10. -ms-user-select: none;
  11. user-select: none;
  12. }
  13.  
  14. .checkboxContainer input {
  15. position: absolute;
  16. opacity: 0;
  17. cursor: pointer;
  18. height: 0;
  19. width: 0;
  20. }
  21.  
  22. .checkmark {
  23. position: absolute;
  24. top: 0;
  25. left: 0;
  26. height: 25px;
  27. width: 25px;
  28. background-color: #eee;
  29. }
  30.  
  31. .checkboxContainer input:checked ~ .checkmark {
  32. background-color: #bc0e0d;
  33. }
  34.  
  35. .checkmark::after {
  36. content: "";
  37. position: absolute;
  38. display: none;
  39. }
  40.  
  41. .checkboxContainer input:checked ~ .checkmark::after {
  42. display: block;
  43. }
  44.  
  45. .checkboxContainer .checkmark:after {
  46. left: 9px;
  47. top: 5px;
  48. width: 5px;
  49. height: 10px;
  50. border: solid white;
  51. border-width: 0 3px 3px 0;
  52. -webkit-transform: rotate(45deg);
  53. -ms-transform: rotate(45deg);
  54. transform: rotate(45deg);
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement