diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-12-27 19:50:07 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 107b58bb7074c912e4c3a257d4fdca4bfd3fe44a (patch) | |
tree | b5d20d5fd9152c10655e2b0334facd2499e6ccfe | |
parent | ae542c6bc4b6340439fa8a1dc3f0fdbfba5861b4 (diff) | |
download | nevsky-107b58bb7074c912e4c3a257d4fdca4bfd3fe44a.tar.gz |
Tweak array layout.
-rw-r--r-- | play.html | 35 |
1 files changed, 31 insertions, 4 deletions
@@ -140,17 +140,44 @@ body.Teutons #plan_actions .russian { display: none } #battle_grid { display: grid; - width: 1200px; - gap: 36px; - grid-template-columns: 376px 376px 376px; + gap: 18px; + grid-template-columns: auto auto auto; margin: 0 auto; - padding-bottom: 36px; + justify-content: center; + padding-bottom: 18px; +} + +#battle_grid .grid_array { + width: 376px; + height: 506px; + padding: 12px; +} + +#battle_grid #grid_bm { + width: 376px; + height: 376px; + padding: 12px; } #grid_rd1:empty, #grid_rd2:empty, #grid_rd3:empty, #grid_sa1:empty, #grid_sa2:empty, #grid_sa3:empty { display: none; } #battle_header { grid-row: 1; grid-column: 1 / 4; } +/* +#battle_grid.defender #grid_a1 { transform: rotate(180deg) } +#battle_grid.defender #grid_a2 { transform: rotate(180deg) } +#battle_grid.defender #grid_a3 { transform: rotate(180deg) } +#battle_grid.defender #grid_sa1 { transform: rotate(180deg) } +#battle_grid.defender #grid_sa2 { transform: rotate(180deg) } +#battle_grid.defender #grid_sa3 { transform: rotate(180deg) } +#battle_grid.attacker #grid_d1 { transform: rotate(180deg) } +#battle_grid.attacker #grid_d2 { transform: rotate(180deg) } +#battle_grid.attacker #grid_d3 { transform: rotate(180deg) } +#battle_grid.attacker #grid_rd1 { transform: rotate(180deg) } +#battle_grid.attacker #grid_rd2 { transform: rotate(180deg) } +#battle_grid.attacker #grid_rd3 { transform: rotate(180deg) } +*/ + #battle_grid.defender #grid_a1 { grid-row: 2; grid-column: 1; } #battle_grid.defender #grid_a2 { grid-row: 2; grid-column: 2; } #battle_grid.defender #grid_a3 { grid-row: 2; grid-column: 3; } |