Commit 610b1630 authored by Lukas Burgey's avatar Lukas Burgey

Change look of stats

parent 8c2bf0bc
/* table stuff */
/* generic styles */
td, th {
text-align: center
}
......@@ -46,7 +45,15 @@ th {
border-top: none;
}
<<<<<<< Updated upstream
/*
=======
td table td {
border-top: none;
padding: 3px;
}
>>>>>>> Stashed changes
.table-hidden>tbody>tr:first-child>td {
font-weight: bold;
}
......@@ -92,4 +99,50 @@ th {
display: block;
}
.table>thead>tr>td {
font-weight: bold;
}
/* styles for mobile */
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
padding: 8px 3px;
font-size: 80%;
}
.well {
padding: 8px;
text-align: center;
}
@media only screen and (orientation: landscape) {
.limit-growth {
margin: 0 auto;
width: 300px;
height: 300px;
}
}
/* styles for desktop */
@media only screen and (min-width: 768px) {
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
padding: 8px 8px;
font-size: 100%;
}
.well {
padding: 19px;
}
}
......@@ -46,13 +46,17 @@
<div class="col-md-6">
<div class="well">
<h5 class="chart-heading">Game endings: {{ win_percentage|floatformat:-2 }}% won</h5>
<div class="limit-growth">
<canvas id="chart1"></canvas>
</div>
</div>
</div>
<div class="col-md-6">
<div class="well">
<h5 class="chart-heading">Game count per type</h5>
<canvas id="chart0"></canvas>
<div class="limit-growth">
<canvas id="chart0"></canvas>
</div>
</div>
</div>
<div class="col-md-12">
......@@ -70,13 +74,12 @@
<tbody>
<tr>
{% for row in best_player_per_type %}
<td style="padding: 0px 0px;">
<table class="table table-compressed">
<td>
<table class="table">
{% for player in row.player_list %}
<tr>
<td>{{ player.win_ratio|floatformat:-2}}</td>
<td>{{ player.player }}</td>
<td>{{ player.game_count }}</td>
</tr>
{% endfor %}
</table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment