no margin in images inside paper cards

This commit is contained in:
Gabriele Musco 2021-12-28 11:32:54 +01:00
parent 9658f0159a
commit 4cdaa9db33
No known key found for this signature in database
GPG Key ID: 0587A5D65B5DC99E
1 changed files with 6 additions and 1 deletions

View File

@ -410,7 +410,12 @@ h6 {font-size: 0.7 * $base_font_size * $title_font_mult;}
.postlistitem.card div {
img {
height: 250px;
min-width: 100%;
{{ if (.Site.Params.paperCards | default false) }}
min-width: calc(100% + #{2*$margin});
margin: 0 #{-$margin};
{{ else }}
min-width: 100%;
{{ end }}
object-fit:
{{ if .Site.Params.FitImageInArticlePreview }}
contain