added table support to default stylesheet

This commit is contained in:
Daniel Fichtinger 2025-07-05 15:45:44 -04:00
parent da4e2620e9
commit fc8897b71b

View file

@ -133,7 +133,7 @@ pre {
}
pre {
background-color: #1d1d1d;
background-color: #151515;
color: #d5d5d5;
padding: 1em;
border-radius: 5px;
@ -241,7 +241,48 @@ small a {
#footer {
color: var(--main-small-text-color);
}
table {
border-collapse: collapse;
margin: 1.5rem auto;
width: 100%;
max-width: 100%;
font-size: 0.85rem;
text-align: left; /* Use center if you prefer */
}
th, td {
border: 1px solid var(--main-transparent);
/*border: 1px solid var(--main-bullet-color);*/
padding: 0.4rem 0.8rem;
vertical-align: middle;
}
thead th {
font-weight: bold;
background-color: rgba(255, 255, 255, 0.05);
color: var(--main-text-color);
}
tbody tr:nth-child(even) {
background-color: rgba(255, 255, 255, 0.02);
}
tbody tr:hover {
background-color: rgba(255, 255, 255, 0.05);
}
table code {
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 0.85em;
background: #1d1d1d;
padding: 0.1em 0.25em;
border-radius: 3px;
}
caption {
margin-top: 0.5rem;
font-size: 0.8rem;
color: var(--main-small-text-color);
}