Commits

Doug Stewart  committed 000d894

First pass at getting drop-down menus (CSS-only) working with the out-of-the-box theme.

  • Participants
  • Parent commits 2623767

Comments (0)

Files changed (3)

File includes/functions/hooks.php

 	if( function_exists( 'wp_nav_menu' ) ){
 		wp_nav_menu( array( 'theme_location'	=> 'primary',  
 							'container'			=> 'div',
-							'container_id'		=> 'menu',
-							'depth'				=> '1'
+							'container_id'		=> 'menu'
 					) );
 	} else {
 	?>

File styles/ng.css

 	padding: 5px 10px;
 	color: #fff;
 	text-decoration: none;
-	margin-right: 5px;
 	font-weight: bold;
 }
 

File styles/ng/ng-base.css

+/* @group Menu elements */
+#menu ul ul {
+	display: none;
+	float: left;
+	position: absolute;
+	width: 188px;
+	border: 1px solid #000;
+	background: #3c3c3c;
+	z-index: 99999;
+}
+
+#menu ul ul li {
+	position: relative;
+}
+
+#menu ul li:hover > ul {
+	display: block;
+}
+
+#menu ul ul ul {
+	left: 100%;
+	top: -1px;
+}
+
+ul.sub-menu li a:link, ul.sub-menu li a:visited {
+	padding: 10px 20px;
+	color: #fff;
+	text-decoration: none;
+	font-weight: bold;
+}
+
+ul.sub-menu li a:hover, ul.sub-menu li a:active {
+	background: #fff;
+	color: #0971B3;
+}
+/* @end */
+
 /* @group Calendar elements */
 #calendar_wrap {
 	padding: 15px;