From 93af547425d1faeecef408cf6db35be71ad91507 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 26 Aug 2012 19:57:40 +0100 Subject: [PATCH] adjusted toc styles to reflect html changes to core toc (backwards-compatible) --- css/_toc.css | 48 ++++++++++++++++++++++++++++++++---------------- css/print.css | 2 +- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/css/_toc.css b/css/_toc.css index 9c5a247..66a05f3 100644 --- a/css/_toc.css +++ b/css/_toc.css @@ -7,68 +7,84 @@ ********************************************************************/ /* toc container */ -.dokuwiki div.toc { +.dokuwiki div.toc, /* old, until 2012-01-25 */ +#dw__toc /* new */ { float: right; margin: 0 0 1.4em 1.4em; width: 12em; background-color: __background_alt__; color: inherit; } -[dir=rtl] .dokuwiki div.toc { +[dir=rtl] .dokuwiki div.toc, /* old, until 2012-01-25 */ +[dir=rtl] #dw__toc /* new */ { float: left; margin: 0 1.4em 1.4em 0; } /*____________ toc header ____________*/ -.dokuwiki div.tocheader { +.dokuwiki div.tocheader, /* old */ +#dw__toc h3 /* new */ { padding: .2em .5em; font-weight: bold; + margin-bottom: 0; + font-size: 1em; } -.dokuwiki .toc span.toc_open, -.dokuwiki .toc span.toc_close { +.dokuwiki .toc span.toc_open, /* old */ +.dokuwiki .toc span.toc_close, /* old */ +#dw__toc h3 strong /* new */ { float: right; margin: 0 .2em; } -[dir=rtl] .dokuwiki .toc span.toc_open, -[dir=rtl] .dokuwiki .toc span.toc_close { +[dir=rtl] .dokuwiki .toc span.toc_open, /* old */ +[dir=rtl] .dokuwiki .toc span.toc_close, /* old */ +[dir=rtl] #dw__toc h3 strong /* new */ { float: left; } /*____________ toc list ____________*/ -.dokuwiki #toc__inside { +.dokuwiki #toc__inside, +#dw__toc > div { padding: .2em .5em; } -.dokuwiki #toc__inside ul { +.dokuwiki #toc__inside ul, /* old */ +#dw__toc ul /* new */ { padding: 0; margin: 0; } -.dokuwiki #toc__inside ul li { +.dokuwiki #toc__inside ul li, /* old */ +#dw__toc ul li /* new */ { list-style: none; padding: 0; margin: 0; line-height: 1.1; } -.dokuwiki #toc__inside ul li div.li { +.dokuwiki #toc__inside ul li div.li, /* old */ +#dw__toc ul li div.li /* new */ { padding: .15em 0; } -.dokuwiki #toc__inside ul ul { +.dokuwiki #toc__inside ul ul, /* old */ +#dw__toc ul ul /* new */ { padding-left: 1em; } -[dir=rtl] .dokuwiki #toc__inside ul ul { +[dir=rtl] .dokuwiki #toc__inside ul ul, /* old */ +[dir=rtl] #dw__toc ul ul /* new */ { padding-left: 0; padding-right: 1em; } -.dokuwiki #toc__inside ul ul li { +.dokuwiki #toc__inside ul ul li, /* old */ +#dw__toc ul ul li /* new */ { } -.dokuwiki #toc__inside ul li a { +.dokuwiki #toc__inside ul li a, /* old */ +#dw__toc ul li a /* new */ { } /* in case of toc list jumping one level (e.g. if heading level 3 follows directly after heading level 1) */ -.dokuwiki #toc__inside ul li.clear { +.dokuwiki #toc__inside ul li.clear, /* old */ +#dw__toc ul li.clear /* new */ { } diff --git a/css/print.css b/css/print.css index 3a3e173..39179c5 100644 --- a/css/print.css +++ b/css/print.css @@ -16,7 +16,7 @@ body { .a11y, div.notify, div.info, div.success, div.error, #dokuwiki__header .tools, #dokuwiki__aside, -.dokuwiki .breadcrumbs, .dokuwiki .toc, .dokuwiki .secedit, +.dokuwiki .breadcrumbs, .dokuwiki .toc, #dw__toc, .dokuwiki .secedit, #dokuwiki__pagetools, #dokuwiki__footer { display: none; }