createAllowance.css 825 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #CreateAllowance h2{
  2. text-align: center;
  3. }
  4. #CreateAllowance .switch{
  5. position: relative;
  6. display: inline-block;
  7. width: 50px;
  8. height: 28px;
  9. }
  10. #CreateAllowance .switch input{
  11. opacity: 0;
  12. width: 0;
  13. height: 0;
  14. }
  15. #CreateAllowance .slider{
  16. position: absolute;
  17. cursor: pointer;
  18. top: 0;
  19. left: 0;
  20. width: 100%;
  21. height: 100%;
  22. background-color: var(--textMuted, #ccc);
  23. transition: 0.4s;
  24. border-radius: 34px;
  25. }
  26. #CreateAllowance .slider::before{
  27. position: absolute;
  28. content: "";
  29. height: 20px;
  30. width: 20px;
  31. left: 4px;
  32. top: 4px;
  33. background-color: white;
  34. transition: 0.4s;
  35. border-radius: 50%;
  36. }
  37. #CreateAllowance .switch input:checked + .slider{
  38. background-color: var(--accent, #D4AF37);
  39. }
  40. #CreateAllowance .switch input:checked + .slider::before{
  41. transform: translateX(22px);
  42. }