improve user trophies
This commit is contained in:
parent
33bb2df9d5
commit
c6038b99f7
|
@ -33,7 +33,9 @@ evenMoreJs = evenMoreJs) {
|
||||||
<div class="content_box no_padding user_show">
|
<div class="content_box no_padding user_show">
|
||||||
<div class="content_box_top">
|
<div class="content_box_top">
|
||||||
@if(info.rank.map(_._1).exists(1==)) {
|
@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 {
|
} else {
|
||||||
@if(info.rank.exists(r => r._1 < r._2 / 100)) {
|
@if(info.rank.exists(r => r._1 < r._2 / 100)) {
|
||||||
<span class="trophy hint--left" data-hint="Top 1% player">
|
<span class="trophy hint--left" data-hint="Top 1% player">
|
||||||
|
|
|
@ -15,13 +15,9 @@ div.user_show div.content_box_top > span strong {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
div.user_show div.content_box_top > .best,
|
|
||||||
div.user_show div.content_box_top > .trophy {
|
div.user_show div.content_box_top > .trophy {
|
||||||
float: right;
|
float: right;
|
||||||
margin-top: -30px;
|
margin-top: -30px;
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
div.user_show div.content_box_top > .trophy {
|
|
||||||
margin-right: -10px;
|
margin-right: -10px;
|
||||||
}
|
}
|
||||||
div.user_show .title {
|
div.user_show .title {
|
||||||
|
|
Loading…
Reference in a new issue