From 21394049323e31b2cb67c5a55e847b01c4cd0353 Mon Sep 17 00:00:00 2001 From: Ajordat Date: Tue, 25 Jun 2024 00:29:59 +0200 Subject: [PATCH] Mana values now use the mana icons with the faction's colors --- alteredbuilder/config/__init__.py | 2 +- alteredbuilder/decks/static/css/styles.css | 28 ++++++ .../decks/templates/decks/deck_detail.html | 1 + .../templates/decks/snippets/card_table.html | 4 +- alteredbuilder/statics/css/altered-icons.css | 81 ++++++++++++++++++ alteredbuilder/statics/fonts/altered.eot | Bin 0 -> 9804 bytes alteredbuilder/statics/fonts/altered.svg | 28 ++++++ alteredbuilder/statics/fonts/altered.ttf | Bin 0 -> 9640 bytes alteredbuilder/statics/fonts/altered.woff | Bin 0 -> 9716 bytes alteredbuilder/templates/collaborators.html | 1 + 10 files changed, 142 insertions(+), 3 deletions(-) create mode 100644 alteredbuilder/statics/css/altered-icons.css create mode 100644 alteredbuilder/statics/fonts/altered.eot create mode 100644 alteredbuilder/statics/fonts/altered.svg create mode 100644 alteredbuilder/statics/fonts/altered.ttf create mode 100644 alteredbuilder/statics/fonts/altered.woff diff --git a/alteredbuilder/config/__init__.py b/alteredbuilder/config/__init__.py index c0f285b0..56dadec6 100644 --- a/alteredbuilder/config/__init__.py +++ b/alteredbuilder/config/__init__.py @@ -1 +1 @@ -__version__ = "1.4.4" +__version__ = "1.4.5" diff --git a/alteredbuilder/decks/static/css/styles.css b/alteredbuilder/decks/static/css/styles.css index 695a8cbd..feb25128 100644 --- a/alteredbuilder/decks/static/css/styles.css +++ b/alteredbuilder/decks/static/css/styles.css @@ -41,4 +41,32 @@ height: 200px; margin: auto; background-color: #fff; +} + +.card-table tr span.hand-mana { + color: #5095c9; +} + +.card-table tr[data-faction="AX"] span.reserve-mana { + color: #7e4b36; +} + +.card-table tr[data-faction="BR"] span.reserve-mana { + color: #b24848; +} + +.card-table tr[data-faction="LY"] span.reserve-mana { + color: #d12358; +} + +.card-table tr[data-faction="MU"] span.reserve-mana { + color: #4c7245; +} + +.card-table tr[data-faction="OR"] span.reserve-mana { + color: #00628b; +} + +.card-table tr[data-faction="YZ"] span.reserve-mana { + color: #483b66; } \ No newline at end of file diff --git a/alteredbuilder/decks/templates/decks/deck_detail.html b/alteredbuilder/decks/templates/decks/deck_detail.html index ce29d856..5fcec0c1 100644 --- a/alteredbuilder/decks/templates/decks/deck_detail.html +++ b/alteredbuilder/decks/templates/decks/deck_detail.html @@ -15,6 +15,7 @@ + {% endblock %} {% block content %} diff --git a/alteredbuilder/decks/templates/decks/snippets/card_table.html b/alteredbuilder/decks/templates/decks/snippets/card_table.html index 6021d9d6..5623a86e 100644 --- a/alteredbuilder/decks/templates/decks/snippets/card_table.html +++ b/alteredbuilder/decks/templates/decks/snippets/card_table.html @@ -13,10 +13,10 @@ {% for quantity, card in card_list %} - + {{ quantity }} {{ card.name }} - {% get_main_cost card %}/{% get_recall_cost card %} + /