Skip to content

Commit

Permalink
🐞 fix: 文章目录激活时显示全部
Browse files Browse the repository at this point in the history
  • Loading branch information
白云苍狗 committed Dec 9, 2022
1 parent 3eba76d commit f41967e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions package/hexo-theme-async/source/css/_components/toc.less
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
list-style: none;

.toc-item {
overflow: hidden;

.toc-child {
overflow : hidden;
transition: max-height .3s ease-in;
Expand All @@ -56,8 +58,10 @@

&.active {
>.toc-link {
color : var(--primary, #afb42b);
border-bottom: 1px solid var(--primary, #afb42b);
color : var(--primary, #afb42b);
white-space : pre-wrap;
text-decoration: var(--primary, #afb42b) underline;
//border-bottom : 1px solid var(--primary, #afb42b);
}

>.toc-child {
Expand All @@ -68,6 +72,7 @@
}

.toc-link {
display : block;
line-height : 1.8;
font-weight : bold;
overflow : hidden;
Expand Down

0 comments on commit f41967e

Please sign in to comment.