Browse Source

Update CSS for new sphinx-tabs version

(cherry picked from commit 5ba4701dc51574faf0ea095a40eacc8cd27c0f3e)
Max Hilbrunner 4 years ago
parent
commit
40133c81a3
1 changed files with 11 additions and 3 deletions
  1. 11 3
      _static/css/custom.css

+ 11 - 3
_static/css/custom.css

@@ -246,9 +246,17 @@ a {
     color: var(--link-color);
 }
 
-.sphinx-tabs .sphinx-menu a.item {
-    /* Original definition has `!important` */
-    color: var(--link-color) !important;
+.sphinx-tabs-tab {
+    color: var(--link-color);
+}
+
+.sphinx-tabs-tab[aria-selected="true"] {
+    background-color: var(--code-background-color);
+    border-bottom: 1px solid var(--code-background-color);
+}
+
+.sphinx-tabs-panel {
+    background-color: var(--code-background-color);
 }
 
 a:hover {