Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bs5 utility classes to manage image padding on cards #10

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading