Skip to content

Commit a8aa2e1

Browse files
DOC: Fix table styling in main docs (#16145)
When switching to nbsphinx, I modified the site's CSS so that the converted notebook looks decent. This had some unfortunate changes on tables elsewhere in the notebook. This change fixes the headers to be left-aligned in the main site, and right-aligned for the tables generated by `df.style` in the nbsphinx-converted notebook. xref #15581
1 parent 1a93759 commit a8aa2e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/source/themes/nature_with_gtoc/static/nature.css_t

+3-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ thead {
315315
vertical-align: bottom;
316316
}
317317
tr, th, td {
318-
text-align: right;
319318
vertical-align: middle;
320319
padding: 0.5em 0.5em;
321320
line-height: normal;
@@ -326,6 +325,9 @@ tr, th, td {
326325
th {
327326
font-weight: bold;
328327
}
328+
th.col_heading {
329+
text-align: right;
330+
}
329331
tbody tr:nth-child(odd) {
330332
background: #f5f5f5;
331333
}

0 commit comments

Comments
 (0)