tethys.backend/resources/css/_table.css

51 lines
1.0 KiB
CSS
Raw Permalink Normal View History

2023-03-03 15:54:28 +00:00
table {
@apply w-full;
}
thead {
2023-03-03 15:54:28 +00:00
@apply hidden lg:table-header-group;
}
tr {
2023-03-03 15:54:28 +00:00
@apply max-w-full block relative border-b-4 border-gray-100
lg:table-row lg:border-b-0 dark:border-slate-800;
}
tr:last-child {
2023-03-03 15:54:28 +00:00
@apply border-b-0;
}
td:not(:first-child) {
@apply lg:border-0 lg:border-t-0 lg:border-r-0 lg:border-b-0 lg:border-gray-100 lg:dark:border-slate-700;
}
th {
2023-03-03 15:54:28 +00:00
@apply lg:text-left lg:p-3;
}
td {
2023-03-03 15:54:28 +00:00
@apply flex justify-between text-right py-3 px-4 align-top border-b border-gray-100
lg:table-cell lg:text-left lg:p-3 lg:align-middle lg:border-b-0 dark:border-slate-800;
}
td:last-child {
2023-03-03 15:54:28 +00:00
@apply border-b-0;
}
/* tbody tr, tbody tr:nth-child(odd) {
2023-03-03 15:54:28 +00:00
@apply lg:hover:bg-gray-100 lg:dark:hover:bg-slate-700/70;
} */
.pure-table tbody tr:nth-child(odd) {
2023-03-03 15:54:28 +00:00
@apply lg:bg-gray-50 lg:dark:bg-slate-800;
}
.pure-table tbody tr:nth-child(even) {
@apply lg:bg-gray-50 lg:dark:bg-slate-600 lg:bg-opacity-25;
}
td:before {
2023-03-03 15:54:28 +00:00
content: attr(data-label);
@apply font-semibold pr-3 text-left lg:hidden;
}