Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. .checkbox-container {
  2. font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  3. text-align: center;
  4. }
  5. .checkbox-container input[type="checkbox"] {
  6. display: none;
  7. }
  8. .checkbox-container label {
  9. cursor: pointer;
  10. }
  11.  
  12. .checkbox {
  13. transform: scale(2);
  14. vertical-align: middle;
  15. margin: 0;
  16. }
  17.  
  18. .checkbox-container .checkbox {
  19. display: inline-block;
  20. width: 15px;
  21. height: 15px;
  22. background: #d0d0d0;
  23. }
  24. .checkbox-container .checkbox:after {
  25. content: "";
  26. position: absolute;
  27. width: 0px;
  28. height: 3px;
  29. left: 1px;
  30. background: #3498db;
  31. -webkit-transform: translate(4px, 11px) rotate(-45deg);
  32. transform: translate(4px, 11px) rotate(-45deg);
  33. -webkit-transform-origin: left;
  34. transform-origin: left;
  35. transition: all 150ms;
  36. transition-delay: 0ms;
  37. }
  38. .checkbox-container .checkbox:before {
  39. content: "";
  40. position: absolute;
  41. width: 0px;
  42. height: 3px;
  43. left: 1px;
  44. background: #3498db;
  45. -webkit-transform: translate(1px, 6px) rotate(45deg);
  46. transform: translate(1px, 6px) rotate(45deg);
  47. -webkit-transform-origin: left;
  48. transform-origin: left;
  49. transition: all 150ms;
  50. transition-delay: 150ms;
  51. }
  52.  
  53. .checkbox-container input[type="checkbox"]:checked ~ .checkbox:before {
  54. width: 7px;
  55. transition-delay: 0ms;
  56. }
  57. .checkbox-container input[type="checkbox"]:checked ~ .checkbox:after {
  58. width: 13px;
  59. transition-delay: 150ms;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement