diff --git a/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css b/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css index 618291ec..8c35bb7b 100644 --- a/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css +++ b/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css @@ -290,6 +290,10 @@ tr:nth-child(even) { background-color: var(--pst-color-table-hover); } +div.rendered_html table.dataframe td { + color: var(--pst-color-text-base); +} + /* ############### Table-centered @@ -1018,6 +1022,12 @@ div.admonition { background-color: var(--pst-color-on-surface); } +/* Select only divisions that contain a dataframe, with enough specificity to override pydata css */ +div.nboutput + div.output_area.rendered_html.docutils.container:has(table.dataframe) { + background-color: transparent; +} + /* ############ Border lines