From 763118f70215a0b736349431efcb4a8dab6947cb Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 26 Jan 2023 19:54:14 +0100 Subject: Tweak battle layout. --- play.html | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) (limited to 'play.html') diff --git a/play.html b/play.html index 9e459a3..fbfbaea 100644 --- a/play.html +++ b/play.html @@ -135,21 +135,11 @@ body.Teutons #plan_actions .russian { display: none } #battle_grid .grid_array { width: 376px; height: 506px; - padding: 12px; + padding: 36px 12px 12px 12px; } -#battle_grid #grid_ga { - height: auto; - min-height: 80px; -} - -#battle_grid #grid_sw { - height: auto; -} - -#battle_grid #grid_sw:empty { - display: none; -} +#battle_grid #grid_ga { height: auto; } +#battle_grid #grid_sw { height: auto; } .grid_array { background-repeat: no-repeat } @@ -263,9 +253,13 @@ body.Teutons #plan_actions .russian { display: none } flex-wrap: wrap; justify-content: center; gap: 4px; + margin: 12px; } +.siegeworks:empty { display: none } + #garrison { + background-image: url(images/garrison.svg); background-repeat: no-repeat; background-position: center; display: flex; @@ -275,16 +269,12 @@ body.Teutons #plan_actions .russian { display: none } width: 376px; height: 80px; gap: 2px; + margin: 0 auto; } #garrison.hide { display: none } -.attacker #garrison { background-image: url(images/garrison_attacker.svg); } -.defender #garrison { background-image: url(images/garrison_defender.svg); } - -#garrison .unit { - position: static -} +#garrison .unit { position: static } /* MATS */ @@ -374,7 +364,7 @@ body.Teutons #plan_actions .russian { display: none } z-index: 5; } -.mat .feed_x2 { left: 8px; top: 178px; } +.mat .feed_x2 { left: 8px; top: 164px; } .mat .moved_fought.one { right: 72px; top: 12px; } .mat .moved_fought.two { right: 66px; top: 6px; } @@ -1370,11 +1360,13 @@ body.shift .mustered_vassals {
Battle
-
+
-
+
+
+
@@ -1385,7 +1377,7 @@ body.shift .mustered_vassals {
-
+
-- cgit v1.2.3