mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
[Client] Better design
This commit is contained in:
parent
18901dd9a3
commit
28599e848a
@ -1,7 +1,7 @@
|
|||||||
<mk-poll data-is-voted={ isVoted }>
|
<mk-poll data-is-voted={ isVoted }>
|
||||||
<ul>
|
<ul>
|
||||||
<li each={ poll.choices } onclick={ vote.bind(null, id) } class={ voted: voted } title={ !parent.isVoted ? '「' + text + '」に投票する' : '' }>
|
<li each={ poll.choices } onclick={ vote.bind(null, id) } class={ voted: voted } title={ !parent.isVoted ? '「' + text + '」に投票する' : '' }>
|
||||||
<div class="backdrop" if={ parent.result } style={ 'width:' + (votes / parent.total * 100) + '%' }></div>
|
<div class="backdrop" style={ 'width:' + (parent.result ? (votes / parent.total * 100) : 0) + '%' }></div>
|
||||||
<span>
|
<span>
|
||||||
<i class="fa fa-check" if={ is_voted }></i>
|
<i class="fa fa-check" if={ is_voted }></i>
|
||||||
{ text }
|
{ text }
|
||||||
@ -47,6 +47,7 @@
|
|||||||
left 0
|
left 0
|
||||||
height 100%
|
height 100%
|
||||||
background $theme-color
|
background $theme-color
|
||||||
|
transition width 1s ease
|
||||||
|
|
||||||
> .votes
|
> .votes
|
||||||
margin-left 4px
|
margin-left 4px
|
||||||
|
Loading…
Reference in New Issue
Block a user