updated map delete sprite

This commit is contained in:
Connor Turland 2014-11-26 10:51:05 -05:00
parent d08774d8bc
commit dbf4152a81
5 changed files with 16 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B

View file

@ -1884,9 +1884,21 @@ and it won't be important on password protected instances */
display: none; display: none;
} }
.mapInfoDelete { .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-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 */ /* only display delete button if it's a map you created */
.yourMap .mapInfoDelete { .yourMap .mapInfoDelete {

View file

@ -35,6 +35,7 @@
<p class="mapEditedAt"><span>Last edited:</span> {{updated_at}}</p> <p class="mapEditedAt"><span>Last edited:</span> {{updated_at}}</p>
<div class="mapInfoButtonsWrapper"> <div class="mapInfoButtonsWrapper">
<div class="mapInfoDelete"> <div class="mapInfoDelete">
<div class="deleteMap"></div>
<span>Delete</span> <span>Delete</span>
</div> </div>
<div class="mapInfoShare"> <div class="mapInfoShare">

View file

@ -51,6 +51,7 @@
<p class="mapEditedAt"><span>Last edited:</span> <%= @map.updated_at.strftime("%m/%d/%Y") %></p> <p class="mapEditedAt"><span>Last edited:</span> <%= @map.updated_at.strftime("%m/%d/%Y") %></p>
<div class="mapInfoButtonsWrapper"> <div class="mapInfoButtonsWrapper">
<div class="mapInfoDelete"> <div class="mapInfoDelete">
<div class="deleteMap"></div>
<span>Delete</span> <span>Delete</span>
</div> </div>
<div class="mapInfoShare"> <div class="mapInfoShare">