Commit 752c0eb7 authored by Dries's avatar Dries

- Bugfix: changed id="menu" to class="menu" to avoid id="menu" being emitted
  twice.  Patch by Jim Riggs.
parent 1fb82a6e
......@@ -262,40 +262,40 @@ pre, code {
color: red;
}
#menu {
.menu {
padding: 0 0 0 0.5em;
}
#menu ul {
.menu ul {
list-style: none;
margin: 0;
padding: 0 0 0.25em 1em;
border: none;
text-align:left;
}
#menu li {
.menu li {
margin: 0;
padding: 0.2em 0.5em 0 0;
}
#menu li a {
.menu li a {
display: block;
width: 100%;
text-decoration: none;
}
#menu li a.active {
.menu li a.active {
color: #000;
}
#menu li a:hover {
.menu li a:hover {
color: #009;
}
#menu li.expanded {
.menu li.expanded {
list-style-type: circle;
list-style-image: url(menu-expanded.gif);
}
#menu li.collapsed {
.menu li.collapsed {
list-style-type: disc;
list-style-image: url(menu-collapsed.gif);
}
#menu li.leaf {
.menu li.leaf {
list-style-type: square;
list-style-image: url(menu-leaf.gif);
}
......@@ -456,7 +456,7 @@ function user_block($op = "list", $delta = 0) {
case 1:
if ($menu = menu_tree()) {
$block["subject"] = $user->uid ? $user->name : t("Navigation");
$block["content"] = "<div id=\"menu\">". $menu ."</div>";
$block["content"] = "<div class=\"menu\">". $menu ."</div>";
}
return $block;
......
......@@ -456,7 +456,7 @@ function user_block($op = "list", $delta = 0) {
case 1:
if ($menu = menu_tree()) {
$block["subject"] = $user->uid ? $user->name : t("Navigation");
$block["content"] = "<div id=\"menu\">". $menu ."</div>";
$block["content"] = "<div class=\"menu\">". $menu ."</div>";
}
return $block;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment