Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 922c666

Browse files
committed
Adding tooltip for dashboard SRM badge
1 parent 46ade1b commit 922c666

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

app/directives/page-state-header/page-state-header.jade

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
.title
1818
p Won in Prizes
1919
.badgeItem(ng-if="vm.dashboardAchievement")
20-
.dashboardBadge(title='{{vm.dashboardBadgeName}}')
21-
20+
.dashboardBadge
21+
img( width=200 alt='{{vm.dashboardBadgeName}}' height=200 src=require("../../../assets/images/badge.svg"))

assets/css/directives/badge-tooltip.scss

+16-2
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,22 @@ span.subBadge.selected {
680680
}
681681

682682
.dashboardBadge {
683-
background: url(../../images/badge05-70x70.png) no-repeat;
683+
background: url(../../images/badge.svg) no-repeat;
684684
width: 70px;
685685
height: 70px;
686+
img {
687+
display: none;
688+
}
686689
}
687-
690+
691+
.dashboardBadge:hover img {
692+
display: block;
693+
position: absolute;
694+
top: 55px;
695+
left: -110px;;
696+
z-index: 1000;
697+
width: auto;
698+
overflow: hidden;
699+
padding: 8px;
700+
background: transparent;
701+
}

assets/images/badge05-70x70.png

-24.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)