Making WordPress.org

Changeset 1406


Ignore:
Timestamp:
03/17/2015 05:27:02 PM (10 years ago)
Author:
obenland
Message:

WP.org Themes: New place for the secondary navigation.

Moves the navigation underneath the heading band, regardless of screen size.

See #947.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
Files:
2 edited

Legend:

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

    r1211 r1406  
    1414    <div class="wrapper">
    1515        <h2 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h2>
    16         <nav id="site-navigation" class="main-navigation" role="navigation">
    17             <?php
    18                 wp_nav_menu( array(
    19                     'theme_location' => 'primary',
    20                     'container'      => false,
    21                     'depth'          => 1,
    22                 ) );
    23             ?>
    24         </nav>
    2516    </div>
    2617</div>
     18<nav id="site-navigation" class="main-navigation" role="navigation">
     19    <?php
     20        wp_nav_menu( array(
     21            'theme_location' => 'primary',
     22            'container'      => false,
     23            'depth'          => 1,
     24        ) );
     25    ?>
     26</nav>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/style.css

    r1383 r1406  
    7272
    7373/* assorted overrides */
    74 #headline {
    75     height: auto;
    76 }
    77 
    7874#headline h2 {
    7975    margin-bottom: 16px;
     
    404400    -moz-box-sizing: border-box;
    405401    box-sizing: border-box;
    406     margin: 12px 0 25px;
     402    margin: 20px 0 25px;
    407403    padding: 0 20px;
    408404    width: 100%;
     
    763759
    764760/* Secondary header design */
     761.main-navigation {
     762    background: #dfdfdf;
     763}
     764
    765765.main-navigation .menu {
    766     float: right;
    767     font-size: 14px;
     766    font-size: 13px;
    768767    font-weight: bold;
    769768    list-style: none;
    770     margin-right: 15px;
    771     padding-top: 22px;
     769    margin: 0 auto;
     770    padding: 10px 0;
     771    width: 960px;
    772772}
    773773
     
    778778.main-navigation .menu li:first-of-type {
    779779     padding-left: 10px;
     780}
     781
     782#site-navigation.main-navigation a {
     783    color: #636363;
    780784}
    781785
     
    791795    }
    792796    .main-navigation .menu {
    793         background: #f5f5f5;
    794         border-top: 1px solid #d7d7d7;
    795797        margin: 0;
    796798        padding: 8px 0;
Note: See TracChangeset for help on using the changeset viewer.