diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-14 21:05:44 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-14 21:05:44 +0100 |
commit | 1cb215828f193ec4bac25f4dabb08c9aadc34ede (patch) | |
tree | 926e2c16ce6130d43401d4e084de8e19eeb3e12d /pyblackbird_cc/templates | |
parent | 8a13e1543334f86803cd9909ba3fa5d4619074c0 (diff) |
Changed the colour of the card description test
- Uses my own CSS class - technical stuff
Diffstat (limited to 'pyblackbird_cc/templates')
-rw-r--r-- | pyblackbird_cc/templates/resources/resource_card_featured.html | 4 | ||||
-rw-r--r-- | pyblackbird_cc/templates/resources/resource_card_standard.html | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/pyblackbird_cc/templates/resources/resource_card_featured.html b/pyblackbird_cc/templates/resources/resource_card_featured.html index 586a851..79ae205 100644 --- a/pyblackbird_cc/templates/resources/resource_card_featured.html +++ b/pyblackbird_cc/templates/resources/resource_card_featured.html @@ -24,7 +24,9 @@ {% endif %} </div> {% if resource.card_description %} - <p class="card-text my-2">{{ resource.card_description | markdown | safe }}</p> + <div class="my-card-text"> + <p class="card-text my-2">{{ resource.card_description | markdown | safe }}</p> + </div> {% else %} <p class="card-text my-2">{{ resource.description | markdown | safe }}</p> {% endif %} diff --git a/pyblackbird_cc/templates/resources/resource_card_standard.html b/pyblackbird_cc/templates/resources/resource_card_standard.html index b3d230e..66e77ab 100644 --- a/pyblackbird_cc/templates/resources/resource_card_standard.html +++ b/pyblackbird_cc/templates/resources/resource_card_standard.html @@ -32,7 +32,9 @@ <span class="badge bg-info me-2">Feature slot: {{ resource.feature_slot }}</span> {% endif %} </div> - <p>{{ resource.card_description }}</p> + <div class="my-card-text my-2"> + <p>{{ resource.card_description }}</p> + </div> <div class="d-flex flex-row justify-content-between align-items-end mt-2"> <p class="card-text m-1"><small class="text-muted">1 credit</small></p> <button type="button" class="btn btn-success fs-6 px-2 py-0">Add to basket</button> |