-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make bootstrap-v card responsive and CSS class based
- Loading branch information
1 parent
263e925
commit 7ba03d2
Showing
3 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<div class="card m-3" style="width: 15rem; height: 23rem"> | ||
<a href="{{ card.href }}" class="card-link px-3"> | ||
<img src="{{ site.amazon-s3 }}/assets/img/catalog/thumbnails/{{ card.img }}.png" class="card-img-top" alt="{{ card.title }}"> | ||
</a> | ||
<div class="card-body"> | ||
<a href="{{ card.href }}" class="card-link"> | ||
<h5 class="card-title">{{ card.title }}</h5> | ||
</a> | ||
<p class="card-text small">{{ card.text }}</p> | ||
</div> | ||
<div class="card-body"> | ||
<a href="{{ card.href }}" class="card-link float-right pt-3">{{ card.button }}</a> | ||
<div class="col-6 col-md-4 col-lg-3"> | ||
<div class="card my-3"> | ||
<a href="{{ card.href }}" class="card-link px-3"> | ||
<img src="{{ site.amazon-s3 }}/assets/img/catalog/thumbnails/{{ card.img }}.png" class="card-img-top" alt="{{ card.title }}"> | ||
</a> | ||
<div class="card-body"> | ||
<a href="{{ card.href }}" class="card-link"> | ||
<h5 class="card-title">{{ card.title }}</h5> | ||
</a> | ||
<p class="card-text small line-clamp-2">{{ card.text }}</p> | ||
</div> | ||
<div class="card-body"> | ||
<a href="{{ card.href }}" class="card-link float-right pt-3">{{ card.button }}</a> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters