Skip to content

Commit

Permalink
chore(post): optimize comments anchor setting
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Sep 12, 2023
1 parent fee8375 commit 8a4a8ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
5 changes: 2 additions & 3 deletions layout/_partial/comment/comment.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ const {
%>
<% if (theme_comment_enable === true && theme_comment_use) { %>
<div class="comments-container">
<div id="comments-anchor"></div>
<div class="comment-area-title">
<div class="comments-container border-box">
<div id="comments-anchor" class="comment-area-title border-box">
<i class="fas fa-comments"></i>&nbsp;<%- __('comments') %>
</div>
<% if (theme_comment_use === 'valine') { %>
Expand Down
9 changes: 1 addition & 8 deletions source/css/layout/_partial/comment/comment.styl
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,17 @@ if (hexo-config('comment') && hexo-config('comment.enable') == true && hexo-conf
width 100%
margin-top $component-spacing-value

#comments-anchor {
width 100%
height 0.8rem
}


.comment-area-title {
width 100%
margin 0.8rem 0
color var(--text-color-3)
font-size 1.38rem
line-height 2

i {
color var(--text-color-3)
}

+keep-tablet() {
margin 0.4rem 0
font-size 1.2rem
}
}
Expand Down

0 comments on commit 8a4a8ce

Please sign in to comment.