WordPress.org

Making WordPress.org


Ignore:
Timestamp:
07/07/2016 06:18:43 AM (3 years ago)
Author:
pento
Message:

Breathe: Fix navigation responsiveness.

The nav bar needed some re-shuffling and CSS tweaks to make it responsive. This also fixes alignment issues when a viewport crosses back and forth between the threshold for moving the navigation to the sidebar.

Fixes #1795.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php

    r3631 r3632  
    1111            <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
    1212        <?php endif; ?>
     13    </div>
    1314
    14         <nav id="site-navigation" class="navigation-main clear" role="navigation">
    15             <div class="screen-reader-text skip-link"><a href="#content" title="<?php _e( 'Skip to content', 'p2-breathe' ); ?>"><?php _e( 'Skip to content', 'p2-breathe' ); ?></a></div>
     15    <nav id="site-navigation" class="navigation-main clear" role="navigation">
     16        <div class="screen-reader-text skip-link"><a href="#content" title="<?php _e( 'Skip to content', 'p2-breathe' ); ?>"><?php _e( 'Skip to content', 'p2-breathe' ); ?></a></div>
    1617
    17             <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => false ) ); ?>
    18         </nav><!-- .navigation-main -->
    19     </div>
     18        <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => false ) ); ?>
     19    </nav><!-- .navigation-main -->
    2020</header><!-- .site-header -->
    2121
Note: See TracChangeset for help on using the changeset viewer.