Style the Add Comment button as a button. Fixes #26500, props SergeyBiryukov.
git-svn-id: https://develop.svn.wordpress.org/trunk@26834 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1bc3fe3a25
commit
fc676240c9
@ -383,13 +383,11 @@ h3 {
|
||||
}
|
||||
|
||||
.wrap .add-new-h2,
|
||||
.wrap .add-new-h2:active,
|
||||
#add-new-comment a {
|
||||
.wrap .add-new-h2:active {
|
||||
background: #e0e0e0;
|
||||
}
|
||||
|
||||
.wrap .add-new-h2:hover,
|
||||
#add-new-comment a:hover {
|
||||
.wrap .add-new-h2:hover {
|
||||
background: #2ea2cc;
|
||||
color: #fff;
|
||||
}
|
||||
@ -439,8 +437,7 @@ h3 {
|
||||
border-color: #c00 !important;
|
||||
}
|
||||
|
||||
.submit,
|
||||
#commentsdiv #add-new-comment {
|
||||
.submit {
|
||||
border: none;
|
||||
}
|
||||
|
||||
|
@ -834,8 +834,7 @@ div.error {
|
||||
}
|
||||
|
||||
.wrap .add-new-h2,
|
||||
.wrap .add-new-h2:active,
|
||||
#add-new-comment a {
|
||||
.wrap .add-new-h2:active {
|
||||
margin-left: 4px;
|
||||
padding: 4px 8px;
|
||||
position: relative;
|
||||
@ -3458,12 +3457,6 @@ table.fixed {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#commentsdiv #add-new-comment {
|
||||
border-width: 0 0 1px;
|
||||
border-style: none none solid;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
#commentsdiv .comments-box {
|
||||
border: 0 none;
|
||||
}
|
||||
|
@ -555,7 +555,7 @@ function post_comment_meta_box( $post ) {
|
||||
|
||||
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
|
||||
|
||||
$total = get_comments( array( 'post_id' => $post->ID, 'number' => 1, 'count' => true ) );
|
||||
|
Loading…
Reference in New Issue
Block a user