Adds parent table class. Adds button-span fix.

This commit is contained in:
Zachary Baird
2023-04-19 15:01:51 -04:00
parent fe738da633
commit 970c906c97

View File

@@ -468,39 +468,63 @@ a,
} }
// TABLE // TABLE
.table-container { .table {
.table-container {
display: grid; display: grid;
grid-template-rows: repeat(auto-fill, auto); grid-template-rows: repeat(auto-fill, auto);
width: 100%; width: 100%;
border-radius: var(--radius-md); border-radius: var(--radius-md);
overflow: hidden; overflow: hidden;
} }
.table-row {
.table-row {
display: grid; display: grid;
grid-template-columns: 1fr 4fr 1.5fr; grid-template-columns: 1fr 4fr 1.5fr;
} }
.table-head {
.table-head {
.table-cell { .table-cell {
background-color: var(--color-accent-contrast); background-color: var(--color-accent-contrast);
} }
} }
.table-cell {
.table-cell {
padding: 1rem; padding: 1rem;
height: 100%; height: 100%;
align-items: center; align-items: center;
vertical-align: center; vertical-align: center;
display: flex; display: flex;
} }
.table-text {
.table-text {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
display: flex; display: flex;
span { span {
display: inline-block; display: inline-block;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
} }
}
button {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
span {
display: inherit;
align-items: center;
justify-content: center;
}
}
}
.table-row:nth-child(even) .table-cell {
background-color: var(--color-bg);
} }
// CUSTOM COMPONENTS // CUSTOM COMPONENTS