From 298695de12eac0884e1aa6b416b1300694e0ae70 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 28 Dec 2022 16:51:16 +0100 Subject: Pursuit. --- play.html | 70 ++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 38 insertions(+), 32 deletions(-) (limited to 'play.html') diff --git a/play.html b/play.html index c299074..360e114 100644 --- a/play.html +++ b/play.html @@ -227,6 +227,17 @@ body.Teutons #plan_actions .russian { display: none } .defender #battle_mat { background-image: url(images/mat_battle_defender.png); } .attacker #battle_mat { background-image: url(images/mat_battle_attacker.png); } +#mat_pursuit { position: absolute; } +.defender #mat_pursuit { top: 150px; left: 139px; } +.attacker #mat_pursuit { top: 175px; left: 139px; } + +.defender #mat_pursuit.rotate, .attacker #mat_pursuit:not(.rotate) +{ + transform: rotate(180deg); + border-color: #a68c61 #e7cb9e #e7cb9e #a68c61; + box-shadow: 0 0 0 1px #4e370a, -1px -2px 4px #0008; +} + .defender #mat_garrison { top: 172px; left: 8px; } .defender #mat_attacker_reserves { top: 4px; left: 8px; } .defender #mat_defender_reserves { bottom: 4px; left: 8px; } @@ -266,7 +277,7 @@ body.Teutons #plan_actions .russian { display: none } .attacker #mat_defender_reserves { justify-content: end; } */ -#battle_mat > div { +#battle_mat .mat_array { position: absolute; display: flex; flex-wrap: wrap; @@ -274,21 +285,21 @@ body.Teutons #plan_actions .russian { display: none } align-items: center; } -#battle_mat .reserves { - width: 356px; +#battle_mat .mat_array { + width: 48px; height: 48px; - gap: 8px; } -#battle_mat .garrison { +#battle_mat .mat_array.reserves { width: 356px; height: 48px; - gap: 2px; + gap: 8px; } -#battle_mat .mat_array { - width: 48px; +#battle_mat .mat_array.garrison { + width: 356px; height: 48px; + gap: 2px; } #battle_mat .mat_array.action { @@ -580,12 +591,6 @@ body.shift .mustered_vassals { border-radius: 50%; } -.marker.pursuit.rot180 { - transform: rotate(180deg); - border-color: #a68c61 #e7cb9e #e7cb9e #a68c61; - box-shadow: 0 0 0 1px #4e370a, -1px -2px 4px #0008; -} - .marker.turn.levy { background-image: url(images/marker_levy.png) } .marker.turn.campaign { background-image: url(images/marker_campaign.png) } .marker.storm { background-image: url(images/marker_storm.png) } @@ -1321,28 +1326,29 @@ body.shift .mustered_vassals {
Battle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-- cgit v1.2.3