feat(ui): add button number

This commit is contained in:
Guanran Wang 2024-11-17 15:50:31 +08:00
parent b6cc6a232e
commit 8581ccc8ac
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -4,6 +4,12 @@
@layer components { @layer components {
.chicken-button { .chicken-button {
@apply py-3 px-4 inline-flex items-center gap-x-2 -ms-px first:rounded-s-lg first:ms-0 last:rounded-e-lg text-sm font-medium focus:z-10 border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 focus:outline-none disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-800; @apply relative py-3 px-4 inline-flex items-center gap-x-2 -ms-px first:rounded-s-lg first:ms-0 last:rounded-e-lg text-sm font-medium focus:z-10 border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 focus:outline-none disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-800;
counter-increment: index;
}
.chicken-button:before {
@apply absolute top-1 left-1 text-xs text-neutral-500;
content: counter(index);
} }
} }