From f63ea0621fad9989bdf183a6b62f49dbfd97e706 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 1 May 2021 00:48:35 +0200 Subject: Add Columbia ABC battle window style-sheet and icons. --- public/common/battle_abc.css | 87 ++++++++++++++++++++++++++++++++++++++++ public/images/arrow-flights.svg | 1 + public/images/cross-mark.svg | 1 + public/images/flying-flag.svg | 1 + public/images/mounted-knight.svg | 1 + public/images/pointy-sword.svg | 1 + public/images/rose.svg | 1 + public/images/sands-of-time.svg | 1 + 8 files changed, 94 insertions(+) create mode 100644 public/common/battle_abc.css create mode 100644 public/images/arrow-flights.svg create mode 100644 public/images/cross-mark.svg create mode 100644 public/images/flying-flag.svg create mode 100644 public/images/mounted-knight.svg create mode 100644 public/images/pointy-sword.svg create mode 100644 public/images/rose.svg create mode 100644 public/images/sands-of-time.svg diff --git a/public/common/battle_abc.css b/public/common/battle_abc.css new file mode 100644 index 0000000..7469085 --- /dev/null +++ b/public/common/battle_abc.css @@ -0,0 +1,87 @@ +/* ABC BATTLE DISPLAY FOR COLUMBIA BLOCK GAMES */ + +.battle { + position: absolute; + left: 100px; + top: 100px; + z-index: 50; + border-collapse: collapse; + border: 1px solid black; + background-color: white; + box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.5); + visibility: hidden; +} +.battle.show { + visibility: visible; +} +.battle th { + font-weight: normal; + padding: 0; + border: 1px solid black; +} +.battle td { + padding: 0; + border: 1px solid black; + vertical-align: top; +} +.battle .battle_header { + height: 2em; + line-height: 2em; + font-weight: bold; + user-select: none; + cursor: move; +} +.battle .battle_message { + height: 2em; + line-height: 2em; + padding: 0 8px; +} +#FA, #FB, #FC, #FD, #FR, #EA, #EB, #EC, #ED, #ER { + display: flex; + flex-wrap: wrap; + justify-content: center; +} + +.battle_separator { + height: 15px; +} + +.battle_menu .block { + margin: 0 auto; +} + +.battle_menu { + padding: 5px; +} + +.battle_menu .action { + width: 20px; + height: 20px; + border-radius: 5px; + padding: 3px; + display: none; +} + +.battle_menu .action:hover { + background-color: red; + cursor: pointer; +} + +.battle_menu_list { + margin-top: 5px; + min-height: 26px; + width: 78px; + text-align: center; +} + +.battle_reserves .battle_menu_list { + display: none; +} + +.battle_menu.fire .action.fire { display: inline; } +.battle_menu.retreat .action.retreat { display: inline; } +.battle_menu.pass .action.pass { display: inline; } +.battle_menu.charge .action.charge { display: inline; } +.battle_menu.treachery .action.treachery { display: inline; } +.battle_menu.harry .action.harry { display: inline; } +.battle_menu.hit .action.hit { display: inline; } diff --git a/public/images/arrow-flights.svg b/public/images/arrow-flights.svg new file mode 100644 index 0000000..45b9c97 --- /dev/null +++ b/public/images/arrow-flights.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/cross-mark.svg b/public/images/cross-mark.svg new file mode 100644 index 0000000..c12134c --- /dev/null +++ b/public/images/cross-mark.svg @@ -0,0 +1 @@ + diff --git a/public/images/flying-flag.svg b/public/images/flying-flag.svg new file mode 100644 index 0000000..819146e --- /dev/null +++ b/public/images/flying-flag.svg @@ -0,0 +1 @@ + diff --git a/public/images/mounted-knight.svg b/public/images/mounted-knight.svg new file mode 100644 index 0000000..ad12b8f --- /dev/null +++ b/public/images/mounted-knight.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/pointy-sword.svg b/public/images/pointy-sword.svg new file mode 100644 index 0000000..cd83102 --- /dev/null +++ b/public/images/pointy-sword.svg @@ -0,0 +1 @@ + diff --git a/public/images/rose.svg b/public/images/rose.svg new file mode 100644 index 0000000..6806046 --- /dev/null +++ b/public/images/rose.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/sands-of-time.svg b/public/images/sands-of-time.svg new file mode 100644 index 0000000..ae67b3b --- /dev/null +++ b/public/images/sands-of-time.svg @@ -0,0 +1 @@ + -- cgit v1.2.3