diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-04-20 17:20:17 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-04-20 17:20:17 +0200 |
commit | c8388e443bcd0c09a0b142b31819d48abd559aa0 (patch) | |
tree | 3ee1a17a29bfd980257750215dcda68d824d9441 /lib/tpl/default | |
parent | 3d2fd76a6a87ddf4a45c05091799c09500265307 (diff) | |
download | rpg-c8388e443bcd0c09a0b142b31819d48abd559aa0.tar.gz rpg-c8388e443bcd0c09a0b142b31819d48abd559aa0.tar.bz2 |
made TOC togling script more generic
Instead of a dedicated function to toggle the TOC we now have a function
that allows to use this functionality everywhere. This will be used to
toggle the sidebar in the mobile view (in an upcoming patch).
Note, this required some changes to the CSS (to make it more generic).
The CSS is still located in the TOC sections but should probably be
moved into its own section instead.
Diffstat (limited to 'lib/tpl/default')
-rw-r--r-- | lib/tpl/default/design.css | 10 | ||||
-rw-r--r-- | lib/tpl/default/rtl.css | 3 |
2 files changed, 8 insertions, 5 deletions
diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css index 300b62a15..44ccc0343 100644 --- a/lib/tpl/default/design.css +++ b/lib/tpl/default/design.css @@ -565,23 +565,25 @@ div.dokuwiki #dw__toc h3 { font-size: 1em; } -div.dokuwiki #dw__toc h3 strong { +div.dokuwiki .toggle_close .toggle, +div.dokuwiki .toggle_open .toggle { border: 0.4em solid __background_alt__; float: right; display: block; margin: 0.4em 3px 0 0; } -div.dokuwiki #dw__toc h3 strong span { +div.dokuwiki .toggle_open .toggle span, +div.dokuwiki .toggle_close .toggle span { display: none; } -div.dokuwiki #dw__toc.close h3 strong { +div.dokuwiki .toggle_close .toggle { margin-top: 0.4em; border-top: 0.4em solid __text__; } -div.dokuwiki #dw__toc.open h3 strong { +div.dokuwiki .toggle_open .toggle { margin-top: 0; border-bottom: 0.4em solid __text__; } diff --git a/lib/tpl/default/rtl.css b/lib/tpl/default/rtl.css index 32a8ddb6d..b9dd82902 100644 --- a/lib/tpl/default/rtl.css +++ b/lib/tpl/default/rtl.css @@ -98,7 +98,8 @@ div.dokuwiki #dw__toc h3 { text-align: right; } -div.dokuwiki #dw__toc h3 strong { +div.dokuwiki .toggle_close .toggle, +div.dokuwiki .toggle_open .toggle { float: left; margin: 0.4em 0 0 3px; } |