header-tabs.scss
1 year ago
header.scss
1 year ago
post-type-list.scss
1 week ago
radio-switch.scss
1 year ago
spinner.scss
1 year ago
switch.scss
1 year ago
tab-card.scss
1 year ago
switch.scss
40 lines
| 1 | .#{$namespace}-ui-switch { |
| 2 | @apply inline-flex relative items-center cursor-pointer; |
| 3 | |
| 4 | &-list { |
| 5 | @apply space-y-4; |
| 6 | } |
| 7 | |
| 8 | input { |
| 9 | @apply sr-only; |
| 10 | |
| 11 | &:checked ~ div { |
| 12 | @apply bg-primary after:left-auto after:right-[2px] after:border-white; |
| 13 | } |
| 14 | |
| 15 | &:disabled ~ div { |
| 16 | @apply after:bg-gray-100 after:border-gray-200; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | div { |
| 21 | @apply relative w-11 h-6 bg-gray-200 rounded-full border; |
| 22 | |
| 23 | &::after { |
| 24 | @apply content-[""] absolute top-0.5 left-[2px] bg-white border-gray-300 border rounded-full h-5 w-5 transition-all; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | span { |
| 29 | @apply ml-4; |
| 30 | } |
| 31 | |
| 32 | span.muted { |
| 33 | @apply block text-gray-400 ml-0; |
| 34 | } |
| 35 | |
| 36 | em.muted { |
| 37 | @apply text-gray-400; |
| 38 | } |
| 39 | } |
| 40 |