summaryrefslogtreecommitdiff
path: root/public/css
diff options
context:
space:
mode:
authorWu Cheng-Han2016-08-14 11:24:04 +0800
committerWu Cheng-Han2016-08-14 11:24:04 +0800
commite08152ed03639cfa0592678840b4b8d0b98aa19b (patch)
tree8dbad74db494161cc2b88201e5396ac6af21c692 /public/css
parent8d24d9e97fe362f6cfd63da32ec4f4bd07b5bd9a (diff)
Update toc styles to make toc menu always accessible without scrolling
Diffstat (limited to 'public/css')
-rw-r--r--public/css/extra.css7
1 files changed, 6 insertions, 1 deletions
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;