Skip to content

Commit

Permalink
index.php: factorize CSS for score
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed May 16, 2024
1 parent 32d86da commit d085a0f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@
color: black;
}

.score {
margin: 0.5em;
padding-left:0.5em;
width:19rem;
border-left:2px grey solid;
}

@media print {
body { font-size:8pt; }
h1 { font-size:10pt; }
Expand Down Expand Up @@ -330,7 +337,7 @@ function tri_par_completion($a, $b) {return tri_ligne($a, $b, 'completion');}
continue;
}

echo "\n".'<div style="margin: 0.5em; padding-left:0.5em; width:19rem; border-left:2px grey solid">';
echo "\n".'<div class="score">';
for($i = 0; $i < sizeof($l); $i++)
{
$c = $l[$i];
Expand Down

0 comments on commit d085a0f

Please sign in to comment.