Intalled pagy and applyed to admin/users index

This commit is contained in:
2024-09-16 18:16:42 +02:00
parent 11d944b64c
commit e6cbeb9596
10 changed files with 283 additions and 27 deletions

View File

@@ -1,7 +1,10 @@
@import "pagy.tailwind.css";
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
.btn {
@apply px-4 py-2 font-semibold text-white transition-colors duration-100 bg-opacity-100 shadow bg-hsrm-gray-light hover:bg-opacity-75 ;

View File

@@ -0,0 +1,21 @@
.pagy {
@apply flex pt-2 space-x-1 font-semibold text-gray-500;
a:not(.gap) {
@apply block px-3 py-1 bg-gray-200 shadow-lg;
&:hover {
@apply bg-gray-300;
}
&:not([href]) { /* disabled links */
@apply text-gray-300 bg-gray-100 cursor-default;
}
&.current {
@apply text-white bg-hsrm-red;
}
}
label {
@apply inline-block whitespace-nowrap bg-gray-200 px-3 py-0.5;
input {
@apply bg-gray-100 border-none rounded-md;
}
}
}