mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed show more appearance
This commit is contained in:
parent
c9d45d97dc
commit
b38e9d2f1d
2 changed files with 27 additions and 5 deletions
|
@ -56,6 +56,10 @@ const NodeComments: FC<IProps> = memo(
|
|||
'комментариев'
|
||||
)}
|
||||
{comments_left > COMMENTS_DISPLAY ? ` из ${comments_left} оставшихся` : ''}
|
||||
<div
|
||||
className={styles.bar}
|
||||
style={{ width: `${(comments_left / comment_count) * 100}%` }}
|
||||
/>
|
||||
</div>
|
||||
),
|
||||
[comments_left, onLoadMore, COMMENTS_DISPLAY]
|
||||
|
|
|
@ -15,16 +15,34 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: darken($comment_bg, 8%);
|
||||
border-radius: $radius;
|
||||
text-transform: uppercase;
|
||||
color: darken(white, 50%);
|
||||
font: $font_14_regular;
|
||||
color: darken(white, 60%);
|
||||
font: $font_14_medium;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.25s;
|
||||
transition: all 0.25s;
|
||||
user-select: none;
|
||||
background: url('~/sprites/stripes.svg');
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten($comment_bg, 4%);
|
||||
color: $wisegreen;
|
||||
background-color: darken($wisegreen, 12%);
|
||||
|
||||
.bar {
|
||||
background: $wisegreen;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bar {
|
||||
position: absolute;
|
||||
height: 2px;
|
||||
border-radius: 2px;
|
||||
background: darken(white, 60%);
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 0);
|
||||
width: 50%;
|
||||
transition: width 0.25s;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue