code-2 table-0 dark-scheme
·
1 min read
·
edit
notes
- Table style is aligned with dark scheme using guidance from AI assistant 1, which is based on previous note 25a01 .
table-0.css
Location /static/css/
new version
/* table-0.css */
.table-0 {
margin-top: 1.4em;
}
.table-0 table {
border-collapse: collapse;
border-spacing: 0;
color: var(--fg);
background-color: var(--bg);
}
.table-0 th {
padding: 0.4em 0.6em;
text-align: left;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
background-color: var(--hover-bg);
}
.table-0 td {
padding: 0.3em 0.6em;
border-bottom: 1px solid var(--muted-border);
}
.table-0 tr:last-child td {
border-bottom: 1px solid var(--border);
}
/* Zebra striping */
.table-0 tr:nth-child(odd) {
background-color: var(--box-bg);
}
.table-0 tr:nth-child(even) {
background-color: var(--hover-bg);
}
old version
/* table-0.css */
.table-0 {
margin-top: 1.4em;
table {
border-collapse: collapse;
border-spacing: 0z
}
table th {
padding: 0.1em 0.2em;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
background-color: #f2f2f2;
}
table td {
padding: 0 1em;
}
table tr:last-child td {
border-bottom: 1px solid #000;
}
table tr:nth-child(odd) {
/* White for even rows */
background-color: #ffffff;
}
table tr:nth-child(even) {
/* Light gray for odd rows */
background-color: #f2f2f2;
}
}
refs
GPT-5.2, “Align table style”, ChatGPT, 1 Jan 2026, url https://chatgpt.com/share/69564ded-a940-800a-91b6-fed91e084217 [20260101]. ↩︎