Style table fonts: monospace cells, sans-serif headers
Table cell data (td) now uses a fixed-width stack (Consolas, SF Mono, Menlo, ...) at 0.92em so columns — especially numbers — align and scan cleanly; headers (th) use Arial/sans for clear contrast against the mono data. Applies to markdown and html_fragment tables via the shared base.css. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
54f8e8ea3b
commit
ebc9156a15
1 changed files with 11 additions and 0 deletions
|
|
@ -36,6 +36,17 @@ td {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Cell data in a fixed-width font so columns (esp. numbers) align and scan
|
||||||
|
cleanly; headers in a plain sans for contrast against the mono data. */
|
||||||
|
td {
|
||||||
|
font-family: Consolas, "SF Mono", Menlo, Monaco, "Liberation Mono", monospace;
|
||||||
|
font-size: 0.92em;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
thead th {
|
thead th {
|
||||||
background: rgba(0, 0, 0, 0.05);
|
background: rgba(0, 0, 0, 0.05);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue