Skip to content

Commit 64cd5a4

Browse files
flying-sheepmgeier
authored andcommitted
Support .jp-RenderedHTMLCommon CSS class
1 parent be3e63e commit 64cd5a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/nbsphinx.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@
656656
}
657657
658658
/* Some additional styling taken form the Jupyter notebook CSS */
659+
.jp-RenderedHTMLCommon table,
659660
div.rendered_html table {
660661
border: none;
661662
border-collapse: collapse;
@@ -664,10 +665,14 @@
664665
font-size: 12px;
665666
table-layout: fixed;
666667
}
668+
.jp-RenderedHTMLCommon thead,
667669
div.rendered_html thead {
668670
border-bottom: 1px solid black;
669671
vertical-align: bottom;
670672
}
673+
.jp-RenderedHTMLCommon tr,
674+
.jp-RenderedHTMLCommon th,
675+
.jp-RenderedHTMLCommon td,
671676
div.rendered_html tr,
672677
div.rendered_html th,
673678
div.rendered_html td {
@@ -679,12 +684,15 @@
679684
max-width: none;
680685
border: none;
681686
}
687+
.jp-RenderedHTMLCommon th,
682688
div.rendered_html th {
683689
font-weight: bold;
684690
}
691+
.jp-RenderedHTMLCommon tbody tr:nth-child(odd),
685692
div.rendered_html tbody tr:nth-child(odd) {
686693
background: #f5f5f5;
687694
}
695+
.jp-RenderedHTMLCommon tbody tr:hover,
688696
div.rendered_html tbody tr:hover {
689697
background: rgba(66, 165, 245, 0.2);
690698
}

0 commit comments

Comments
 (0)