Twenty Thirteen: fix case where title in author bio was indented when avatars were disabled in Discussion settings. Props obenland, fixes #24167.

git-svn-id: http://core.svn.wordpress.org/trunk@24073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-04-23 21:29:00 +00:00
parent 8492d3b680
commit 4a130a9e9c
3 changed files with 6 additions and 13 deletions

View File

@ -13,8 +13,8 @@
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentythirteen_author_bio_avatar_size', 74 ) ); ?>
</div><!-- .author-avatar -->
<div class="author-description">
<h2><?php printf( __( 'About %s', 'twentythirteen' ), get_the_author() ); ?></h2>
<p>
<h2 class="author-title"><?php printf( __( 'About %s', 'twentythirteen' ), get_the_author() ); ?></h2>
<p class="author-bio">
<?php the_author_meta( 'description' ); ?>
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
<?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), get_the_author() ); ?>

View File

@ -537,7 +537,7 @@ div.nav-menu > ul {
padding-right: 60px;
}
.author-avatar {
.author-avatar .avatar {
float: right;
margin: 0 0 30px 30px;
}

View File

@ -2096,24 +2096,17 @@ footer.entry-meta {
padding: 50px 0 0;
}
.author-avatar {
.author-avatar .avatar {
float: left;
margin: 0 30px 30px 0;
}
.single-format-status .author-description,
.single-format-status .author-description h2,
.single-format-quote .author-description,
.single-format-quote .author-description h2 {
.single-format-quote .author-description {
color: #f7f5e7;
}
.single-format-audio .author-description a,
.single-format-video .author-description a {
color: #fbfaf3;
}
.author-description h2 {
.author-description .author-title {
clear: none;
font: 300 italic 20px "Source Sans Pro", Helvetica, sans-serif;
margin: 0 0 8px;