Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
purpleSloth
Homepage
Commits
6d047e43
Commit
6d047e43
authored
Jun 25, 2022
by
Tobias Bengfort
Browse files
add card-img class
parent
d54d7464
Changes
3
Hide whitespace changes
Inline
Side-by-side
assets/style.css
View file @
6d047e43
...
...
@@ -218,7 +218,7 @@ a.card:hover {
.card-body
{
padding
:
0
1em
;
}
.card
img
{
.card
-
img
{
min-height
:
10em
;
}
.card
.badge
{
...
...
layouts/partials/front_card.html
View file @
6d047e43
...
...
@@ -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>
...
...
layouts/partials/game_tile.html
View file @
6d047e43
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment