Add darkmode table

This commit is contained in:
2024-09-19 09:42:59 +02:00
parent f2b02f0db5
commit 3c9e56838f

View File

@@ -98,6 +98,33 @@
left: 0;
}
body.dark-mode table {
width: 100%;
border-collapse: collapse;
background-color: #333;
color: white;
}
body.dark-mode table th,
body.dark-mode table td {
border: 1px solid #555;
padding: 8px;
text-align: left;
}
body.dark-mode table th {
background-color: #444;
}
body.dark-mode table tr:nth-child(even) {
background-color: #3a3a3a;
}
body.dark-mode table tr:hover {
background-color: #555;
}
@media (max-width: 768px) {
.toc {
width: 100%;