Skip to content

Commit

Permalink
changed in custom.css to support dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierr committed Jan 19, 2024
1 parent 40aa0c8 commit ed62bff
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sphinx/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@ table.element-table {
text-align: left;
}

table.element-table tr:nth-child(odd) td{
html table.element-table tr:nth-child(odd) td{
background-color: Gainsboro;
}

table.element-table tr:nth-child(even) td{
background-color: GhostWhite;
}

html[data-theme=dark] table.element-table tr:nth-child(odd) td{
background-color: black;
}

html[data-theme=dark] table.element-table tr:nth-child(even) td{
background-color: black;
}

0 comments on commit ed62bff

Please sign in to comment.