Make WordPress Core

Ticket #24114: 24114.1.diff

File 24114.1.diff, 4.5 KB (added by lancewillett, 10 years ago)
  • wp-content/themes/twentythirteen/style.css

     
    7070figure,
    7171footer,
    7272header,
    73 hgroup,
    7473nav,
    7574section,
    7675summary {
     
    807806        position: relative;
    808807}
    809808
    810 .site-header hgroup {
     809.site-header .masthead {
     810        color: #141412;
     811        display: block;
    811812        margin: 0 auto;
    812813        max-width: 1080px;
    813814        padding: 0 20px;
    814815        min-height: 230px;
    815816        width: 100%;
    816 }
    817 
    818 .site-header a {
    819         color: #141412;
    820817        text-decoration: none;
    821818}
    822819
     
    991988        z-index: 3;
    992989}
    993990
    994 .navbar-fixed #masthead .site-title {
     991.navbar-fixed .masthead .site-title {
    995992        color: #141412;
    996993}
    997994
     
    32563253                background-image: none !important;
    32573254        }
    32583255
    3259         .site-header hgroup {
     3256        .site-header .masthead {
    32603257                min-height: 0;
    32613258                max-width: none;
    32623259        }
  • wp-content/themes/twentythirteen/js/theme-customizer.js

     
    2222                value.bind( function( to ) {
    2323                        if ( 'blank' == to ) {
    2424                                if ( 'remove-header' == _wpCustomizeSettings.values.header_image )
    25                                         $( '#masthead hgroup' ).css( 'min-height', '0' );
     25                                        $( '.masthead' ).css( 'min-height', '0' );
    2626                                $( '.site-title, .site-description' ).css( {
    2727                                        'clip': 'rect(1px, 1px, 1px, 1px)',
    2828                                        'position': 'absolute'
    2929                                } );
    3030                        } else {
    31                                 $( '#masthead hgroup' ).css( 'min-height', '230px' );
     31                                $( '.masthead' ).css( 'min-height', '230px' );
    3232                                $( '.site-title, .site-description' ).css( {
    3333                                        'clip': 'auto',
    3434                                        'color': to,
  • wp-content/themes/twentythirteen/header.php

     
    3838
    3939<body <?php body_class(); ?>>
    4040        <div id="page" class="hfeed site">
    41                 <header id="masthead" class="site-header" role="banner">
    42                         <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    43                                 <hgroup>
    44                                         <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
    45                                         <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    46                                 </hgroup>
     41                <header class="site-header" role="banner">
     42                        <a class="masthead" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
     43                                <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
     44                                <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    4745                        </a>
    4846
    4947                        <div id="navbar" class="navbar">
     
    5452                                        <?php get_search_form(); ?>
    5553                                </nav><!-- #site-navigation -->
    5654                        </div><!-- #navbar -->
    57                 </header><!-- #masthead -->
     55                </header><!-- .site-header -->
    5856
    5957                <div id="main" class="site-main">
  • wp-content/themes/twentythirteen/css/ie.css

     
    3434        left: 100%;
    3535}
    3636
    37 .site-header hgroup {
     37.site-header .masthead {
    3838        max-width: 1040px;
    3939}
    4040
  • wp-content/themes/twentythirteen/inc/custom-header.php

     
    103103        <?php
    104104                        if ( empty( $header_image ) ) :
    105105        ?>
    106                 .site-header hgroup {
     106                .site-header .masthead {
    107107                        min-height: 0;
    108108                }
    109109        <?php
     
    141141                } ?>
    142142                padding: 0 20px;
    143143        }
    144         #headimg .hgroup {
     144        #headimg .masthead {
    145145                -webkit-box-sizing: border-box;
    146146                -moz-box-sizing:    border-box;
    147147                box-sizing:         border-box;
     
    195195        ?>
    196196        <div id="headimg" style="background: url(<?php header_image(); ?>) no-repeat scroll top; background-size: 1600px auto;">
    197197                <?php $style = ' style="color:#' . get_header_textcolor() . ';"'; ?>
    198                 <div class="hgroup">
     198                <div class="masthead">
    199199                        <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="#"><?php bloginfo( 'name' ); ?></a></h1>
    200200                        <h2 id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
    201201                </div>