Permalink
Browse files

_s: Simple WordPress menu styles

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8850 d957f892-c61d-0410-b221-f235e6eecf30
  • Loading branch information...
ianstewart committed Feb 3, 2012
1 parent e8b2bb8 commit 44c46fd18197c3b8872649ebe4e7ba9551e833d3
Showing with 57 additions and 1 deletion.
  1. +1 −1 header.php
  2. +56 −0 style.css
View
@@ -53,7 +53,7 @@
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</hgroup>
- <nav role="navigation" class="site-navigation">
+ <nav role="navigation" class="site-navigation main-navigation">
<h1 class="assistive-text"><?php _e( 'Main menu', '_s' ); ?></h1>
<div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', '_s' ); ?>"><?php _e( 'Skip to content', '_s' ); ?></a></div>
View
@@ -329,6 +329,62 @@ a:active {
}
+/* =Menu
+----------------------------------------------- */
+
+.main-navigation {
+ clear: both;
+ display: block;
+ float: left;
+ width: 100%;
+}
+.main-navigation ul {
+ list-style: none;
+ margin: 0;
+ padding-left: 0;
+}
+.main-navigation li {
+ float: left;
+ position: relative;
+}
+.main-navigation a {
+ display: block;
+ text-decoration: none;
+}
+.main-navigation ul ul {
+ -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
+ -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
+ box-shadow: 0 3px 3px rgba(0,0,0,0.2);
+ display: none;
+ float: left;
+ position: absolute;
+ top: 1.5em;
+ left: 0;
+ z-index: 99999;
+}
+.main-navigation ul ul ul {
+ left: 100%;
+ top: 0;
+}
+.main-navigation ul ul a {
+ width: 200px;
+}
+.main-navigation ul ul li {
+}
+.main-navigation li:hover > a {
+}
+.main-navigation ul ul :hover > a {
+}
+.main-navigation ul ul a:hover {
+}
+.main-navigation ul li:hover > ul {
+ display: block;
+}
+.main-navigation li.current_page_item a,
+.main-navigation li.current-menu-item a {
+}
+
+
/* =Content
----------------------------------------------- */

0 comments on commit 44c46fd

Please sign in to comment.