feat(ui): add button number
This commit is contained in:
parent
b6cc6a232e
commit
8581ccc8ac
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue