Display a bigger image in case of image content

If the content is only an image, we can display a bigger preview image because we won’t have text to display.

Also, split different card view to avoid too much complexity in the entries.html.twig
This commit is contained in:
Jeremy Benoist
2016-11-08 22:17:46 +01:00
parent e9490a3443
commit 8d7b4f0eff
10 changed files with 164 additions and 97 deletions

View File

@ -568,7 +568,12 @@ a.original {
height: 10em;
}
.card .card-image .preview {
.card .card-fullimage {
height: 13.5em;
}
.card .card-image .preview,
.card .card-fullimage .preview {
height: 14em;
background-size: cover;
background-repeat: no-repeat;