added tooltip in search results for map

This commit is contained in:
Bashar Jabbour 2014-11-22 23:05:31 -05:00
parent 13118d0ea9
commit b077dd6010
2 changed files with 13 additions and 7 deletions

View file

@ -237,6 +237,11 @@
margin-left: 5px;
}
.mapContributorsIcon li span {
margin-left: 10px;
}
.searchHeader {
height: 42px;
width: 100%;
@ -483,7 +488,7 @@
}
.sidebarSearch .topicOriginatorIcon .tip {
margin-right: -147px;
margin-right: -120px;
top: 1px;
}
.sidebarSearch .tip {
@ -506,9 +511,10 @@
}
.sidebarSearch .mapContributorsIcon .tip {
margin-right: -144px;
top: -11px;
padding-top: 3px;
margin-right: -120px;
top: -5px;
padding-top: 5px;
padding-bottom: 5px;
}
.sidebarSearch .hoverForTip .tip li {
@ -518,7 +524,7 @@
.tipUserImage {
position: absolute;
top: 4px;
top: 0px;
left: 7px;
border-radius: 14px;
}
@ -534,7 +540,7 @@
}
.sidebarSearch .mapContributorsIcon .tip:before {
top: 71px;
top: 65px;
left: -4px;
margin-top: -53px;
}

View file

@ -34,7 +34,7 @@ module MapsHelper
m.contributors.each_with_index do |c, index|
userImage = c.image.url(:square)
name = c.name
contributorTip += '<li> <img class="rtUserImage" width="25" height="25" src=' + userImage + ' />' + name + '</li>'
contributorTip += '<li> <img class="tipUserImage" width="25" height="25" src=' + userImage + ' />' + '<span>' + name + '</span> </li>'
end
end
map['contributorTip'] = contributorTip