Skip to content

Commit

Permalink
#281 - Fix dataframe rendering in dark mode (#282)
Browse files Browse the repository at this point in the history
Co-authored-by: Roberto Pastor Muela <[email protected]>
  • Loading branch information
Andy-Grigg and RobPasMue authored Aug 28, 2023
1 parent b7c8256 commit 4dd8a9a
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4dd8a9a

Please sign in to comment.