Twenty Twelve: update author archive markup and styles, props klagraff. Fixes #21494.

git-svn-id: http://core.svn.wordpress.org/trunk@21464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
lancewillett 2012-08-06 21:05:02 +00:00
parent 704304d6fe
commit 850adce105
2 changed files with 16 additions and 4 deletions

View File

@ -24,8 +24,8 @@ get_header(); ?>
the_post();
?>
<header class="page-header">
<h1 class="archive-title author"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
<header class="archive-header">
<h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
</header>
<?php

View File

@ -393,6 +393,10 @@ img.wp-smiley,
}
/* Author profiles */
.author .archive-header {
margin-bottom: 24px;
margin-bottom: 1.714285714rem;
}
#author-info {
border-top: 1px solid #ededed;
margin: 24px 0;
@ -407,6 +411,14 @@ img.wp-smiley,
font-size: 0.928571429rem;
line-height: 1.846153846;
}
.author.archive #author-info {
border-top: 0;
margin: 0 0 48px;
margin: 0 0 3.428571429rem;
}
.author.archive #author-avatar {
margin-top: 0;
}
/* =Basic structure
@ -942,8 +954,8 @@ footer .edit-link {
/* =Archives
-------------------------------------------------------------- */
.archive .site-content .archive-header,
.search .page-header {
.archive-header,
.page-header {
margin-bottom: 48px;
margin-bottom: 3.428571429rem;
padding-bottom: 22px;