diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-27 23:22:31 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-27 23:22:31 +0100 |
commit | aba1092cc2e5eb0edef4862c228c29e5f974f982 (patch) | |
tree | fda74bd91bff3f3aca6ee25e15749fc7d82cd60e | |
parent | e25758efa7da42308fe9611ab0c7dbf59a55c140 (diff) | |
download | maria-aba1092cc2e5eb0edef4862c228c29e5f974f982.tar.gz |
multi-color headers for action stages
-rw-r--r-- | play.css | 27 | ||||
-rw-r--r-- | play.js | 8 | ||||
-rw-r--r-- | rules.js | 8 |
3 files changed, 38 insertions, 5 deletions
@@ -207,6 +207,33 @@ header.your_turn.austria { background-color: var(--color-light-austria); } #log .h.pragmatic { background-color: var(--color-light-pragmatic); } #log .h.saxony { background-color: var(--color-light-saxony); } +#log .h.austria.pragmatic { + background-image: linear-gradient(120deg, + var(--color-light-austria) 20%, + var(--color-light-pragmatic) 80% + ); +} +#log .h.austria.pragmatic.saxony { + background-image: linear-gradient(120deg, + var(--color-light-austria) 15%, + var(--color-light-pragmatic) 40%, + var(--color-light-pragmatic) 60%, + var(--color-light-saxony) 85% + ); +} +#log .h.france.bavaria { + background-image: linear-gradient(120deg, + var(--color-light-france) 20%, + var(--color-light-bavaria) 80% + ); +} +#log .h.prussia.saxony { + background-image: linear-gradient(120deg, + var(--color-light-prussia) 20%, + var(--color-light-saxony) 80% + ); +} + #log div.q { font-style: italic; padding-left: 8px; text-indent: 12px; } #log div { padding-left: 20px; text-indent: -12px; } @@ -57,7 +57,13 @@ const SET_ASIDE_FRANCE = 4 const SET_ASIDE_PRUSSIA = 5 const power_name = [ "France", "Prussia", "Pragmatic Army", "Austria", "Bavaria", "Saxony" ] -const power_class = [ "france", "prussia", "pragmatic", "austria", "bavaria", "saxony" ] +const power_class = [ + "france", "prussia", "pragmatic", "austria", "bavaria", "saxony", + "france bavaria", + "prussia saxony", + "austria pragmatic", + "austria pragmatic saxony", +] const F_EMPEROR_FRANCE = 1 const F_EMPEROR_AUSTRIA = 2 @@ -1198,19 +1198,19 @@ function next_sequence_of_play() { function start_action_stage() { switch (game.power) { case P_FRANCE: - log("=0 France and Bavaria") + log("=6 France and Bavaria") break case P_PRUSSIA: if (is_saxony_prussian()) - log("=1 Prussia and Saxony") + log("=7 Prussia and Saxony") else log("=1 Prussia") break case P_AUSTRIA: if (is_saxony_prussian()) - log("=2 Austria and Pragmatic Army") + log("=8 Austria and the Pragmatic Army") else - log("=2 Austria, Pragmatic Army, and Saxony") + log("=9 Austria, Pragmatic, Saxony") break } next_sequence_of_play() |