forked from vergnet/site-accueil-insa
Change score font size if winning
This commit is contained in:
parent
ddb62502f8
commit
7182b57c19
2 changed files with 18 additions and 2 deletions
|
@ -54,6 +54,10 @@
|
|||
line-height: 40px;
|
||||
}
|
||||
|
||||
.winning {
|
||||
font-size: 23px;
|
||||
}
|
||||
|
||||
.score-usa{
|
||||
color: #1a5dad;
|
||||
}
|
||||
|
@ -81,6 +85,10 @@
|
|||
line-height: 80px;
|
||||
}
|
||||
|
||||
#main-score .winning {
|
||||
font-size: 50px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
#top-bar-score {
|
||||
display: none;
|
||||
|
|
|
@ -6,9 +6,17 @@
|
|||
<img class="score-logo" src="assets/images/usa_logo.png">
|
||||
</a>
|
||||
<a href="stats.php">
|
||||
<div class="score-usa"><?= $scoreUSA ?></div>
|
||||
<?php
|
||||
$usaClass = '';
|
||||
$urssClass = '';
|
||||
if ($scoreUSA > $scoreURSS)
|
||||
$usaClass = 'winning';
|
||||
else if ($scoreUSA < $scoreURSS)
|
||||
$urssClass = 'winning';
|
||||
?>
|
||||
<div class="score-usa <?= $usaClass ?>"><?= $scoreUSA ?></div>
|
||||
<div class="score-separator">/</div>
|
||||
<div class="score-urss"><?= $scoreURSS ?></div>
|
||||
<div class="score-urss <?= $urssClass ?>"><?= $scoreURSS ?></div>
|
||||
</a>
|
||||
<a href="urss.php">
|
||||
<img class="score-logo" src="assets/images/urss_logo.png">
|
||||
|
|
Loading…
Reference in a new issue