From 6f644cd85ce28b262ca9e4745f75deadb4482d98 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 2 Dec 2015 12:12:33 +0100 Subject: [PATCH] add bookmarks/TOC sidebar --- static/html/epub.html | 79 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/static/html/epub.html b/static/html/epub.html index 1c3e96b..e81f343 100644 --- a/static/html/epub.html +++ b/static/html/epub.html @@ -20,6 +20,73 @@ user-select: text; } + #metainfo { + display: none !important; + } + #main { + border-radius: 0px; + -webkit-transition: -webkit-transform .4s, width .2s; + -moz-transition: -webkit-transform .4s, width .2s; + -ms-transition: -webkit-transform .4s, width .2s; + + -moz-box-shadow: none; + -webkit-box-shadow: none; + -ms-box-shadow: none; + box-shadow: none; + } + #sidebar { + background: #fff; + } +#panels a { + visibility: hidden; + width: 18px; + height: 20px; + overflow: hidden; + display: inline-block; + color: #444; + margin-left: 6px; +} + +#panels a::before { + visibility: visible; +} + +#panels a:hover { + color: #999; +} + +#panels a:active { + color: #999; + margin: 1px 0 -1px 6px; +} + +#panels a.active, +#panels a.active:hover { + color: #999; +} +.list_item a { + color: #999; +} + +.list_item.currentChapter > a, +.list_item a:hover { + color: #333; +} + +/* #tocView li.openChapter > a, */ +.list_item a:hover { + color: #333; +} +#panels { + padding-left: 14px; + background: #eee; + -moz-box-shadow: none; + -webkit-box-shadow: none; + -ms-box-shadow: none; + box-shadow: none; //0px 1px 3px rgba(0,0,0,.3); + +} + @@ -49,27 +116,37 @@ + + +