WordPress.org

Making WordPress.org

Changeset 3533


Ignore:
Timestamp:
06/22/2016 10:13:29 AM (6 years ago)
Author:
obenland
Message:

Breathe: First pass at menu updates.

See #1778.

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

Legend:

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

    r3514 r3533  
    1010
    1111        </div><!-- #main -->
    12 
    13         <footer id="colophon" class="site-footer" role="contentinfo">
    14             <div class="site-info">
    15                 <?php do_action( 'breathe_credits' ); ?>
    16                 <a href="http://wordpress.org/" rel="generator"><?php printf( __( 'Proudly powered by %s', 'p2-breathe' ), 'WordPress' ); ?></a>
    17                 <span class="sep"> | </span>
    18                 <?php printf( __( 'Theme: %s.', 'p2-breathe' ), 'P2' ); ?>
    19             </div><!-- .site-info -->
    20         </footer><!-- #colophon -->
    2112    </div><!-- #page -->
    2213
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php

    r3514 r3533  
    44require WPORGPATH . 'header.php';
    55?>
    6 <div id="page" class="hfeed site">
    7     <?php do_action( 'before' ); ?>
    8     <header id="masthead" class="site-header" role="banner">
    9         <div class="hgroup">
    10             <?php
    11             $header_image = get_header_image();
    12             if ( ! empty( $header_image ) ) :
    13                 ?>
    14                 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    15                     <img src="<?php echo esc_url( add_query_arg( 'w', 276, $header_image ) ); ?>" class="header-image" alt="" />
    16                 </a>
    17             <?php endif; ?>
    18             <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    19             <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    20         </div><!-- .hgroup -->
    21         <nav id="site-navigation" class="navigation-main" role="navigation">
     6<header id="masthead" class="site-header" role="banner">
     7    <div class="site-branding">
     8        <?php if ( is_front_page() && is_home() ) : ?>
     9            <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
     10        <?php else : ?>
     11            <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
     12        <?php endif; ?>
     13
     14        <nav id="site-navigation" class="navigation-main clear" role="navigation">
    2215            <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'p2-breathe' ); ?>"><?php _e( 'Skip to content', 'p2-breathe' ); ?></a></div>
    2316
    2417            <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => false ) ); ?>
    2518        </nav><!-- .navigation-main -->
    26     </header><!-- .site-header -->
     19    </div>
     20</header><!-- .site-header -->
    2721
    28     <div id="main" class="site-main">
     22<div id="page" class="hfeed site">
     23    <?php do_action( 'before' ); ?>
     24
     25
     26    <div id="main" class="site-main clear">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css

    r3514 r3533  
    44 * Description: Child theme of P2 Breathe, with modifications specifically for WordPress.org.
    55 */
     6
     7body, button, input, select, textarea,
     8.site-header .site-title {
     9    font-family: 'Open Sans', sans-serif;
     10}
     11
     12/* wp4.css overrides */
     13p a {
     14    border-bottom: none;
     15}
     16
     17input[type="submit"] {
     18    height: auto;
     19}
     20
     21/* wporg-header overrides */
     22#wporg-header input.text {
     23    padding: 3px;
     24}
     25#wporg-header input[type="submit"] {
     26    box-shadow: none;
     27}
     28.site,
     29.custom-menu .site,
     30.site-branding {
     31    box-sizing: border-box;
     32    margin: 0 auto;
     33    max-width: 960px;
     34    padding: 0 10px;
     35}
     36
     37.site-header {
     38    background: #0073aa;
     39    float: none;
     40    margin: 0 0 2em;
     41    padding: 21px 0;
     42    width: auto;
     43}
     44
     45.site-header .site-title {
     46    margin: 0;
     47    padding: 0;
     48}
     49
     50.site-header .site-title a {
     51    color: #fff;
     52    font-size: 33px;
     53    font-weight: 300;
     54    line-height: 1;
     55}
     56
     57.navigation-main {
     58    background: transparent;
     59    display: inline-block;
     60    float: right;
     61    position: inherit;
     62    top: auto;
     63    left: auto;
     64    width: auto;
     65}
     66
     67.navigation-main ul li {
     68    display: inline-block;
     69    float: none;
     70    margin-right: 21px;
     71}
     72
     73.rtl .navigation-main ul li {
     74    margin-left: 21px;
     75    margin-right: 0;
     76}
     77
     78.navigation-main ul li:last-of-type {
     79    margin: 0;
     80}
     81
     82.navigation-main ul li a {
     83    padding: 4px 0;
     84}
     85
     86.navigation-main ul li:hover > a,
     87.navigation-main ul li.current-menu-item a {
     88    background: transparent;
     89    text-decoration: underline;
     90}
     91
     92.navigation-main a {
     93    color: rgba(255, 255, 255, 0.8);
     94    font-size: 16.8px;
     95}
Note: See TracChangeset for help on using the changeset viewer.