1
Fork 0

Add newline for spacing in style

This commit is contained in:
Tobias Berger 2023-06-29 13:14:27 +02:00
parent ddd15fa4b0
commit 0c45609a14
Signed by: toby
GPG key ID: 2D05EFAB764D6A88

View file

@ -84,7 +84,7 @@ async function createBoard(width: number, height: number, mines: number): Promis
}
inputs += `<input id=input_${idx} type=checkbox ${fieldIsMine ? "data-mine" : "data-safe"}></input>`;
style += `#input_${idx}:checked ~ main label[for="input_${idx}"]::before { content: "${fieldIsMine ? "X" : getNeighbors(idx)}"; }\n`
+ `#input_${idx}:checked ~ main label[for="input_${idx}"] { pointer-events: none; }`;
+ `#input_${idx}:checked ~ main label[for="input_${idx}"] { pointer-events: none; }\n`;
}
table += "</tr></tbody></table>"
style += "</style>"