Skip to content

Commit

Permalink
Remove hover striping from all but .dataframe tables
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou committed Nov 28, 2024
1 parent 25e01e2 commit d8e2895
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/pydata_sphinx_theme/assets/styles/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
&:nth-child(even) {
background-color: var(--pst-color-table-row-zebra-high-bg);
}

&:hover {
background-color: var(--pst-color-table-row-hover-bg);
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ html .jp-RenderedHTMLCommon {
// pandas
table.dataframe {
@include table-colors;

&:hover {
background-color: var(--pst-color-table-row-hover-bg);
}
}
}

Expand Down Expand Up @@ -97,6 +101,10 @@ div.cell_output .output {
// pandas
table.dataframe {
@include table-colors;

&:hover {
background-color: var(--pst-color-table-row-hover-bg);
}
}

html[data-theme="dark"] & {
Expand Down

0 comments on commit d8e2895

Please sign in to comment.