Skip to content

Commit

Permalink
Merge pull request #10 from sown/image-fixes
Browse files Browse the repository at this point in the history
Use bs5 utility classes to manage image padding on cards
  • Loading branch information
trickeydan committed Jan 15, 2024
2 parents d183391 + 3c1c367 commit 0d2a6f4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion kmicms/core/templates/core/blocks/elements/card.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load wagtailcore_tags wagtailimages_tags %}
{% image value.image width-728 height-240 as tmp_image %}
<div class="card">
<img src="{{ tmp_image.url }}" class="card-img-top" alt="Image">
<img src="{{ tmp_image.url }}" class="card-img-top img-fluid p-3" alt="Image">
<div class="card-body">
<h5 class="card-title">{{ value.title }}</h5>
<p class="card-text">{{ value.text|richtext}}</p>
Expand Down
1 change: 0 additions & 1 deletion kmicms/static/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

// Sections
@import "./sections/auth-panel";
@import "./sections/card-grid";
@import "./sections/masthead";
@import "./sections/showcase";
@import "./sections/testimonials";
Expand Down
13 changes: 0 additions & 13 deletions kmicms/static/css/sections/_card-grid.scss

This file was deleted.

0 comments on commit 0d2a6f4

Please sign in to comment.