diff --git a/assets/css/stats.css b/assets/css/stats.css index 8ff3d49..9bef0ca 100755 --- a/assets/css/stats.css +++ b/assets/css/stats.css @@ -1,19 +1,65 @@ #stats-container { - display: inline-flex; + display: block; width: 100%; } .stats-table { - width: 48%; + width: 100%; border: none; - margin: 1% 1% 1% 1%; } -.stats-table th{ + +.stats-table tr:nth-child(even) { + background-color: #2d2d2d; +} + +.stats-table.stats-usa tr:hover { + background-color: #284550; +} + +.stats-table.stats-urss tr:hover { + background-color: #620f12; +} + +.stats-toggle, .edit-stats th { border-radius: 10px 10px 0 0; + font-size: 20px; font-family: 'Russo One', sans-serif; + color: #fff; + cursor: pointer; } +.stats-toggle#toggle-usa, .edit-stats.stats-usa th { + background-color: #1a5dad; + border-color: #1a5dad; + -webkit-transition: 0.3s; + -moz-transition: 0.3s; + -ms-transition: 0.3s; + -o-transition: 0.3s; + transition: 0.3s; +} + +.stats-toggle#toggle-usa:hover { + background-color: #1f6fce; + border-color: #1f6fce; + box-shadow: 0 0 10px #1f6fce; +} + +.stats-toggle#toggle-urss, .edit-stats.stats-urss th { + background-color: #d72229; + border-color: #d72229; + -webkit-transition: 0.3s; + -moz-transition: 0.3s; + -ms-transition: 0.3s; + -o-transition: 0.3s; + transition: 0.3s; +} + +.stats-toggle#toggle-urss:hover { + background-color: #ee262d; + border-color: #ee262d; + box-shadow: 0 0 10px #ee262d; +} .stats-table .stat-log, .stats-table .stat-points { color: #1c1c1c; @@ -21,32 +67,23 @@ font-weight: bold; } -#stats-usa th { - background-color: #1a5dad; - border-color: #1a5dad; -} -#stats-usa .stat-log, #stats-usa .stat-points { +.stats-usa .stat-log, .stats-usa .stat-points { background-color: #639fad; border-color: #639fad; } -#stats-usa td { - border-color: #639fad; +.stats-usa td { + border-bottom: 1px solid #284550; } -#stats-urss th { - background-color: #d72229; - border-color: #d72229; -} - -#stats-urss .stat-log, #stats-urss .stat-points { +.stats-urss .stat-log, .stats-urss .stat-points { background-color: #d75556; border-color: #d75556; } -#stats-urss td { - border-color: #d75556; +.stats-urss td { + border-bottom: 1px solid #620f12; } .stat-log { @@ -58,50 +95,41 @@ } #positive{ - color: #e9b600; + color: #ffffff; font-weight: bold; } #negative{ - color: #cea380; -} - -@media screen and (max-width: 480px) { - #stats-container { - display: block; - width: 100%; - } - - .stats-table { - width: 100%; - } + color: #adadad; } .edit-button-container { border: none; + margin: 10px; } .edit-button { width: auto; - background: #fafafa; - color: #000; + color: #fafafa; border-radius: 5px; padding: 5px; box-shadow: 0 0 5px #000000; } -.edit-button:hover { - color: #fafafa; -} - -#button-urss:hover { +.edit-button#button-urss { background: #ee293d; } -#button-usa:hover { +.edit-button#button-usa { background: #1a5dad; } +.edit-button:hover, .edit-button#button-urss:hover, .edit-button#button-usa:hover { + color: #000; + background: #fafafa; +} + + .stats-button-container { display: inline-flex; } @@ -126,7 +154,7 @@ input { text-align: center; - background: #1a1a1a; + background: #484848; color: #fafafa; width: 100%; border: none; @@ -187,4 +215,27 @@ input { .save-score:hover { background: #2ce20b; +} + +.score-nav{ + width: auto; + color: #000; + border-radius: 5px; + padding: 5px; + box-shadow: 0 0 5px #000000; + cursor: pointer; + display: inline-flex; + align-items: center; +} + +.score-nav div { + padding: 0px 10px 0 10px; +} + +#latest-score { + background: #fa9500; +} + +#oldest-score { + background: #fafa00; } \ No newline at end of file diff --git a/edit_score/edit_template.php b/edit_score/edit_template.php index 2114095..23a1dbf 100755 --- a/edit_score/edit_template.php +++ b/edit_score/edit_template.php @@ -64,7 +64,7 @@ if (!isset($team))

- +
diff --git a/stats.php b/stats.php index 48fbfbb..f2ea84c 100755 --- a/stats.php +++ b/stats.php @@ -24,49 +24,110 @@ function get_stats($team) } ?> +

Stats

Les stats de la semaine.
Remporte le plus de points possible pour faire gagner ton équipe, mais attention à ne pas lui en faire perdre ! +

+ Clique sur une équipe pour voir le détail de son score

-
- - - - - - + +
+
+ + Éditer les scores + +
+
+ USA +
+
- - Éditer les scores - -
USA
- - - - - - - +
+ +
+
+ + Éditer les scores + +
+
+ URSS +
+
- - Éditer les scores - -
URSS
+
+