From 70e483427c41dd44ab150d25e47c1f80a8c494dd Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 29 Dec 2022 00:48:04 +0100 Subject: Panels? Panels! --- play.html | 134 +++++++++++++++++++++----------------------------------------- 1 file changed, 44 insertions(+), 90 deletions(-) (limited to 'play.html') diff --git a/play.html b/play.html index a6c2d94..bc6e6ac 100644 --- a/play.html +++ b/play.html @@ -43,83 +43,56 @@ header.your_turn { background-color: orange; } font-variant-numeric: tabular-nums; } -main { display: grid; grid-template-columns: 1fr; } - -#center { grid-row: 1; } -#court1 { grid-row: 2; } -#court2 { grid-row: 3; } - -body.Russians #court1 { grid-row: 3; } -body.Russians #court2 { grid-row: 2; } - /* PANELS */ .panel { max-width: 1275px; margin: 36px auto; //box-shadow: 0px 0px 4px #0008; + background-color: #555; } .panel_header { + background-color: #444; + color: white; user-select: none; font-weight: bold; text-align: center; padding: 3px 1em; } -/* ARTS OF WAR */ - -#arts_of_war { - background-color: #555; +.panel_body { + display: flex; + justify-content: center; + flex-wrap: wrap; + padding: 18px; + gap: 18px; } -#arts_of_war_header { - background-color: #444; - color: white; +.court { + gap: 24px; } +/* ARTS OF WAR */ + #arts_of_war_list { min-height: 260px; - display: flex; - justify-content: center; - flex-wrap: wrap; - padding: 18px; - gap: 12px; } /* PLAN */ #plan { - background-color: #555; -} - -#plan_header { - background-color: #444; - color: white; -} - -#plan_list { min-height: 260px; - display: flex; - flex-wrap: wrap; - justify-content: center; - gap: 12px 6px; - padding: 18px 0; } #plan_actions { background-color: #444; min-height: 130px; - display: flex; - flex-wrap: wrap; - justify-content: center; - padding: 18px; - gap: 12px; - flex-wrap: wrap; } -body.Russians #plan_actions .teutonic { display: none } -body.Teutons #plan_actions .russian { display: none } +#plan_actions.hide { + display: none +} #plan_actions .card { width: 93px; @@ -127,16 +100,10 @@ body.Teutons #plan_actions .russian { display: none } background-size: 93px 130px; } -/* BATTLE GRID WITH LORD MATS */ - -#battle_panel { - background-color: #555; -} +body.Russians #plan_actions .teutonic { display: none } +body.Teutons #plan_actions .russian { display: none } -#battle_header { - background-color: #444; - color: white; -} +/* BATTLE GRID WITH LORD MATS */ #battle_grid { display: grid; @@ -313,15 +280,6 @@ body.Teutons #plan_actions .russian { display: none } /* MATS */ -.court { - display: flex; - flex-wrap: wrap; - justify-content: center; - margin: 36px auto; - padding: 18px 0; - gap: 12px; -} - .mat { position: relative; width: 376px; @@ -505,21 +463,6 @@ body.shift .mustered_vassals { justify-content: end; } -/* EVENTS: THIS LEVY / THIS CAMPAIGN */ - -#events { - display: flex; - max-width: 1275px; - margin: 0 auto; - flex-wrap: wrap; - gap: 12px; - justify-content: center; -} - -#events:empty { - display: none; -} - /* ASSETS */ .asset { @@ -1287,8 +1230,6 @@ body.shift .mustered_vassals {
-
-
@@ -1319,17 +1260,21 @@ body.shift .mustered_vassals {
-
+
+
Arts of War
+
+
-
-
~ Arts of War ~
-
+
+
Events
+
+
-
-
~ Plan ~
-
-
+
+
Hand
+
+
@@ -1370,12 +1315,21 @@ body.shift .mustered_vassals {
-
+
+
Lords
+
+
-
+
+
Plan
+
+
+
-
-
+
+
Lords
+
+
-- cgit v1.2.3