Skip to content

Commit

Permalink
ui: optimize reward author button style
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Sep 25, 2023
1 parent 72157d9 commit 5c6a041
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 4 additions & 3 deletions layout/_partial/post/reward-author.ejs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<div class="reward-author-container border-box flex-center">
<button class="keep-button border-box tooltip-img"
<button class="keep-button border-box flex-center reward-btn tooltip tooltip-img"
data-tooltip-content="<%= theme?.post?.reward?.text || __('post.reward') %>"
data-tooltip-img-url="<%= theme?.post?.reward?.img_link %>"
data-tooltip-img-trigger="hover"
data-tooltip-img-trigger="click"
data-tooltip-img-style="top: -8px;"
>
<i class="fa-solid fa-hand-holding-heart"></i>&nbsp;<%= theme?.post?.reward?.text || __('post.reward') %>
<i class="fa-solid fa-hand-holding-heart"></i>
</button>
</div>
11 changes: 11 additions & 0 deletions source/css/layout/_partial/post/reward-author.styl
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,15 @@
}
}
}


.reward-btn {
width 2.6rem
height 2.6rem
border-radius 50%

i {
font-size 1rem
}
}
}

0 comments on commit 5c6a041

Please sign in to comment.