diff options
Diffstat (limited to 'src/css/_partial/_post')
-rw-r--r-- | src/css/_partial/_post/_toc.scss | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/css/_partial/_post/_toc.scss b/src/css/_partial/_post/_toc.scss index b5958c0..8327055 100644 --- a/src/css/_partial/_post/_toc.scss +++ b/src/css/_partial/_post/_toc.scss @@ -20,6 +20,10 @@ .post-toc-content { font-size: $post-toc-content; + &.always-active ul { + display: block; + } + >nav>ul { margin: 10px 0; } @@ -27,9 +31,14 @@ ul { padding-left: 20px; list-style: $post-toc-list-style; - + ul { padding-left: 15px; + display: none; + } + + .has-active > ul { + display: block; } } |