|
| 1 | +@layer components { |
| 2 | + .el-button { |
| 3 | + @apply shrink-0 relative align-middle inline-flex items-center outline-offset-2 transition-colors cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-2 active:outline-2; |
| 4 | + |
| 5 | + & input { |
| 6 | + @apply pointer-events-none absolute left-0 top-0 size-full appearance-none opacity-0; |
| 7 | + } |
| 8 | + |
| 9 | + .el-button-icon { |
| 10 | + @apply relative shrink-0 leading-none; |
| 11 | + } |
| 12 | + |
| 13 | + &[data-size="2xs"] .el-button-icon { |
| 14 | + @apply size-4 p-px text-sm; |
| 15 | + } |
| 16 | + |
| 17 | + &[data-size="xs"] .el-button-icon { |
| 18 | + @apply size-4 text-base; |
| 19 | + } |
| 20 | + |
| 21 | + &[data-size="sm"] .el-button-icon, |
| 22 | + &[data-size="base"] .el-button-icon, |
| 23 | + &[data-size="md"] .el-button-icon { |
| 24 | + @apply size-5 p-0.5 text-base; |
| 25 | + } |
| 26 | + |
| 27 | + &[data-size="lg"] .el-button-icon { |
| 28 | + @apply size-6 p-0.5 text-xl; |
| 29 | + } |
| 30 | + |
| 31 | + &[data-size="xl"] .el-button-icon { |
| 32 | + @apply size-7 p-0.5; |
| 33 | + } |
| 34 | + |
| 35 | + &[data-color="black"] { |
| 36 | + @apply hover:bg-gray-700 hover:text-white dark:hover:bg-zinc-300 dark:hover:text-black has-checked:bg-black has-checked:text-white; |
| 37 | + } |
| 38 | + &[data-color="white"] { |
| 39 | + @apply hover:bg-gray-100 hover:text-black dark:hover:bg-zinc-900 dark:hover:text-white has-checked:bg-white has-checked:text-black; |
| 40 | + } |
| 41 | + &[data-color="gray"] { |
| 42 | + @apply hover:bg-gray-200 hover:text-gray-900; |
| 43 | + } |
| 44 | + &[data-color="sky"] { |
| 45 | + @apply hover:bg-sky-600 hover:text-white has-checked:bg-sky-500 has-checked:text-white; |
| 46 | + } |
| 47 | + &[data-color="sky-light"] { |
| 48 | + @apply hover:bg-sky-400/40 hover:text-sky-800; |
| 49 | + } |
| 50 | + &[data-color="emerald"] { |
| 51 | + @apply hover:bg-emerald-600 hover:text-white has-checked:bg-emerald-500 has-checked:text-white; |
| 52 | + } |
| 53 | + &[data-color="emerald-light"] { |
| 54 | + @apply hover:bg-emerald-400/40 hover:text-emerald-800; |
| 55 | + } |
| 56 | + &[data-color="rose"] { |
| 57 | + @apply hover:bg-rose-600 hover:text-white has-checked:bg-rose-500 has-checked:text-white; |
| 58 | + } |
| 59 | + &[data-color="rose-light"] { |
| 60 | + @apply hover:bg-rose-400/40 hover:text-rose-800; |
| 61 | + } |
| 62 | + &[data-color="purple"] { |
| 63 | + @apply hover:bg-purple-600 hover:text-white has-checked:bg-purple-500 has-checked:text-white; |
| 64 | + } |
| 65 | + &[data-color="purple-light"] { |
| 66 | + @apply hover:bg-purple-400/40 hover:text-purple-800; |
| 67 | + } |
| 68 | + &[data-color="amber"] { |
| 69 | + @apply hover:bg-amber-600 hover:text-white has-checked:bg-amber-500 has-checked:text-white; |
| 70 | + } |
| 71 | + &[data-color="amber-light"] { |
| 72 | + @apply hover:bg-amber-400/40 hover:text-amber-800; |
| 73 | + } |
| 74 | + |
| 75 | + &[data-color-checked="black"] { |
| 76 | + @apply has-checked:bg-black has-checked:text-white; |
| 77 | + } |
| 78 | + &[data-color-checked="white"] { |
| 79 | + @apply has-checked:bg-white has-checked:text-black; |
| 80 | + } |
| 81 | + &[data-color-checked="sky"] { |
| 82 | + @apply has-checked:bg-sky-500 has-checked:text-white; |
| 83 | + } |
| 84 | + &[data-color-checked="rose"] { |
| 85 | + @apply has-checked:bg-rose-500 has-checked:text-white; |
| 86 | + } |
| 87 | + &[data-color-checked="amber"] { |
| 88 | + @apply has-checked:bg-amber-500 has-checked:text-white; |
| 89 | + } |
| 90 | + &[data-color-checked="emerald"] { |
| 91 | + @apply has-checked:bg-emerald-500 has-checked:text-white; |
| 92 | + } |
| 93 | + } |
| 94 | +} |
0 commit comments