From 975f17c75ead23c483b103deff3f5ac5e76f2909 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 15 Mar 2013 17:54:36 +0000 Subject: [PATCH] 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 --- functions.php | 4 ++-- rtl.css | 2 +- style.css | 12 +++++++++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/functions.php b/functions.php index b2cfd89f7..04981390d 100644 --- a/functions.php +++ b/functions.php @@ -318,10 +318,10 @@ function twentytwelve_comment( $comment, $args, $depth ) {
%1$s %2$s', + printf( '%1$s %2$s', get_comment_author_link(), // If current post author is also comment author, make it known visually. - ( $comment->user_id === $post->post_author ) ? ' ' . __( 'Post author', 'twentytwelve' ) . '' : '' + ( $comment->user_id === $post->post_author ) ? '' . __( 'Post author', 'twentytwelve' ) . '' : '' ); printf( '', esc_url( get_comment_link( $comment->comment_ID ) ), diff --git a/rtl.css b/rtl.css index cb989a136..1055f9cca 100644 --- a/rtl.css +++ b/rtl.css @@ -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; diff --git a/style.css b/style.css index b0ad143de..cdcee4c5c 100644 --- a/style.css +++ b/style.css @@ -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;