diff options
-rw-r--r-- | images/garrison_attacker.svg | 5 | ||||
-rw-r--r-- | images/garrison_defender.svg | 3 | ||||
-rw-r--r-- | play.html | 16 | ||||
-rw-r--r-- | rules.js | 1 |
4 files changed, 14 insertions, 11 deletions
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 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="333" height="80" viewBox="0 0 249.75 60" version="1.2"> +<g transform="matrix(1 0 0 -1 0 60)"> +<path fill="white" fill-opacity="0.5" d="M11.342 1.5 4.3 10.622v36.487h14.09V10.62Zm227.058 0-7.049 9.122v36.487h14.098V10.62zM19.192 13.38v33.57h211.336V13.38Z"/> +</g> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="333" height="80" viewBox="0 0 249.75 60" version="1.2"> +<path fill="white" fill-opacity="0.5" d="M11.342 1.5 4.3 10.622v36.487h14.09V10.62Zm227.058 0-7.049 9.122v36.487h14.098V10.62zM19.192 13.38v33.57h211.336V13.38Z"/> +</svg> @@ -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 } @@ -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) |