Twenty Twelve: update post author comment markup and styles, improving hCard data parsing and simplifying styles. Fixes #23128.

git-svn-id: http://core.svn.wordpress.org/trunk@23716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-03-15 17:54:36 +00:00
parent 8bb3d5c112
commit 6cd06ec784
3 changed files with 12 additions and 6 deletions

View File

@ -318,10 +318,10 @@ function twentytwelve_comment( $comment, $args, $depth ) {
<header class="comment-meta comment-author vcard">
<?php
echo get_avatar( $comment, 44 );
printf( '<cite class="fn">%1$s %2$s</cite>',
printf( '<cite><b class="fn">%1$s</b> %2$s</cite>',
get_comment_author_link(),
// If current post author is also comment author, make it known visually.
( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''
( $comment->user_id === $post->post_author ) ? '<span>' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''
);
printf( '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
esc_url( get_comment_link( $comment->comment_ID ) ),

View File

@ -117,7 +117,7 @@ article.format-link .entry-content {
left: 0;
right: auto;
}
.comments-area li.bypostauthor cite span {
.comments-area .bypostauthor cite span {
margin-right: 5px;
margin-right: 0.357142857rem;
margin-left: auto;

View File

@ -240,7 +240,7 @@ input[type="submit"],
input[type="button"],
input[type="reset"],
article.post-password-required input[type=submit],
li.bypostauthor cite span {
.bypostauthor cite span {
padding: 6px 10px;
padding: 0.428571429rem 0.714285714rem;
font-size: 11px;
@ -302,7 +302,7 @@ input[type="reset"]:active {
box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
border-color: transparent;
}
li.bypostauthor cite span {
.bypostauthor cite span {
color: #fff;
background-color: #21759b;
background-image: none;
@ -1200,6 +1200,9 @@ article.format-quote .entry-content blockquote {
font-size: 1.071428571rem;
line-height: 1.42857143;
}
.comments-area cite b {
font-weight: normal;
}
.comments-area article header time {
line-height: 1.714285714;
text-decoration: none;
@ -1240,7 +1243,7 @@ article.format-quote .entry-content blockquote {
border-radius: 3px;
border: 1px solid #007cbd;
}
.comments-area li.bypostauthor cite span {
.comments-area .bypostauthor cite span {
position: absolute;
margin-left: 5px;
margin-left: 0.357142857rem;
@ -1249,6 +1252,9 @@ article.format-quote .entry-content blockquote {
font-size: 10px;
font-size: 0.714285714rem;
}
.comments-area .bypostauthor cite b {
font-weight: bold;
}
a.comment-reply-link,
a.comment-edit-link {
color: #686868;