Browse Source

made _toc styles simpler and more generic and improved padding in between items, especially when text wraps

master
Anika Henke 13 years ago
parent
commit
02b93695b9
  1. 28
      css/_toc.css

28
css/_toc.css

@ -11,45 +11,27 @@
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__;
color: inherit;
} }
/*____________ toc header ____________*/ /*____________ toc header ____________*/
.dokuwiki div.tocheader { .dokuwiki div.tocheader {
padding: .2em .5em; padding: .2em .5em;
margin-bottom: .2em;
font-weight: bold; font-weight: bold;
background-color: __background_alt__;
color: __text__;
} }
/* css arrow */
.dokuwiki .toc span.toc_open, .dokuwiki .toc span.toc_open,
.dokuwiki .toc span.toc_close { .dokuwiki .toc span.toc_close {
border: .4em solid __background_alt__;
float: right; float: right;
display: block;
margin: 0 .2em 0 0;
}
.dokuwiki .toc span.toc_open span,
.dokuwiki .toc span.toc_close span {
display: none;
}
.dokuwiki .toc span.toc_open {
margin-top: .4em;
border-top: .4em solid __text__;
}
.dokuwiki .toc span.toc_close {
margin-top: 0;
border-bottom: .4em solid __text__;
margin: 0 .2em;
} }
/*____________ toc list ____________*/ /*____________ toc list ____________*/
.dokuwiki #toc__inside { .dokuwiki #toc__inside {
padding: .2em .5em; padding: .2em .5em;
background-color: __background_alt__;
color: __text__;
} }
.dokuwiki #toc__inside ul { .dokuwiki #toc__inside ul {
padding: 0; padding: 0;
@ -59,6 +41,10 @@
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
line-height: 1.1;
}
.dokuwiki #toc__inside ul li div.li {
padding: .15em 0;
} }
.dokuwiki #toc__inside ul ul { .dokuwiki #toc__inside ul ul {
padding-left: 1em; padding-left: 1em;

Loading…
Cancel
Save