summaryrefslogtreecommitdiff
path: root/play.html
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-27 19:50:07 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit107b58bb7074c912e4c3a257d4fdca4bfd3fe44a (patch)
treeb5d20d5fd9152c10655e2b0334facd2499e6ccfe /play.html
parentae542c6bc4b6340439fa8a1dc3f0fdbfba5861b4 (diff)
downloadnevsky-107b58bb7074c912e4c3a257d4fdca4bfd3fe44a.tar.gz
Tweak array layout.
Diffstat (limited to 'play.html')
-rw-r--r--play.html35
1 files changed, 31 insertions, 4 deletions
diff --git a/play.html b/play.html
index 639c1ef..2e318d8 100644
--- a/play.html
+++ b/play.html
@@ -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; }