tmpl(users): add table zebra striping [skip ci]

This commit is contained in:
surtur 2023-08-08 12:05:14 +02:00
parent 180229d0c8
commit 08b49f5731
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI
2 changed files with 7 additions and 1 deletions

@ -1,3 +1,9 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer utilities {
.striped tr:nth-child(even) {
@apply bg-gray-100 dark:bg-gray-800
}
}

@ -17,7 +17,7 @@
</a>
</div>
<div class="p-2 mt-3 border-2 dark:border-slate-500 rounded-sm overflow-x-auto">
<table class="text-center text-gray-500 dark:text-gray-300 w-full">
<table class="text-center text-gray-500 dark:text-gray-300 w-full striped">
<thead>
<tr>
<th scope="col" class="md:p-2 sm:p-0 text-slate-600 dark:text-slate-400">Username</th>