Commit 6d047e43 authored by Tobias Bengfort's avatar Tobias Bengfort
Browse files

add card-img class

parent d54d7464
......@@ -218,7 +218,7 @@ a.card:hover {
.card-body {
padding: 0 1em;
}
.card img {
.card-img {
min-height: 10em;
}
.card .badge {
......
......@@ -4,7 +4,7 @@
{{ $banner := .Resources.GetMatch "banner-slice.*" }}
{{ $bannerslice := $banner.Resize "400x600" }}
<img src="{{ $bannerslice.RelPermalink }}" alt="{{ $bannerslice.Title }}" class="flex-grow-1 img-cover">
<img src="{{ $bannerslice.RelPermalink }}" alt="{{ $bannerslice.Title }}" class="card-img flex-grow-1 img-cover">
{{ if isset .Params "category" }}
<span class="badge bg-brand">#{{ .Params.category }}</span>
......
......@@ -13,7 +13,7 @@
{{ end }}
{{ end }}
<img src="{{ $thumbnail.RelPermalink }}" alt="{{ $banner.Title }}" class="flex-grow-1 img-cover">
<img src="{{ $thumbnail.RelPermalink }}" alt="{{ $banner.Title }}" class="card-img flex-grow-1 img-cover">
{{ if isset .Params "category" }}
<span class="badge bg-{{ if eq .Params.category "full game" }}brand{{ else if eq .Params.category "jam" }}inverse{{ else }}body{{ end }}">#{{ .Params.category }}</span>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment