diff --git a/dico.php b/dico.php index a5e4dcd..d849bb2 100644 --- a/dico.php +++ b/dico.php @@ -36,9 +36,9 @@ function mots_espaces($max, $min=0) { foreach ($mots_de_n_lettres[$i] as $mot1) { foreach (mots_espaces($max - $i -1, $min) as $mot2) { if ($mot1 != $mot2) { - $dico["$mot1 $mot2"] = $dico[$mot1] && $dico[$mot2] ? "{$dico[$mot1]}. {$dico[$mot2]}." : $dico[$mot1] . $dico[$mot2]; + $dico["$mot1 $mot2"] = $dico[$mot1] && $dico[$mot2] ? "{$dico[$mot1]}
{$dico[$mot2]}." : $dico[$mot1] . $dico[$mot2]; yield "$mot1 $mot2"; - $dico["$mot2 $mot1"] = $dico[$mot2] && $dico[$mot1] ? "{$dico[$mot2]}. {$dico[$mot1]}." : $dico[$mot2] . $dico[$mot1]; + $dico["$mot2 $mot1"] = $dico[$mot2] && $dico[$mot1] ? "{$dico[$mot2]}
{$dico[$mot1]}." : $dico[$mot2] . $dico[$mot1]; yield "$mot2 $mot1"; } } diff --git a/index.php b/index.php index 1a4651d..4b81507 100644 --- a/index.php +++ b/index.php @@ -37,36 +37,36 @@ $grille = new Grille($hauteur, $largeur); -
- + +
- + - - - - - - + + + + + +
"> - grille[$l][$c] == " "): ?> - - - - -
"> + grille[$l][$c] == " "): ?> + + + + +
-
+

Horizontalement

    -
  1. get_ligne($l, $largeur)] ?>
  2. +
  3. get_ligne($l, $largeur)] ?>
@@ -74,10 +74,48 @@ $grille = new Grille($hauteur, $largeur);

Verticalement

    -
  1. get_colonne($c, $hauteur)] ?>
  2. +
  3. get_colonne($c, $hauteur)] ?>
+ + \ No newline at end of file diff --git a/style.css b/style.css index 1aa47b2..cacb630 100644 --- a/style.css +++ b/style.css @@ -4,7 +4,29 @@ body { .grille { margin: 2rem auto; +} + +.grille table { border-collapse: collapse; + margin: 0 auto; +} + +tr:nth-of-type(2) td { + border-top: 3px solid black; +} +tr:last-of-type td { + border-bottom: 3px solid black; +} +td:first-of-type { + border-left: 3px solid black; +} +td:last-child { + border-right: 3px solid black; +} + +td { + border: 1px solid black; + padding: 2px; } th, td { @@ -13,11 +35,6 @@ th, td { text-align: center; } -td { - border: 1px solid black; - padding: 2px; -} - .case.noire { background-color: black; } @@ -28,7 +45,7 @@ input { border: none; padding: 0; text-align: center; - font-size: 1em; + font-size: 1.2em; } input[disabled] { @@ -42,4 +59,5 @@ input[disabled] { .definitions h2 { font-variant-caps: petite-caps; + text-align: center; } \ No newline at end of file