Skip to content

Commit

Permalink
コメントの返信ボタンのアイコンフォントの余白をCSSでスタイリング
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Oct 25, 2023
1 parent edb738b commit 96b011f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
3 changes: 3 additions & 0 deletions amp.css
Expand Up @@ -5932,6 +5932,9 @@ figcaption {
display: inline;
padding: 5px 8px;
}
.comment-reply-link .comment-icon {
margin-right: 3px;
}

.comment-page-link {
text-align: center;
Expand Down
6 changes: 6 additions & 0 deletions css/admin.css
Expand Up @@ -5711,6 +5711,9 @@ body.wp-admin {
display: inline;
padding: 5px 8px;
}
.admin-settings .demo .comment-reply-link .comment-icon {
margin-right: 3px;
}
.admin-settings .demo .comment-page-link {
text-align: center;
}
Expand Down Expand Up @@ -13671,6 +13674,9 @@ body.wp-admin {
display: inline;
padding: 5px 8px;
}
.admin-settings .demo .comment-reply-link .comment-icon {
margin-right: 3px;
}
.admin-settings .demo .comment-page-link {
text-align: center;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/comments.php
Expand Up @@ -135,7 +135,7 @@ function simple_thread_comment_custom_callback($comment, $args, $depth) {
add_filter( 'comment_reply_link', 'comment_reply_link_custom' );
if ( !function_exists( 'comment_reply_link_custom' ) ):
function comment_reply_link_custom($tag){
$tag = preg_replace('#<a .+?>#', '$0<span class="fa fa-comment-o"></span> ', $tag);
$tag = preg_replace('#<a .+?>#', '$0<span class="fa fa-comment-o comment-icon"></span>', $tag);
return $tag;
}
endif;
6 changes: 3 additions & 3 deletions scss/_comments.scss
Expand Up @@ -77,9 +77,9 @@
font-size: 14px;
display: inline;
padding: 5px 8px;
// &:before{
// content: '\f0e5';
// }
.comment-icon{
margin-right: 3px;
}
}

//コメントのページネーション
Expand Down
3 changes: 3 additions & 0 deletions style.css
Expand Up @@ -5957,6 +5957,9 @@ figcaption {
display: inline;
padding: 5px 8px;
}
.comment-reply-link .comment-icon {
margin-right: 3px;
}

.comment-page-link {
text-align: center;
Expand Down

0 comments on commit 96b011f

Please sign in to comment.