浏览代码

Fix hovering

Martha Cryan 4 年之前
父节点
当前提交
159f46fa35
共有 1 个文件被更改,包括 9 次插入4 次删除
  1. 9 4
      packages/toc/style/index.css

+ 9 - 4
packages/toc/style/index.css

@@ -29,10 +29,6 @@
   padding-bottom: 8px;
 }
 
-.jp-TableOfContents-content li:hover .toc-Collapser-child {
-  background: var(--jp-layout-color2);
-}
-
 .jp-TableOfContents {
   display: flex;
   flex-direction: column;
@@ -176,6 +172,10 @@
   bottom: 0px;
 }
 
+.toc-entry-holder:hover .toc-Collapser-child {
+  background: var(--jp-layout-color2);
+}
+
 .toc-active-cell .toc-Collapser-child {
   background: var(--jp-brand-color1);
 }
@@ -185,6 +185,11 @@
   opacity: 1;
 }
 
+.toc-active-cell:hover .toc-Collapser-child {
+  background: var(--jp-brand-color0);
+  opacity: 1;
+}
+
 .toc-Collapser-child {
   background: transparent;
 }