Просмотр исходного кода

Modifications du style (ajout de meilleures couleurs + modification texte affiché dans chaque cellule)

Guichen 5 лет назад
Родитель
Сommit
ec1c0eccfb
2 измененных файлов с 12 добавлено и 3 удалено
  1. 9 0
      assets/divers.css
  2. 3 3
      index.php

+ 9 - 0
assets/divers.css

@@ -12,20 +12,29 @@ table {
 th, td {
     padding: 2px;
     border: 1px solid black;
+    --text-color: lightgrey;
 }
 
 .all-choices {
     background-color: #28a745;
+    color: #8fd19e;
+
 }
 
 .half-choices {
     background-color: #8fd19e;
+    color: grey;
 }
 
 .last-choice {
     background-color: #ffdf7e;
+    color: grey;
 }
 
 .no-choice {
     background-color: #ed969e;
+}
+
+.never-available {
+    background-color: lightgrey;
 }

+ 3 - 3
index.php

@@ -75,6 +75,7 @@ if ($isClassementValid) {
 			$html .= "<td class=\"";
 			switch (TRUE) {
 				case ($nbPossibleAnneePropose === 0 && $nbAnneePropose === 0):
+					$html .= "never-available";
 					break;
 				
 				case ($nbPossibleAnneePropose === 0):
@@ -95,14 +96,14 @@ if ($isClassementValid) {
 			}
 			$html .= "\">";
 			if ($nbPossibleAnneePropose > 0) {
-				$html .= $nbPossibleAnneePropose."/".$nbAnneePropose;
+				$html .= $nbPossibleAnneePropose;
 			}
 			$html .= "</td>";
 		}
 		$html .= "</tr>";
 	}
 	
-	$html .= "</tbody></table><br><br>";
+	$html .= "</tbody></table><br>";
 	echo $html;
 	?>
 	<table>
@@ -121,7 +122,6 @@ if ($isClassementValid) {
 	</table>
 	<br>
 	<table>
-		t
 	</table>
 <?php
 }