From e73f785e5353c5b7b0fc437c8ce2cbbc82adbd1e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 19 Jan 2023 16:14:26 +0100 Subject: Garrison image. --- images/garrison_attacker.svg | 5 +++++ images/garrison_defender.svg | 3 +++ play.html | 16 ++++++---------- rules.js | 1 - 4 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 images/garrison_attacker.svg create mode 100644 images/garrison_defender.svg diff --git a/images/garrison_attacker.svg b/images/garrison_attacker.svg new file mode 100644 index 0000000..36a4998 --- /dev/null +++ b/images/garrison_attacker.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/images/garrison_defender.svg b/images/garrison_defender.svg new file mode 100644 index 0000000..ec79240 --- /dev/null +++ b/images/garrison_defender.svg @@ -0,0 +1,3 @@ + + + diff --git a/play.html b/play.html index a11e38e..4096add 100644 --- a/play.html +++ b/play.html @@ -206,24 +206,20 @@ body.Teutons #plan_actions .russian { display: none } } #garrison { - background-color: #d1c07e; - border-color: #f2e19d #b1a05f #b1a05f #f2e19d; - box-shadow: 0 0 0 1px #584800, 1px 2px 4px #0008; - border-radius: 12px; - border-width: 2px; - border-style: solid; -} - -#garrison { + background-repeat: no-repeat; + background-position: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; width: 376px; - height: 48px; + height: 80px; gap: 2px; } +.attacker #garrison { background-image: url(images/garrison_attacker.svg); } +.defender #garrison { background-image: url(images/garrison_defender.svg); } + #garrison:empty { display: none } diff --git a/rules.js b/rules.js index 86757cd..d55dd3b 100644 --- a/rules.js +++ b/rules.js @@ -1,7 +1,6 @@ "use strict" // TODO: Bridge - kn, sgt, 1x lh, maa, militia, serf, lh, ah -// TODO: 2nd edition supply rule - no reuse of transports // TODO: s/RD/RG/ (rearguard) -- cgit v1.2.3