From 1fb573525b8513bbc6d06e3639fb05fbf7b977f8 Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 6 Dec 2025 21:51:03 +0000 Subject: [PATCH] . --- cards/templates/cards/_card_hero_styles.html | 2 ++ cards/templates/cards/_card_inner_design1.html | 2 +- cards/templates/cards/_card_inner_design2.html | 2 +- cards/templates/cards/_card_inner_design3.html | 2 +- cards/templates/cards/_card_inner_design4.html | 2 +- cards/templates/cards/printable.html | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cards/templates/cards/_card_hero_styles.html b/cards/templates/cards/_card_hero_styles.html index 1322c49..2623582 100644 --- a/cards/templates/cards/_card_hero_styles.html +++ b/cards/templates/cards/_card_hero_styles.html @@ -35,4 +35,6 @@ height:auto; object-fit:contain; } + /* Hide print fallback images by default on screen; printable view will reveal them */ + .print-hero-bg{display:none} diff --git a/cards/templates/cards/_card_inner_design1.html b/cards/templates/cards/_card_inner_design1.html index 0ac6760..d615237 100644 --- a/cards/templates/cards/_card_inner_design1.html +++ b/cards/templates/cards/_card_inner_design1.html @@ -4,7 +4,7 @@
{# Print fallback: actual element that is hidden on screen but shown by `printable.html` via its print stylesheet. #} {% if card.background and card.background.image %} - + {% endif %} {% if card.image %} {{ card.name }} diff --git a/cards/templates/cards/_card_inner_design2.html b/cards/templates/cards/_card_inner_design2.html index e131868..299d241 100644 --- a/cards/templates/cards/_card_inner_design2.html +++ b/cards/templates/cards/_card_inner_design2.html @@ -2,7 +2,7 @@
{% if card.background and card.background.image %} - + {% endif %} {% if card.image %} {{ card.name }} diff --git a/cards/templates/cards/_card_inner_design3.html b/cards/templates/cards/_card_inner_design3.html index 122e0bf..2dd9549 100644 --- a/cards/templates/cards/_card_inner_design3.html +++ b/cards/templates/cards/_card_inner_design3.html @@ -2,7 +2,7 @@
{% if card.background and card.background.image %} - + {% endif %} {% if card.image %} {{ card.name }} diff --git a/cards/templates/cards/_card_inner_design4.html b/cards/templates/cards/_card_inner_design4.html index 5dacbb7..349f521 100644 --- a/cards/templates/cards/_card_inner_design4.html +++ b/cards/templates/cards/_card_inner_design4.html @@ -12,7 +12,7 @@
{% if card.background and card.background.image %} - + {% endif %}
diff --git a/cards/templates/cards/printable.html b/cards/templates/cards/printable.html index 7314897..9a47397 100644 --- a/cards/templates/cards/printable.html +++ b/cards/templates/cards/printable.html @@ -44,7 +44,7 @@ @media print{ /* Hide CSS background-images and show the fallback for reliability */ .print-card .hero-image{background-image:none !important} - .print-card .print-hero-bg{display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0} + .print-card .print-hero-bg{display:block !important; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0} /* Ensure card content layers above the fallback background */ .print-card .toptrump-card{position:relative; z-index:2}