Permalink
Browse files

submenu nav for pages

  • Loading branch information...
1 parent 6e40e25 commit b625a0500647cff5b8499f515a9c98899bba3f79 @pnts committed Aug 14, 2010
Showing with 10 additions and 8 deletions.
  1. +2 −2 header.php
  2. +2 −1 ie.css
  3. +6 −5 style.css
View
4 header.php
@@ -53,8 +53,8 @@
<?php if ( has_nav_menu( 'main-menu' )) : ?>
<?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'container' => '' )); ?>
<?php else: ?>
- <ul>
- <?php wp_list_pages('title_li=&depth=1'); ?>
+ <ul class="menu">
+ <?php wp_list_pages('title_li=&depth=2'); ?>
<li><a href="<?php bloginfo('atom_url'); ?>">Feed</a></li>
</ul>
<?php endif; ?>
View
3 ie.css
@@ -1,4 +1,5 @@
-p.description, p.date, .entry a.more-link {
+p.description, p.date, .entry a.more-link,
+#entry_content p.tags span, .comment-meta {
font-family: "Palatino Linotype";
}
View
11 style.css
@@ -306,6 +306,7 @@ h3#comments {
width: 43.5em;
font-size: .9em;
color: #999;
+ overflow: auto;
}
.description, .date {
@@ -928,11 +929,12 @@ img { -ms-interpolation-mode:bicubic; }
position: relative;
}
-#main_nav ul.menu li:hover ul.sub-menu {
+#main_nav ul.menu li:hover ul.sub-menu,
+#main_nav ul.menu li:hover ul.children {
display: block;
}
-#main_nav ul.sub-menu {
+#main_nav ul.sub-menu, #main_nav ul.children {
margin-top: 0;
position: absolute;
top: -1px;
@@ -942,19 +944,18 @@ img { -ms-interpolation-mode:bicubic; }
display: none;
}
-#main_nav ul.sub-menu li {
+#main_nav ul.sub-menu li, #main_nav ul.children li {
width: 100%;
padding: .5em .3em .1em .5em;
border-bottom: 1px solid #FFF;
background: #EEE;
}
-#main_nav ul.sub-menu li a {
+#main_nav ul.sub-menu li a, #main_nav ul.children li a {
padding: 0;
line-height: 1.55em
}
-
#main_nav ul.sub-menu a:hover, ul.sub-menu .current_page_item, ul.sub-menu .current {
border-right: 0;
}

0 comments on commit b625a05

Please sign in to comment.