Fix things and more styling
This commit is contained in:
parent
fc63a06af7
commit
385ac94bf5
|
@ -38,40 +38,40 @@
|
|||
@tournamentLink(t)
|
||||
<br /><br />
|
||||
}
|
||||
<div class="swords" data-icon="U"></div>
|
||||
<div class="players">
|
||||
@if(opponent.color.name == "white") {
|
||||
@List(opponent, player).map { p =>
|
||||
<div class="player">
|
||||
@playerLink(p, withOnline = false, withDiff = true)
|
||||
</div>
|
||||
}
|
||||
} else {
|
||||
@List(player, opponent).map { p =>
|
||||
<div class="player">
|
||||
@playerLink(p, withOnline = false, withDiff = true)
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
</div>
|
||||
@if(game.finishedOrAborted) {
|
||||
<div class="status">
|
||||
@gameEndStatus(game),
|
||||
@game.winner.map { winner =>
|
||||
@winner.color.fold(trans.whiteIsVictorious(), trans.blackIsVictorious())
|
||||
}
|
||||
<div class="swords" data-icon="U"></div>
|
||||
<div class="players">
|
||||
@if(opponent.color.name == "white") {
|
||||
@List(opponent, player).map { p =>
|
||||
<div class="player">
|
||||
@playerLink(p, withOnline = false, withDiff = true)
|
||||
</div>
|
||||
}
|
||||
@if(game.variant.threeCheck) {
|
||||
<div class="check_count" data-icon="@lila.rating.PerfType("threeCheck").map(_.iconChar)">
|
||||
Checks given:
|
||||
@* Note that they are stored the other way round, as checks received *@
|
||||
<span class="player color white">@game.checkCount.black</span>
|
||||
<span class="player color black">@game.checkCount.white</span>
|
||||
} else {
|
||||
@List(player, opponent).map { p =>
|
||||
<div class="player">
|
||||
@playerLink(p, withOnline = false, withDiff = true)
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
</div>
|
||||
@if(game.finishedOrAborted) {
|
||||
<div class="status">
|
||||
@gameEndStatus(game),
|
||||
@game.winner.map { winner =>
|
||||
@winner.color.fold(trans.whiteIsVictorious(), trans.blackIsVictorious())
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@if(game.variant.threeCheck) {
|
||||
<div class="check_count" data-icon="@lila.rating.PerfType("threeCheck").map(_.iconChar)">
|
||||
Checks given:
|
||||
@* Note that they are stored the other way round, as checks received *@
|
||||
<span class="player color white">@game.checkCount.black</span>
|
||||
<span class="player color black">@game.checkCount.white</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@userTv.map { u =>
|
||||
|
|
|
@ -1325,7 +1325,7 @@ div.under_chat .watchtv {
|
|||
z-index: 1;
|
||||
}
|
||||
#chat .messages {
|
||||
height: 350px;
|
||||
height: 305px;
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
|
|
@ -802,6 +802,8 @@ div.side_box div.header strong{
|
|||
}
|
||||
div.side_box div.infos {
|
||||
padding-left: 35px;
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
div.side_box div.infos::before{
|
||||
position: absolute;
|
||||
|
@ -811,17 +813,15 @@ div.side_box div.infos::before{
|
|||
opacity: 0.7;
|
||||
}
|
||||
div.side_box div.players {
|
||||
margin-left: -10px;
|
||||
margin-left: 22px;
|
||||
margin-top: -26px;
|
||||
}
|
||||
div.side_box div.swords {
|
||||
font-size: 15px;
|
||||
margin-left: -35px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
div.side_box div.status {
|
||||
text-align: center;
|
||||
margin-left: -35px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.player.color {
|
||||
|
|
|
@ -122,7 +122,8 @@ body.dark #top div.auth .sep,
|
|||
body.dark div.doc_box h2,
|
||||
body.dark div.training div.box,
|
||||
body.dark div.force_resign_zone,
|
||||
body.dark div.negotiation {
|
||||
body.dark div.negotiation,
|
||||
body.dark div.side_box div.infos {
|
||||
border-color: #3d3d3d;
|
||||
}
|
||||
body.dark .crosstable td.last {
|
||||
|
|
Loading…
Reference in a new issue