From 5eed326900111d0a8e4684c8d54682e755b26840 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Wed, 11 Jan 2017 18:44:04 -0500 Subject: [PATCH] fight with styling to make the button at least appear --- app/assets/stylesheets/application.scss.erb | 20 ++++++++++++++++++++ app/views/layouts/_templates.html.erb | 2 +- app/views/maps/_mapinfobox.html.erb | 4 ++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/application.scss.erb b/app/assets/stylesheets/application.scss.erb index 32c2097f..6788129e 100644 --- a/app/assets/stylesheets/application.scss.erb +++ b/app/assets/stylesheets/application.scss.erb @@ -2052,6 +2052,26 @@ and it won't be important on password protected instances */ .yourMap .mapInfoDelete { display: block; } + +.mapInfoButtonsWrapper .mapInfoThumbnail { + display: block; + background-image: url(<%= asset_path('screenshot_sprite.png') %>); + width: 32px; + height: 32px; + + .tooltip { + display: none; + } + + &:hover { + background-position: -32px 0; + + .tooltip { + display: block; + } + } +} + .mapInfoButtonsWrapper span { position: absolute; width: 100%; diff --git a/app/views/layouts/_templates.html.erb b/app/views/layouts/_templates.html.erb index 4c1e3a91..22870fe6 100644 --- a/app/views/layouts/_templates.html.erb +++ b/app/views/layouts/_templates.html.erb @@ -36,7 +36,7 @@
- Update Thumbnail +
Update Thumbnail
diff --git a/app/views/maps/_mapinfobox.html.erb b/app/views/maps/_mapinfobox.html.erb index 8e6b2dba..55076891 100644 --- a/app/views/maps/_mapinfobox.html.erb +++ b/app/views/maps/_mapinfobox.html.erb @@ -77,6 +77,10 @@

Created by: <%= @map.user == user ? "You" : @map.user.name %> on <%= @map.created_at.strftime("%m/%d/%Y") %>

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

+
+
+
Update Thumbnail
+
Delete