44 lines
1003 B
CSS
44 lines
1003 B
CSS
/*
|
|
* A table wider than its column scrolls inside this box, at every width: let overflow, it would
|
|
* run past the right edge of the page content - out of line with the buttons above it - and make
|
|
* the whole page scroll sideways. The row menus (components/dropdown.html.twig) are fixed to the
|
|
* viewport while open, so this box does not clip them.
|
|
*/
|
|
.data-table-wrapper {
|
|
@apply overflow-x-auto mb-8;
|
|
}
|
|
|
|
.data-table-wrapper__inner {
|
|
@apply align-middle inline-block min-w-full;
|
|
}
|
|
|
|
table {
|
|
@apply min-w-full;
|
|
}
|
|
|
|
tbody {
|
|
@apply bg-white;
|
|
}
|
|
|
|
/* rows and head as the table head of the apps portal (EP/apps frontend/components/ui.ts) */
|
|
tr {
|
|
@apply border-b border-line;
|
|
}
|
|
|
|
th {
|
|
@apply px-4 py-2 bg-white border-b-2 border-brand text-left text-[11px] leading-4 font-semibold uppercase tracking-wide text-brand align-top;
|
|
}
|
|
|
|
td {
|
|
@apply px-4 py-2 leading-5 align-top;
|
|
|
|
}
|
|
|
|
table.horizontal td {
|
|
@apply py-4;
|
|
}
|
|
|
|
.data-table tbody tr {
|
|
@apply hover:bg-brand-light/50;
|
|
}
|