Skip to content

Commit 8579fb6

Browse files
authored
Remove hover striping from all but .dataframe tables (#2059)
Fixes #1894.
1 parent 25e01e2 commit 8579fb6

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/pydata_sphinx_theme/assets/styles/abstracts/_mixins.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@
5050
&:nth-child(even) {
5151
background-color: var(--pst-color-table-row-zebra-high-bg);
5252
}
53-
54-
&:hover {
55-
background-color: var(--pst-color-table-row-hover-bg);
56-
}
5753
}
5854
}
5955
}

src/pydata_sphinx_theme/assets/styles/extensions/_notebooks.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ html .jp-RenderedHTMLCommon {
2929
// pandas
3030
table.dataframe {
3131
@include table-colors;
32+
33+
tbody {
34+
tr:hover {
35+
background-color: var(--pst-color-table-row-hover-bg);
36+
}
37+
}
3238
}
3339
}
3440

@@ -97,6 +103,12 @@ div.cell_output .output {
97103
// pandas
98104
table.dataframe {
99105
@include table-colors;
106+
107+
tbody {
108+
tr:hover {
109+
background-color: var(--pst-color-table-row-hover-bg);
110+
}
111+
}
100112
}
101113

102114
html[data-theme="dark"] & {

0 commit comments

Comments
 (0)