mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Wall: New pin icon instead of X icon on Pin/Unpin action
This commit is contained in:
parent
d52125ac7e
commit
313225e634
3 changed files with 17 additions and 2 deletions
|
@ -33,9 +33,9 @@
|
|||
|
||||
{if $post->canBePinnedBy($thisUser) && !($forceNoPinLink ?? false) && !isset($compact)}
|
||||
{if $post->isPinned()}
|
||||
<a class="delete" href="/wall{$post->getPrettyId()}/pin?act=unpin&hash={rawurlencode($csrfToken)}"></a>
|
||||
<a class="pin" href="/wall{$post->getPrettyId()}/pin?act=unpin&hash={rawurlencode($csrfToken)}"></a>
|
||||
{else}
|
||||
<a class="delete" href="/wall{$post->getPrettyId()}/pin?act=pin&hash={rawurlencode($csrfToken)}"></a>
|
||||
<a class="pin" href="/wall{$post->getPrettyId()}/pin?act=pin&hash={rawurlencode($csrfToken)}"></a>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
|
|
@ -62,3 +62,18 @@
|
|||
.post-author .delete:hover {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.post-author .pin {
|
||||
float: right;
|
||||
display: inline-block;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
overflow: auto;
|
||||
background: url("/assets/packages/static/openvk/img/pin.png") no-repeat 0px 0px;
|
||||
opacity: 0.1;
|
||||
transition-duration: 0.3s;
|
||||
}
|
||||
|
||||
.post-author .pin:hover {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
|
BIN
Web/static/img/pin.png
Normal file
BIN
Web/static/img/pin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 813 B |
Loading…
Reference in a new issue