From e08152ed03639cfa0592678840b4b8d0b98aa19b Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 14 Aug 2016 11:24:04 +0800 Subject: Update toc styles to make toc menu always accessible without scrolling --- public/css/extra.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'public/css') diff --git a/public/css/extra.css b/public/css/extra.css index 96cdac3d..9d29cf9a 100644 --- a/public/css/extra.css +++ b/public/css/extra.css @@ -130,11 +130,16 @@ padding-right: 10px; max-width: 45vw; width: 25vw; - max-height: 65vh; + max-height: 70vh; overflow: auto; text-align: inherit; } +.ui-toc-dropdown > .toc { + max-height: calc(70vh - 100px); + overflow: auto; +} + .ui-toc-dropdown[dir='rtl'] .nav { padding-right: 0; letter-spacing: 0.0029em; -- cgit v1.2.3