From dbf4152a8151c01dbf79585f4c810dee86dbf825 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 26 Nov 2014 10:51:05 -0500 Subject: [PATCH] updated map delete sprite --- app/assets/images/delete_mapinfo.png | Bin 348 -> 0 bytes app/assets/images/remove_mapinfo_sprite.png | Bin 0 -> 438 bytes app/assets/stylesheets/application.css | 16 ++++++++++++++-- app/views/layouts/_templates.html.erb | 1 + app/views/maps/_mapinfobox.html.erb | 1 + 5 files changed, 16 insertions(+), 2 deletions(-) delete mode 100644 app/assets/images/delete_mapinfo.png create mode 100644 app/assets/images/remove_mapinfo_sprite.png diff --git a/app/assets/images/delete_mapinfo.png b/app/assets/images/delete_mapinfo.png deleted file mode 100644 index e6316c2e749ed450b5ce08e72e0d8d27ad5af9d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 348 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP*AeO zHKHUqKdq!Zu_%?nF(p4KRlzeiF+DXXH8G{K@MNkDP|-_I7srr_TT6lu@-`drm~@EG zUw47`1lwDV90xaVvlkqx%^MuUUoh``$!e*w!;^KDs&?RqxwQ|2D&K4Nrbe1fn_zzH zc!x>u?O9(obg?kRZM2yn`?rttX7h`!f(&am)GO(i=-fMD?Gba9{Ta)Q9c5F4Hb3+0 z$uL$peLty$G5T}s(uW4K#8jr8pR?lXRh#p6*L4{#B+44!*V#b7wv?P7^~+ea7FQ;05MrM3!lnGcq4;UXLbT!*rBz?z)c$@u so@3s#kIR(jI=_8q`1kW1dnO(R=C;!5Q>vWWfSzXXboFyt=akR{01#D(>Hq)$ diff --git a/app/assets/images/remove_mapinfo_sprite.png b/app/assets/images/remove_mapinfo_sprite.png new file mode 100644 index 0000000000000000000000000000000000000000..ba7f4b81253a2331215a9003e9477d88b95624ea GIT binary patch literal 438 zcmV;n0ZIOeP)3_j=%_I1KtRopfDNj1aE}L24#fY;qWe;=^tdOVB)CI1C}fx z@X7Y?;207%3`2>_4PJ;>4g8U&>762Gt&Q?omMwVW1>vJvBw7x>i$@Y|!VC2VnE2b;d*00(?s+XFa$XAP&hq*aS6$c9H+;ey zX3--^TQTs4d94-S-a`Me1$9*?wPlwSQx_VNjDGACIc7!=xJlKY2|o9SEm g#bI>har_cs0L${m=pG?8tpET307*qoM6N<$f@yBLl>h($ literal 0 HcmV?d00001 diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 893c67d3..87ac9456 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -1884,9 +1884,21 @@ and it won't be important on password protected instances */ display: none; } .mapInfoDelete { - background-image: url(delete_mapinfo.png); + color: #E0E0E0; +} +.mapInfoDelete .deleteMap { + width: 16px; + height: 16px; + margin: 8px auto 0; + background-image: url(remove_mapinfo_sprite.png); background-repeat: no-repeat; - background-position: center 8px; + background-position: -16px 0; +} +.mapInfoDelete:hover { + color: #F5F5F5; +} +.mapInfoDelete:hover .deleteMap { + background-position: 0 0; } /* only display delete button if it's a map you created */ .yourMap .mapInfoDelete { diff --git a/app/views/layouts/_templates.html.erb b/app/views/layouts/_templates.html.erb index 9c7549d2..372740e7 100644 --- a/app/views/layouts/_templates.html.erb +++ b/app/views/layouts/_templates.html.erb @@ -35,6 +35,7 @@

Last edited: {{updated_at}}

+
Delete
diff --git a/app/views/maps/_mapinfobox.html.erb b/app/views/maps/_mapinfobox.html.erb index 7528c31e..c6b3b3c9 100644 --- a/app/views/maps/_mapinfobox.html.erb +++ b/app/views/maps/_mapinfobox.html.erb @@ -51,6 +51,7 @@

Last edited: <%= @map.updated_at.strftime("%m/%d/%Y") %>

+
Delete