From 0fdd28f5ab113362e5d86cb136bcc0e38ea39510 Mon Sep 17 00:00:00 2001 From: Yukimi Kazari Date: Tue, 6 Jun 2017 15:24:30 -0400 Subject: [PATCH] Updated quality logos and added ultra res icon --- app/assets/stylesheets/application.css | 13 +++++++++++-- app/helpers/PostHelper.php | 9 ++++++++- public/images/ddl.gif | Bin 1208 -> 1200 bytes public/images/ddl_large.gif | Bin 1202 -> 1196 bytes 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index ae77843..c6ba59a 100755 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -1328,6 +1328,10 @@ a.directlink { white-space: nowrap; } +a.extremeimg { + background: #111; +} + a.largeimg { background: #111; } @@ -1344,6 +1348,10 @@ a.largeimg:hover { background-image: none; } +a.extremeimg:hover { + background-image: none; +} + a.directlink > span.directlink-res { display: none; margin: 0; @@ -1375,8 +1383,9 @@ a.directlink:hover > .directlink-info { .has-parent .directlink-icon { display: none; } .flagged .directlink-icon { display: none; } .pending .directlink-icon { display: none; } -.largeimg .directlink-icon-small { display: none; } -.smallimg .directlink-icon-large { display: none; } +.extremeimg .directlink-icon-small .directlink-icon-large { display: none; } +.largeimg .directlink-icon-small .directlink-icon-uhd { display: none; } +.smallimg .directlink-icon-large .directlink-icon-uhd { display: none; } .similar .directlink-icon { display: none; } diff --git a/app/helpers/PostHelper.php b/app/helpers/PostHelper.php index 894873d..bd775bf 100755 --- a/app/helpers/PostHelper.php +++ b/app/helpers/PostHelper.php @@ -80,6 +80,7 @@ class PostHelper extends Rails\ActionView\Helper $directlink_info = ' + @@ -91,7 +92,13 @@ class PostHelper extends Rails\ActionView\Helper $li_class = ""; $ddl_class = "directlink"; - $ddl_class .= ($post->width > 1920 || $post->height > 1500 )? " largeimg":" smallimg"; + + if ($post->width >= 3500 || $post->height >= 2600 ) + $ddl_class .= " extremeimg" + elseif ($post->width >= 1920 || $post->height >= 1500 ) + $ddl_class .= " largeimg" + else + $ddl_class .= " smallimg"; if (!empty($options['similarity'])) { $icon = ''.$post->service().''; diff --git a/public/images/ddl.gif b/public/images/ddl.gif index 04a7e5d05348e4779d8887585770f16506a25ab4..f5a881834c0c48dc1e7132f026615ef006ebdba2 100755 GIT binary patch delta 338 zcmdnNxq)-SR8?c$WCKG(1v4`}LlaXoGeaE(BLhPteFGpe(={})GBvX@GT*pMk&!9b zZ1Q79H3d@xBV%V5OIH&|R~JJ=S91$DCsS7=Lsw@D3r9ycbA!p6OfoP)MiNJ*i%Bq%k_DkVR;G&eP`#M8xAsUo*PFC{a@3aZxym)^}EnZg5^pjh@~`rJibdP{$9Qchz_uvOm5J11}bsW(>635#9?E41!>y75Wl zrXc?r6OV89O5P=N_10OY>DF#Lo1~@po_r#CdtbrMQ>)8d)0ai>-!S96yQ+mpL`Fr2 JL?8o$H2@|ba(4g# delta 346 zcmdnMxr1}UR8=$GWJ6;k1#?S1LsLs53lkj$BLhP-eFGDHLrYylV=EvsG1$0Ek&(k0 zBx9;)I{7Z6T8yQck*letiL<%6qm!YbtC^FDfq|>5iIJg^o3o{}p_!6GMQ(wwua!%F za%paAUWuoRtrAc~FC{a@3aZxym)^v*lK|?v39C?`jq(mOYuys#?%>_SCA>?xbZkRppyz@8;Wbw8Ht$BJtl(gF0?~ z@+`UNX7tpxYl(0E>SdE(YPTJZ(>Sd4P^~>A>E;Ww;9XbqYdn{8uiQMnLN_%0h)YC9 NMaPU4KLQvStN}eNbx{BS diff --git a/public/images/ddl_large.gif b/public/images/ddl_large.gif index 97c04236d96d54677476c087204d7c90b82d511f..0809c1be246fa756327f3ced81984aef8b779cb1 100755 GIT binary patch delta 322 zcmdnQxrTGXR8?c$WCKG(1v4`}LlaXoGeaE(BLhPteFGpe(={})GBvX@GT*pMk&!9b zZ1Q79H3dU+H%D_9GdB}QR~JJ=S92!|b2ArnbD&;J6E{aoi^-ZyGEhb41~?U^G8x1` zO>)7dNJ*i%Bq%k_DkVR;G&eP`#M8xAsUo*PFC{a@3aZx?m)^}EnUWdf3>h+{*XJln z^gK#TI9&S8D4VWa=WnN58&{BQGE=9+Gee07QA rTS~j1N5F~Gs)s`_Svr5yym|Ik_&UC&ozd_9@=It~c>D-wV6X-NWe8=< delta 328 zcmZ3(xruYaR8=$GWJ6;k1#?S1LsLs53lkj$BLhP-eFGDHLrYylV=EvsG1$0Ek&(k0 zBx9;)I{7Z6T8yQek&&s3xq-R4qm!YbtC^#*iL