Style the Add Comment button as a button. Fixes #26500, props SergeyBiryukov.

Built from https://develop.svn.wordpress.org/trunk@26834


git-svn-id: http://core.svn.wordpress.org/trunk@26721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Matt Thomas 2013-12-09 19:14:11 +00:00
parent 8cf1d699d9
commit 4fb4588829
23 changed files with 27 additions and 47 deletions

View File

@ -383,13 +383,11 @@ h3 {
} }
.wrap .add-new-h2, .wrap .add-new-h2,
.wrap .add-new-h2:active, .wrap .add-new-h2:active {
#add-new-comment a {
background: #e0e0e0; background: #e0e0e0;
} }
.wrap .add-new-h2:hover, .wrap .add-new-h2:hover {
#add-new-comment a:hover {
background: #2ea2cc; background: #2ea2cc;
color: #fff; color: #fff;
} }
@ -439,8 +437,7 @@ h3 {
border-color: #c00 !important; border-color: #c00 !important;
} }
.submit, .submit {
#commentsdiv #add-new-comment {
border: none; border: none;
} }

File diff suppressed because one or more lines are too long

View File

@ -383,13 +383,11 @@ h3 {
} }
.wrap .add-new-h2, .wrap .add-new-h2,
.wrap .add-new-h2:active, .wrap .add-new-h2:active {
#add-new-comment a {
background: #e0e0e0; background: #e0e0e0;
} }
.wrap .add-new-h2:hover, .wrap .add-new-h2:hover {
#add-new-comment a:hover {
background: #2ea2cc; background: #2ea2cc;
color: #fff; color: #fff;
} }
@ -439,8 +437,7 @@ h3 {
border-color: #c00 !important; border-color: #c00 !important;
} }
.submit, .submit {
#commentsdiv #add-new-comment {
border: none; border: none;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -834,8 +834,7 @@ div.error {
} }
.wrap .add-new-h2, .wrap .add-new-h2,
.wrap .add-new-h2:active, .wrap .add-new-h2:active {
#add-new-comment a {
margin-right: 4px; margin-right: 4px;
padding: 4px 8px; padding: 4px 8px;
position: relative; position: relative;
@ -3458,12 +3457,6 @@ table.fixed {
margin: 0; margin: 0;
} }
#commentsdiv #add-new-comment {
border-width: 0 0 1px;
border-style: none none solid;
margin-top: 6px;
}
#commentsdiv .comments-box { #commentsdiv .comments-box {
border: 0 none; border: 0 none;
} }

File diff suppressed because one or more lines are too long

View File

@ -834,8 +834,7 @@ div.error {
} }
.wrap .add-new-h2, .wrap .add-new-h2,
.wrap .add-new-h2:active, .wrap .add-new-h2:active {
#add-new-comment a {
margin-left: 4px; margin-left: 4px;
padding: 4px 8px; padding: 4px 8px;
position: relative; position: relative;
@ -3458,12 +3457,6 @@ table.fixed {
margin: 0; margin: 0;
} }
#commentsdiv #add-new-comment {
border-width: 0 0 1px;
border-style: none none solid;
margin-top: 6px;
}
#commentsdiv .comments-box { #commentsdiv .comments-box {
border: 0 none; border: 0 none;
} }

File diff suppressed because one or more lines are too long

View File

@ -555,7 +555,7 @@ function post_comment_meta_box( $post ) {
wp_nonce_field( 'get-comments', 'add_comment_nonce', false ); wp_nonce_field( 'get-comments', 'add_comment_nonce', false );
?> ?>
<p class="hide-if-no-js" id="add-new-comment"><a href="#commentstatusdiv" onclick="commentReply.addcomment(<?php echo $post->ID; ?>);return false;"><?php _e('Add comment'); ?></a></p> <p class="hide-if-no-js" id="add-new-comment"><a class="button" href="#commentstatusdiv" onclick="commentReply.addcomment(<?php echo $post->ID; ?>);return false;"><?php _e('Add comment'); ?></a></p>
<?php <?php
$total = get_comments( array( 'post_id' => $post->ID, 'number' => 1, 'count' => true ) ); $total = get_comments( array( 'post_id' => $post->ID, 'number' => 1, 'count' => true ) );