Browse Source

adjusted toc styles to reflect html changes to core toc (backwards-compatible)

master
Anika Henke 12 years ago
parent
commit
93af547425
  1. 48
      css/_toc.css
  2. 2
      css/print.css

48
css/_toc.css

@ -7,68 +7,84 @@
********************************************************************/ ********************************************************************/
/* toc container */ /* toc container */
.dokuwiki div.toc {
.dokuwiki div.toc, /* old, until 2012-01-25 */
#dw__toc /* new */ {
float: right; float: right;
margin: 0 0 1.4em 1.4em; margin: 0 0 1.4em 1.4em;
width: 12em; width: 12em;
background-color: __background_alt__; background-color: __background_alt__;
color: inherit; color: inherit;
} }
[dir=rtl] .dokuwiki div.toc {
[dir=rtl] .dokuwiki div.toc, /* old, until 2012-01-25 */
[dir=rtl] #dw__toc /* new */ {
float: left; float: left;
margin: 0 1.4em 1.4em 0; margin: 0 1.4em 1.4em 0;
} }
/*____________ toc header ____________*/ /*____________ toc header ____________*/
.dokuwiki div.tocheader {
.dokuwiki div.tocheader, /* old */
#dw__toc h3 /* new */ {
padding: .2em .5em; padding: .2em .5em;
font-weight: bold; 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; float: right;
margin: 0 .2em; 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; float: left;
} }
/*____________ toc list ____________*/ /*____________ toc list ____________*/
.dokuwiki #toc__inside {
.dokuwiki #toc__inside,
#dw__toc > div {
padding: .2em .5em; padding: .2em .5em;
} }
.dokuwiki #toc__inside ul {
.dokuwiki #toc__inside ul, /* old */
#dw__toc ul /* new */ {
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
.dokuwiki #toc__inside ul li {
.dokuwiki #toc__inside ul li, /* old */
#dw__toc ul li /* new */ {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
line-height: 1.1; 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; padding: .15em 0;
} }
.dokuwiki #toc__inside ul ul {
.dokuwiki #toc__inside ul ul, /* old */
#dw__toc ul ul /* new */ {
padding-left: 1em; 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-left: 0;
padding-right: 1em; 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 /* in case of toc list jumping one level
(e.g. if heading level 3 follows directly after heading level 1) */ (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 */ {
} }

2
css/print.css

@ -16,7 +16,7 @@ body {
.a11y, .a11y,
div.notify, div.info, div.success, div.error, div.notify, div.info, div.success, div.error,
#dokuwiki__header .tools, #dokuwiki__aside, #dokuwiki__header .tools, #dokuwiki__aside,
.dokuwiki .breadcrumbs, .dokuwiki .toc, .dokuwiki .secedit,
.dokuwiki .breadcrumbs, .dokuwiki .toc, #dw__toc, .dokuwiki .secedit,
#dokuwiki__pagetools, #dokuwiki__footer { #dokuwiki__pagetools, #dokuwiki__footer {
display: none; display: none;
} }

Loading…
Cancel
Save