adrema/resources/css/table.css

43 lines
806 B
CSS
Raw Permalink Normal View History

2021-07-04 01:44:41 +02:00
.custom-table {
width: 100%;
2021-08-22 19:31:20 +02:00
& > thead > th {
@apply text-left px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b;
2021-07-04 16:56:07 +02:00
}
2021-08-22 19:31:20 +02:00
& > tr {
2021-07-04 16:56:07 +02:00
@apply text-gray-200 transition-all duration-300 rounded hover:bg-gray-800;
2021-08-22 19:31:20 +02:00
& > td {
2021-07-04 16:56:07 +02:00
@apply py-1 px-6;
}
}
&.custom-table-sm {
2021-08-22 19:31:20 +02:00
& > thead > th {
2021-07-04 16:56:07 +02:00
@apply px-3 py-2;
}
2021-08-22 19:31:20 +02:00
& > tr {
& > td {
2021-07-04 16:56:07 +02:00
@apply py-1 px-3;
}
}
}
&.custom-table-light {
2021-08-22 19:31:20 +02:00
& > thead > th {
2021-07-04 16:56:07 +02:00
@apply border-gray-500;
}
2021-08-22 19:31:20 +02:00
& > td {
2021-07-04 16:56:07 +02:00
&:hover {
@apply bg-gray-700;
}
}
}
2021-07-04 01:44:41 +02:00
}
.custom-table > * {
display: table-row;
}
.custom-table > * > * {
display: table-cell;
}