Add CSS styling for tables

This commit is contained in:
Baptiste Jonglez 2023-12-03 07:50:39 +01:00
parent dc022d0661
commit fc1e8b9118

View file

@ -96,6 +96,36 @@ textarea {
color: var(--text-color); color: var(--text-color);
} }
table {
table-layout: fixed;
width: 100%;
border-collapse: collapse;
//border: 1px solid var(--gray);
}
th, td {
padding: 20px;
text-align: center;
}
thead tr {
background-color: var(--light-grey);
}
tbody tr:nth-child(odd) {
background-color: var(--lighter-gray);
}
tbody tr:nth-child(even) {
background-color: var(--white);
}
table {
background-color: var(--lighter-grey);
}
@media (max-width: 900px) { @media (max-width: 900px) {
body { body {