support for arbitrary nesting in menu
authorPiers Haken <piers@mono-cvs.ximian.com>
Sat, 9 Mar 2002 09:07:35 +0000 (09:07 -0000)
committerPiers Haken <piers@mono-cvs.ximian.com>
Sat, 9 Mar 2002 09:07:35 +0000 (09:07 -0000)
svn path=/trunk/mono/; revision=3020

doc/web/process.pl
doc/web/template.html.in
web/web/process.pl
web/web/template.html.in

index 1ce70004d07993d7d4b7f75d310e426f4d49e82c..f170fe176758f79815dad4a25b84faa767d1b00b 100755 (executable)
@@ -23,12 +23,10 @@ while (<COMMANDS>) {
   my @command = split /,/;
   if ($command[0] != -1) {
       $menu .= "\t\t";
-      if ($command[0] == 0){
-         $menu .= "<tr><td valign=\"top\" class=\"navi\"><a class=\"navi\"";
-      } else {
-         $menu .= "<tr><td valign=\"top\" class=\"subnavi\">&nbsp;&nbsp;&nbsp<a class=\"subnavi\"";
-      }
-      $menu .= "HREF=\"$command[2]\">$command[1]</A></td></tr>\n\n";
+         $menu .= "<tr><td valign=\"top\" class=\"navi" . $command[0];
+         $menu .= "\"><a class=\"navi" . $command[0];
+         $menu .= "\"";
+         $menu .= "HREF=\"$command[2]\">$command[1]</A></td></tr>\n\n";
   } 
 }
 close COMMANDS;
index 204629a4da7f56a6c32249bab568891fb0817724..7603e1945d59c818dfa6b53305eaffe227ad5e78 100644 (file)
@@ -9,17 +9,22 @@
    body, td, table { font-family: "trebuchet ms", lucida, verdana, helvetica; 
                      font-size: 14px; }
 
-       .navi { font-size: 14px; background: #444444; }
-       .subnavi { font-size: 14px; }
-        .footnote { font-size: 12px; color: #aaaaaa; }
+       .navi0 { font-size: 14px; font-weight: bold; background: #444444; }
+       .navi1 { font-size: 14px; font-weight: bold; left-margin: 10pt}
+       .navi2 { font-size: 10px; font-weight: bold; left-margin: 20pt}
+       .footnote { font-size: 12px; color: #aaaaaa; }
 
-       a.navi { color: #ffffff; text-decoration: none; font-weight: bold; }
-       a.navi:visited { color: #cccccc; }
-       a.navi:hover { color: #ee9900; text-decoration: underline; }
+       a.navi0 { color: #ffffff; text-decoration: none}
+       a.navi0:visited { color: #cccccc; }
+       a.navi0:hover { color: #ee9900; text-decoration: underline; }
 
-       a.subnavi { color: #ffffff; text-decoration: none; font-weight: bold; }
-       a.subnavi:visited { color: #cccccc; }
-       a.subnavi:hover { color: #ee9900; text-decoration: underline; }
+       a.navi1 { color: #ffffff; text-decoration: none; margin-left: 7px;}
+       a.navi1:visited { color: #cccccc; }
+       a.navi1:hover { color: #ee9900; text-decoration: underline; }
+
+       a.navi2 { color: #ffffff; text-decoration: none; margin-left: 20px;}
+       a.navi2:visited { color: #cccccc; }
+       a.navi2:hover { color: #ee9900; text-decoration: underline; }
 
 // -->
 </style>
index 1ce70004d07993d7d4b7f75d310e426f4d49e82c..f170fe176758f79815dad4a25b84faa767d1b00b 100755 (executable)
@@ -23,12 +23,10 @@ while (<COMMANDS>) {
   my @command = split /,/;
   if ($command[0] != -1) {
       $menu .= "\t\t";
-      if ($command[0] == 0){
-         $menu .= "<tr><td valign=\"top\" class=\"navi\"><a class=\"navi\"";
-      } else {
-         $menu .= "<tr><td valign=\"top\" class=\"subnavi\">&nbsp;&nbsp;&nbsp<a class=\"subnavi\"";
-      }
-      $menu .= "HREF=\"$command[2]\">$command[1]</A></td></tr>\n\n";
+         $menu .= "<tr><td valign=\"top\" class=\"navi" . $command[0];
+         $menu .= "\"><a class=\"navi" . $command[0];
+         $menu .= "\"";
+         $menu .= "HREF=\"$command[2]\">$command[1]</A></td></tr>\n\n";
   } 
 }
 close COMMANDS;
index 204629a4da7f56a6c32249bab568891fb0817724..7603e1945d59c818dfa6b53305eaffe227ad5e78 100644 (file)
@@ -9,17 +9,22 @@
    body, td, table { font-family: "trebuchet ms", lucida, verdana, helvetica; 
                      font-size: 14px; }
 
-       .navi { font-size: 14px; background: #444444; }
-       .subnavi { font-size: 14px; }
-        .footnote { font-size: 12px; color: #aaaaaa; }
+       .navi0 { font-size: 14px; font-weight: bold; background: #444444; }
+       .navi1 { font-size: 14px; font-weight: bold; left-margin: 10pt}
+       .navi2 { font-size: 10px; font-weight: bold; left-margin: 20pt}
+       .footnote { font-size: 12px; color: #aaaaaa; }
 
-       a.navi { color: #ffffff; text-decoration: none; font-weight: bold; }
-       a.navi:visited { color: #cccccc; }
-       a.navi:hover { color: #ee9900; text-decoration: underline; }
+       a.navi0 { color: #ffffff; text-decoration: none}
+       a.navi0:visited { color: #cccccc; }
+       a.navi0:hover { color: #ee9900; text-decoration: underline; }
 
-       a.subnavi { color: #ffffff; text-decoration: none; font-weight: bold; }
-       a.subnavi:visited { color: #cccccc; }
-       a.subnavi:hover { color: #ee9900; text-decoration: underline; }
+       a.navi1 { color: #ffffff; text-decoration: none; margin-left: 7px;}
+       a.navi1:visited { color: #cccccc; }
+       a.navi1:hover { color: #ee9900; text-decoration: underline; }
+
+       a.navi2 { color: #ffffff; text-decoration: none; margin-left: 20px;}
+       a.navi2:visited { color: #cccccc; }
+       a.navi2:hover { color: #ee9900; text-decoration: underline; }
 
 // -->
 </style>