admin.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. .material-switch {
  2. input[type='checkbox'] {
  3. display: none;
  4. &:checked + label::before {
  5. background: inherit;
  6. opacity: 0.5;
  7. }
  8. &:checked + label::after {
  9. background: inherit;
  10. left: 20px;
  11. }
  12. &:disabled + label {
  13. opacity: 0.5;
  14. cursor: not-allowed;
  15. }
  16. }
  17. label {
  18. cursor: pointer;
  19. height: 0;
  20. position: relative;
  21. width: 40px;
  22. background-color: var(--bg-accent-01);
  23. &::before {
  24. background: rgb(0 0 0);
  25. box-shadow: inset 0 0 10px rgb(0 0 0 / 50%);
  26. border-radius: var(--border-radius-medium);
  27. content: '';
  28. height: 16px;
  29. margin-top: calc(var(--spacing-01) * -1);
  30. position: absolute;
  31. opacity: 0.3;
  32. transition: all 0.2s ease-in-out;
  33. width: 40px;
  34. }
  35. &::after {
  36. background: rgb(255 255 255);
  37. border-radius: var(--border-radius-large);
  38. box-shadow: 0 0 5px rgb(0 0 0 / 30%);
  39. content: '';
  40. height: 24px;
  41. left: -4px;
  42. margin-top: calc(var(--spacing-01) * -1);
  43. position: absolute;
  44. top: -4px;
  45. transition: all 0.2s ease-in-out;
  46. width: 24px;
  47. }
  48. }
  49. }
  50. .hr-sect {
  51. display: flex;
  52. flex-basis: 100%;
  53. align-items: center;
  54. color: rgb(0 0 0 / 35%);
  55. margin: var(--spacing-04) 0;
  56. }
  57. .hr-sect::before,
  58. .hr-sect::after {
  59. content: '';
  60. flex-grow: 1;
  61. background: rgb(0 0 0 / 35%);
  62. height: 1px;
  63. font-size: 0;
  64. line-height: 0;
  65. margin: 0 var(--spacing-04);
  66. }