summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/html.php5
-rw-r--r--style.css6
2 files changed, 10 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 77775ae5f..5969198bd 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -762,7 +762,10 @@ function html_buildlist($data,$class,$func,$lifunc='html_li_default'){
if( $item['level'] > $level ){
//open new list
- $ret .= "\n<ul class=\"$class\">\n";
+ for($i=0; $i<($item['level'] - $level); $i++){
+ if ($i) $ret .= "<li class=\"clear\">\n";
+ $ret .= "\n<ul class=\"$class\">\n";
+ }
}elseif( $item['level'] < $level ){
//close last item
$ret .= "</li>\n";
diff --git a/style.css b/style.css
index 93c7c3341..8c3dc02f9 100644
--- a/style.css
+++ b/style.css
@@ -520,6 +520,12 @@ ul.toc li {
padding-left:0.4em;
}
+ul.toc li.clear {
+/* background: transparent url(images/blank.gif) 0 0.6em no-repeat;*/
+ background-image: none;
+ padding-left:0.4em;
+}
+
a.toc {
color: #436976;
text-decoration:none;