Make WordPress Core

Ticket #21743: 21743.diff

File 21743.diff, 2.6 KB (added by drewstrojny, 12 years ago)
  • wp-content/themes/twentytwelve/style.css

     
    10271027}
    10281028
    10291029/* Status posts */
    1030 .format-status .entry-content p {
    1031         margin-right: 48px;
    1032         margin-right: 3.428571429rem;
    1033 }
    10341030.format-status div.avatar {
    1035         float: right;
    1036         margin-left: 14px;
    1037         margin-left: 1rem;
     1031        margin-bottom: 24px;
     1032        margin-bottom: 1.714285714rem;
    10381033}
     1034.format-status div.avatar header {
     1035        display: inline-block;
     1036}
     1037.format-status div.avatar h1 {
     1038        margin: 0;
     1039        font-size: 15px;
     1040        font-size: 1.071428571rem;
     1041        line-height: 1.6;
     1042        font-weight: normal;
     1043}
     1044.format-status div.avatar h2 {
     1045        margin: 0;
     1046        font-size: 12px;
     1047        font-size: 0.857142857rem;
     1048        line-height: 2;
     1049        font-weight: normal;
     1050}
     1051.format-status div.avatar a {
     1052        color: #777;
     1053}
     1054.format-status div.avatar a:hover {
     1055        color: #21759b;
     1056}
     1057.format-status div.avatar img {
     1058        float: left;
     1059        margin-right: 21px;
     1060        margin-right: 1.5rem;
     1061}
    10391062
    10401063
    10411064/* =Comments
  • wp-content/themes/twentytwelve/content-status.php

     
    1010
    1111        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1212                <div class="entry-content">
    13                         <div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentytwelve_status_avatar', '48' ) ); ?></div>
     13                        <div class="avatar clear">
     14                                <header>
     15                                        <h1><?php the_author_meta( 'display_name' ); ?></h1>
     16                                        <h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
     17                                </header>
     18                                <?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentytwelve_status_avatar', '48' ) ); ?>
     19                        </div>
    1420                        <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
    1521                </div><!-- .entry-content -->
    1622
    1723                <footer class="entry-meta">
    18                         <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
    1924                        <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
    2025                </footer><!-- .entry-meta -->
    2126        </article><!-- #post -->