Improved card color support

This commit is contained in:
Correl Roush 2010-09-21 20:17:20 -04:00
parent 44a67916cc
commit db2f5b85a2
3 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit 87c61cee6ab4172718dfe84b5341c757d1c3a956
Subproject commit 352f59288d0f6937824436dccd02e55fb234df66

View file

@ -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;

View file

@ -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">