Compare commits

..

2 Commits

Author SHA1 Message Date
d1d189a0db lien nouvelle grille 2025-04-24 20:18:32 +02:00
6249729fcc style 2025-04-24 20:17:47 +02:00
3 changed files with 31 additions and 22 deletions

View File

@ -3,7 +3,7 @@
include_once "dico.php";
const MIN_LETTRES = 1;
const MIN_LETTRES = 0;
class Grille {

View File

@ -1,7 +1,4 @@
<?php
ini_set('display_errors', 1);
ini_set('html_errors', 1);
ini_set('error_reporting', E_ALL);
const HAUTEUR_PAR_DEFAUT = 6;
const LARGEUR_PAR_DEFAUT = 6;
@ -125,6 +122,8 @@ $grille = new Grille($hauteur, $largeur, $id);
</div>
</div>
<footer><a href=".">Nouvelle grille</a></footer>
<script src="script.js"></script>
</body>

View File

@ -5,6 +5,7 @@ body {
display: flex;
flex-flow: column;
justify-content: space-evenly;
font-family: Times, "Times New Roman", Georgia, serif;
}
h1 table {
@ -27,24 +28,6 @@ h2 {
margin: 0 auto;
}
.grille tr:nth-of-type(2) td {
border-top: 3px solid black;
}
.grille tr:last-of-type td {
border-bottom: 3px solid black;
}
.grille td:first-of-type {
border-left: 3px solid black;
}
.grille td:last-child {
border-right: 3px solid black;
}
.grille td {
border: 1px solid black;
padding: 2px;
}
.grille th,
.grille td {
width: 30px;
@ -52,6 +35,29 @@ h2 {
text-align: center;
}
.grille td {
border: 1px solid black;
padding: 2px;
font-family: "Comic Sans MS", "Comic Sans", cursive, sans;
}
.grille tr:nth-of-type(2) td {
border-top-width: 3px;
}
.grille tr:last-of-type td {
border-bottom-width: 3px;
}
.grille td:first-of-type {
border-left-width: 3px;
}
.grille td:last-child {
border-right-width: 3px;
}
.grille .case.noire {
background-color: black;
}
.grille .case.noire {
background-color: black;
}
@ -82,3 +88,7 @@ h2 {
.definitions li::marker {
font-weight: bold;
}
footer {
text-align: center;
}