diff options
author | Wu Cheng-Han | 2016-08-02 10:54:03 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-08-02 10:54:03 +0800 |
commit | b6aa0459976165d4388095432c0f356e5f053513 (patch) | |
tree | db662e352aed7af15415290347ab23cdb6a9de79 /public/css/extra.css | |
parent | 881e92b05ada0f95873be509e4e22487043dfe9b (diff) |
Update to add expand and collapse toggle for TOC, keep showing second level TOC if there is only one first level TOC
Diffstat (limited to '')
-rw-r--r-- | public/css/extra.css | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/public/css/extra.css b/public/css/extra.css index 8e137975..96cdac3d 100644 --- a/public/css/extra.css +++ b/public/css/extra.css @@ -154,6 +154,14 @@ color: #767676; } +.ui-toc-dropdown .toc.expand ul { + display: block; +} + +.ui-toc-dropdown .nav > li:first-child:nth-last-child(1) > ul { + display: block; +} + .ui-toc-dropdown .nav>li>a:focus,.ui-toc-dropdown .nav>li>a:hover { padding-left: 19px; color: black; @@ -281,7 +289,7 @@ overflow: auto; } -.back-to-top, .go-to-bottom { +.expand-toggle, .back-to-top, .go-to-bottom { display: block; padding: 4px 10px; margin-top: 10px; @@ -291,12 +299,12 @@ color: #999; } -.back-to-top:hover, .back-to-top:focus, .go-to-bottom:hover, .go-to-bottom:focus { +.expand-toggle:hover, .expand-toggle:focus, .back-to-top:hover, .back-to-top:focus, .go-to-bottom:hover, .go-to-bottom:focus { color: #563d7c; text-decoration: none; } -.go-to-bottom { +.back-to-top, .go-to-bottom { margin-top: 0; } |