ui enhancements

This commit is contained in:
Jakub Senderák
2020-04-25 19:59:20 +02:00
parent 889f787f29
commit 2281e030f6
2 changed files with 54 additions and 42 deletions
+15 -3
View File
@@ -1,10 +1,8 @@
#header { #header {
display: flex; display: flex;
max-width: 600px;
} }
#header>div { #header>div {
flex: 1;
padding: 10px; padding: 10px;
border: 2px solid grey; border: 2px solid grey;
} }
@@ -31,9 +29,23 @@
} }
#points_summary_row { #points_summary_row {
border-top: 1px solid black; border-top: 4px double black;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
.active_player_highlight {
background: grey;
color: white;
}
.player_name_highlight {
background: grey;
color: white;
}
.standings_round_final_row {
border-bottom: 1px solid black;
}
+6 -6
View File
@@ -20,9 +20,11 @@
{% if 'active_player' not in status %} {% if 'active_player' not in status %}
<h1>Hra sa skončila.</h1> <h1>Hra sa skončila.</h1>
{% else %} {% else %}
<div id="wrapper">
<div id="table">
<div id="header"> <div id="header">
<div> <div {% if player == status['active_player'] %}class="active_player_highlight"{% endif %}>
<p id="active_player">Na ťahu je: {{ players[status['active_player']] }}</p> <p id="active_player" >Na ťahu je: {{ players[status['active_player']] }}</p>
</div> </div>
<div id="active_round_guesses"> <div id="active_round_guesses">
@@ -56,10 +58,8 @@
</div> </div>
</div> </div>
<hr> <hr>
<div id="wrapper">
<div id="table">
{% if action == 'guess' %} {% if action == 'guess' %}
<h1>Zadaj tip:</h1> <h1>Zadaj tip:</h1>
{% include "_guess_form.html" %} {% include "_guess_form.html" %}
@@ -155,7 +155,7 @@
{% if series %} {% if series %}
{% for round in series %} {% for round in series %}
{% if round %} {% if round %}
<tr> <tr {% if loop.index == 7 %}class="standings_round_final_row"{% endif %} >
{% for player in round %} {% for player in round %}
<td class="points">{{ player }}</td> <td class="points">{{ player }}</td>
{% endfor %} {% endfor %}