From ed62bff18d643f66ce3308f629baa6de6f9cc59f Mon Sep 17 00:00:00 2001 From: Xavier Raynaud Date: Fri, 19 Jan 2024 14:58:56 +0100 Subject: [PATCH] changed in custom.css to support dark mode --- sphinx/_static/css/custom.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sphinx/_static/css/custom.css b/sphinx/_static/css/custom.css index 401356f..a4e8548 100644 --- a/sphinx/_static/css/custom.css +++ b/sphinx/_static/css/custom.css @@ -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; +}