diff --git a/cards/templates/cards/_card_item.html b/cards/templates/cards/_card_item.html index 03b7494..c1d775b 100644 --- a/cards/templates/cards/_card_item.html +++ b/cards/templates/cards/_card_item.html @@ -33,8 +33,8 @@
Speed (km/h)
{{ card.speed_display }}
-
- {% for t in card.speed_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} +
+
{% for t in card.speed_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %}
(orig: {{ card.speed_orig }})
@@ -43,8 +43,8 @@
Weight (kg)
{{ card.weight_display }}
-
- {% for t in card.weight_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} +
+
{% for t in card.weight_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %}
(orig: {{ card.weight_orig }})
@@ -52,10 +52,10 @@
Intelligence (score)
-
- {% for t in card.intelligence_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} +
+
{% for t in card.intelligence_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %}
+
(orig: {{ card.intelligence_orig }})
-
(orig: {{ card.intelligence_orig }})
diff --git a/cards/templates/cards/_card_preview.html b/cards/templates/cards/_card_preview.html index 5ce2ccc..8006df3 100644 --- a/cards/templates/cards/_card_preview.html +++ b/cards/templates/cards/_card_preview.html @@ -33,28 +33,28 @@
Speed (km/h)
{{ card.speed_display }}
-
{% for t in card.speed_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} (orig: {{ card.speed_orig }})
+
{% for t in card.speed_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %}
(orig: {{ card.speed_orig }})
Weight (kg)
{{ card.weight_display }}
-
{% for t in card.weight_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} (orig: {{ card.weight_orig }})
+
{% for t in card.weight_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %}
(orig: {{ card.weight_orig }})
Intelligence (score)
-
{% for t in card.intelligence_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %}
-
(orig: {{ card.intelligence_orig }})
+
{% for t in card.intelligence_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %}
+
(orig: {{ card.intelligence_orig }})
Height (m)
{{ card.height_display }}
-
{% for t in card.height_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} (orig: {{ card.height_orig }})
+
{% for t in card.height_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %}
(orig: {{ card.height_orig }})
diff --git a/cards/templates/cards/base.html b/cards/templates/cards/base.html index 518f187..a3b1d41 100644 --- a/cards/templates/cards/base.html +++ b/cards/templates/cards/base.html @@ -51,6 +51,9 @@ border-radius:6px; box-shadow:none; } + /* Consistent star group styling */ + .toptrump-card .stars{display:inline-flex; gap:6px; align-items:center; font-size:1rem; margin-left:6px} + .toptrump-card .stars .star{margin:0;} /* Star rating visuals (app-level) */ .star { font-size:0.95rem; display:inline-block; line-height:1; margin-left:2px; } .star.full { color:#ffdd57; }