Improved card color support
This commit is contained in:
parent
44a67916cc
commit
db2f5b85a2
3 changed files with 3 additions and 2 deletions
2
lib/mtg
2
lib/mtg
|
@ -1 +1 @@
|
|||
Subproject commit 87c61cee6ab4172718dfe84b5341c757d1c3a956
|
||||
Subproject commit 352f59288d0f6937824436dccd02e55fb234df66
|
|
@ -56,6 +56,7 @@ header {
|
|||
.mana.U, .card.U { background-color: blue; }
|
||||
.mana.B, .card.B { background-color: black; }
|
||||
.mana.W, .card.W { background-color: white; }
|
||||
.card.gold { background-color: darkgoldenrod; }
|
||||
.card .title,
|
||||
.card .info {
|
||||
border: 1px solid gray;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% block title %}Card: {{ card.name }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="card {{ card.colors|join:" " }}">
|
||||
<div class="card {% if card.colors|length > 1 %}gold{% else %}{{ card.colors|join:" " }}{% endif %}">
|
||||
<div class="title">
|
||||
<span class="name">{{ card.name|title }}</span>
|
||||
<span class="cost">
|
||||
|
|
Loading…
Reference in a new issue