Permalink
Browse files

Fixed nav menu with IE.

  • Loading branch information...
1 parent bbc0937 commit 45e2ee5da26eb61de3fb7acd1c299375c2c96be3 @jeremyclark13 committed Nov 29, 2012
Showing with 12 additions and 10 deletions.
  1. +1 −1 css/mobile.css
  2. +1 −0 functions.php
  3. +1 −1 header.php
  4. +1 −1 nav.php
  5. +8 −7 style.css
View
2 css/mobile.css
@@ -65,7 +65,7 @@
height: 25px;
font-size: 18px;
border: 1px solid #aaa;
- margin: 10px 0 5px 10px;
+ margin: 10px 0 0 10px;
border-radius: 3px;
text-align: center;
cursor: pointer;
View
1 functions.php
@@ -298,6 +298,7 @@ function tech_enque_mobile() {
$script_dir = get_template_directory_uri() . '/js/';
wp_register_style( 'tech-mobile', get_template_directory_uri() . '/css/mobile.css', false, 0.1 );
wp_enqueue_style( 'tech-mobile' );
+ wp_enqueue_script( 'jquery' );
//wp_register_script( 'small-menu', $script_dir . 'small-menu.js', array( 'jquery' ), '1.0' );
//wp_enqueue_script( 'small-menu' );
}
View
2 header.php
@@ -59,7 +59,7 @@
<div id="page">
<?php
if ( of_get_option( 'nav_location', 'below' ) == 'above' ) {
- get_template_part( 'nav', 'wp3' );
+ get_template_part( 'nav' );
}
?>
<div id="header">
View
2 nav.php
@@ -5,7 +5,7 @@
<div id="menu-icon"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></div>
<div id="navmenu" class="site-navigation <?php echo of_get_option( 'nav_type', 'square' ); ?> <?php echo of_get_option( 'nav_type', 'square' ); ?>-<?php echo of_get_option( 'nav_location', 'below' ); ?>">
<?php
- wp_nav_menu( array( 'container' => '', 'theme_location' => 'primary', 'menu_class' => 'top-menu', 'fallback_cb' => 'tech_menu_fallback', 'walker' => new techozoic_menu_walker() ) );
+ wp_nav_menu( array( 'container' => 'div', 'container_id' => 'navwrap', 'theme_location' => 'primary', 'menu_class' => 'top-menu', 'fallback_cb' => 'tech_menu_fallback', 'walker' => new techozoic_menu_walker() ) );
if ( of_get_option( 'search_box', '1' ) == '1' ) {
get_search_form();
}
View
15 style.css
@@ -1064,7 +1064,7 @@ Social Icons
/*************************************
Nav Menus
*************************************/
-#navmenu {
+#navwrap {
position: relative;
}
#menu-icon{
@@ -1424,23 +1424,24 @@ Forms
-o-transition:width 0.1s linear;
transition:width 0.1s linear;
}
-#navmenu #searchform #s:focus,#navmenu #searchform #s:active{
+#navmenu #searchform #s:focus, #navmenu #searchform #s:active{
width: 120px;
}
.standard-below #searchform{
- position: absolute;
+ position: relative;
right: 5px;
- top: -40px;
+ top: -50px;
}
.standard-above #searchform{
- position: absolute;
+ position: relative;
right: 5px;
top: 60px;
}
.ribbon #searchform, .square #searchform {
- position: absolute;
+ position: relative;
right: 10px;
- top: 0px;
+ top: -35px;
+ margin-bottom: -35px;
}
#searchform{

0 comments on commit 45e2ee5

Please sign in to comment.