improve user trophies

This commit is contained in:
Thibault Duplessis 2014-05-25 13:03:16 +02:00
parent 33bb2df9d5
commit c6038b99f7
2 changed files with 3 additions and 5 deletions

View file

@ -33,7 +33,9 @@ evenMoreJs = evenMoreJs) {
<div class="content_box no_padding user_show">
<div class="content_box_top">
@if(info.rank.map(_._1).exists(1==)) {
<img class="best" src="@staticUrl("images/best64.png")" width=64 height=64 title="Best player" />
<span class="trophy hint--left" data-hint="Lichess champion">
<img src="@staticUrl("images/best64.png")" width=64 height=64 />
</span>
} else {
@if(info.rank.exists(r => r._1 < r._2 / 100)) {
<span class="trophy hint--left" data-hint="Top 1% player">

View file

@ -15,13 +15,9 @@ div.user_show div.content_box_top > span strong {
font-weight: normal;
color: #666;
}
div.user_show div.content_box_top > .best,
div.user_show div.content_box_top > .trophy {
float: right;
margin-top: -30px;
margin-right: 10px;
}
div.user_show div.content_box_top > .trophy {
margin-right: -10px;
}
div.user_show .title {