summaryrefslogtreecommitdiff
path: root/lib/tpl
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-05-14 20:09:03 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-05-14 20:09:03 +0200
commit82cb71c182440266292bf2264fc5685cc8961730 (patch)
tree0853b4ae6452b7d936d08cf3c705e692c12c48fd /lib/tpl
parent8a447e5c940231e5547004c8343801b7f59f1df9 (diff)
downloadrpg-82cb71c182440266292bf2264fc5685cc8961730.tar.gz
rpg-82cb71c182440266292bf2264fc5685cc8961730.tar.bz2
replaced TOC toggle images by CSS magic
Instead of relying on images to show the toggle button for hiding the table of contents, now some CSS is used to simulate an arrow. darcs-hash:20070514180903-7ad00-4aeef03580dfb92a5c939d3cdd569850ea31df5b.gz
Diffstat (limited to 'lib/tpl')
-rw-r--r--lib/tpl/default/design.css28
-rw-r--r--lib/tpl/default/images/toc_hide.gifbin274 -> 0 bytes
-rw-r--r--lib/tpl/default/images/toc_show.gifbin273 -> 0 bytes
3 files changed, 22 insertions, 6 deletions
diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css
index e950dc03e..fbeacefed 100644
--- a/lib/tpl/default/design.css
+++ b/lib/tpl/default/design.css
@@ -509,12 +509,28 @@ div.dokuwiki div.tocheader {
margin-bottom: 2px;
}
-div.dokuwiki div.tocheader img {
- width: 0.8em;
- height: 0.8em;
- float: right;
- margin: 0.3em 3px 0 0;
- cursor: pointer;
+div.dokuwiki span.toc_open,
+div.dokuwiki span.toc_close {
+ border: 0.4em solid __background_alt__;
+ float: right;
+ display: block;
+ margin: 0.4em 3px 0 0;
+ cursor: pointer;
+}
+
+div.dokuwiki span.toc_open span,
+div.dokuwiki span.toc_close span {
+ display: none;
+}
+
+div.dokuwiki span.toc_open {
+ margin-top: 0.4em;
+ border-top: 0.4em solid __text__;
+}
+
+div.dokuwiki span.toc_close {
+ margin-top: 0;
+ border-bottom: 0.4em solid __text__;
}
div.dokuwiki #toc__inside {
diff --git a/lib/tpl/default/images/toc_hide.gif b/lib/tpl/default/images/toc_hide.gif
deleted file mode 100644
index d491c18db..000000000
--- a/lib/tpl/default/images/toc_hide.gif
+++ /dev/null
Binary files differ
diff --git a/lib/tpl/default/images/toc_show.gif b/lib/tpl/default/images/toc_show.gif
deleted file mode 100644
index ff13b9585..000000000
--- a/lib/tpl/default/images/toc_show.gif
+++ /dev/null
Binary files differ