Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. .toggle-1 {
  2. font-family: Helvetica, Arial, sans-serif;
  3. display: inline-block;
  4. vertical-align: top;
  5. margin: 0 15px 0 0;
  6. }
  7.  
  8. .toggle-1__input {
  9. display: none;
  10. }
  11.  
  12. .toggle-1__button {
  13. position: relative;
  14. display: inline-block;
  15. font-size: 1rem;
  16. line-height: 20px;
  17. text-transform: uppercase;
  18. background-color: #f2395a;
  19. border: solid 1px #f2395a;
  20. color: white;
  21. width: 80px;
  22. height: 30px;
  23. transition: all 0.3s ease;
  24. cursor: pointer;
  25. }
  26.  
  27. .toggle-1__button::before {
  28. position: absolute;
  29. top: 5px;
  30. left: 38px;
  31. content: "off";
  32. display: inline-block;
  33. height: 20px;
  34. padding: 0 3px;
  35. background: white;
  36. color: #f2395a;
  37. transition: all 0.3s ease;
  38. }
  39.  
  40. .toggle-1__input:checked + .toggle-1__button {
  41. background: #00b3b4;
  42. border: solid 1px #00b3b4;
  43. }
  44.  
  45. .toggle-1__input:checked + .toggle-1__button::before {
  46. left: 5px;
  47. content: "on";
  48. color: #00b3b4;
  49. }
  50.  
  51.  
  52. .toggle-2 {
  53. font-family: Helvetica, Arial, sans-serif;
  54. font-size: 0.8rem;
  55. display: inline-block;
  56. vertical-align: top;
  57. margin: 0 15px 0 0;
  58. }
  59.  
  60. .toggle-2__input {
  61. display: none;
  62. }
  63.  
  64. .toggle-2__button {
  65. position: relative;
  66. display: inline-block;
  67. line-height: 20px;
  68. text-transform: uppercase;
  69. background: white;
  70. color: #aaa;
  71. border: solid 1px #ccc;
  72. padding: 5px 10px 5px 30px;
  73. transition: all 0.3s ease;
  74. cursor: pointer;
  75. }
  76.  
  77. .toggle-2__button::before {
  78. position: absolute;
  79. top: 10px;
  80. left: 10px;
  81. display: inline-block;
  82. width: 10px;
  83. height: 10px;
  84. background: #ccc;
  85. content: "";
  86. transition: all 0.3s ease;
  87. border-radius: 100%;
  88. }
  89.  
  90. .toggle-2__input:checked + .toggle-2__button {
  91. background: #00b3b4;
  92. border-color: #00b3b4;
  93. color: white;
  94. }
  95.  
  96. .toggle-2__input:checked + .toggle-2__button::before {
  97. background-color: white;
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement