From 313225e63466e24b4620455e0cfed8b5e01a74ba Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sat, 9 Oct 2021 11:22:08 +0300 Subject: [PATCH] Wall: New pin icon instead of X icon on Pin/Unpin action --- .../templates/components/post/microblogpost.xml | 4 ++-- Web/static/css/microblog.css | 15 +++++++++++++++ Web/static/img/pin.png | Bin 0 -> 813 bytes 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 Web/static/img/pin.png diff --git a/Web/Presenters/templates/components/post/microblogpost.xml b/Web/Presenters/templates/components/post/microblogpost.xml index 6f29a281..52e0b7ca 100644 --- a/Web/Presenters/templates/components/post/microblogpost.xml +++ b/Web/Presenters/templates/components/post/microblogpost.xml @@ -33,9 +33,9 @@ {if $post->canBePinnedBy($thisUser) && !($forceNoPinLink ?? false) && !isset($compact)} {if $post->isPinned()} - + {else} - + {/if} {/if} diff --git a/Web/static/css/microblog.css b/Web/static/css/microblog.css index e691c043..42670864 100644 --- a/Web/static/css/microblog.css +++ b/Web/static/css/microblog.css @@ -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; +} diff --git a/Web/static/img/pin.png b/Web/static/img/pin.png new file mode 100644 index 0000000000000000000000000000000000000000..055e4db7b2150de629f28a794653c50e1bc1f4d3 GIT binary patch literal 813 zcmV+|1JeA7P)KLZ*U+R`sCEkzKl)gj5&q@hY_5?)@_euSf22N!q0z{yc?Q2YY_Kym8e z5Fvwu2%hQO!{u_psMvL#(bD64NQRTZj^-}DnS22ry9f-;mW=gZvQj}U-ZdMsK&I8^7~DvX`q=iU=(A% zjG0it-zA7roC1I#N^Ehm&&joz5_MV%LI?mrtD!6$@HY#h6bArWy{S+vn?1aBuAyF+ z0RRo9P!vW0XaHb6JpPAw4zJE*XE(=ut2yZAEZ39*jd~puL`kk1Du@!Ct>%NPyCi2d zH9gIa`3{2oX1763_Ln=Ew*vYNjzohMgD18W`#6na3yqC9)sIj)9 ru!YFXU|V$SD5(wvQDOjO_3nEBe&UzU7q~=f00000NkvXXu0mjf=onqA literal 0 HcmV?d00001