|
|
|
@ -1,3 +1,24 @@ |
|
|
|
|
body { |
|
|
|
|
display: grid; |
|
|
|
|
grid-template-columns: 1fr 1fr; |
|
|
|
|
grid-template-rows: min-content 1fr; |
|
|
|
|
grid-template-areas: |
|
|
|
|
"counters counters" |
|
|
|
|
"game1 game2"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
section.counters { |
|
|
|
|
grid-area: counters; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
section.game1 { |
|
|
|
|
grid-area: game1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
section.game2 { |
|
|
|
|
grid-area: game2; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.counter { |
|
|
|
|
font-weight: bold; |
|
|
|
|
color: red; |
|
|
|
@ -18,3 +39,37 @@ board-game:not(.game-in-progress) .when-game-in-progress, |
|
|
|
|
board-game:not(.game-not-in-progress) .when-game-not-in-progress { |
|
|
|
|
display: none; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
table.game-board-table { |
|
|
|
|
border: solid 7px transparent; |
|
|
|
|
border-collapse: collapse; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
table.game-board-table tbody.game-board td { |
|
|
|
|
border: solid 6px black; |
|
|
|
|
padding: 3px |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tbody.game-board button, |
|
|
|
|
tbody.game-board button:disabled, |
|
|
|
|
tbody.game-board button:hover { |
|
|
|
|
width: 4em; |
|
|
|
|
height: 4em; |
|
|
|
|
border: none; |
|
|
|
|
background-color: transparent; |
|
|
|
|
color:transparent; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tbody.game-board button.square-X { |
|
|
|
|
background-image: url("x.png"); |
|
|
|
|
background-size: 100% 100%; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tbody.game-board button.square-O { |
|
|
|
|
background-image: url("o.png"); |
|
|
|
|
background-size: 100% 100%; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tbody.game-board button.square-_ { |
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|