Add a no-featured-image class and give some padding when no value in image field
This commit is contained in:
parent
48cff3dc53
commit
d686009916
2 changed files with 6 additions and 0 deletions
|
@ -25,3 +25,8 @@
|
|||
overflow: visible;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
/* If there's no featured image, leave enough blank space for the dropping down title. */
|
||||
.content.no-featured-image {
|
||||
margin-top: 4rem;
|
||||
}
|
||||
|
|
|
@ -80,6 +80,7 @@ node.isSticky() ? 'is-sticky',
|
|||
not node.isPublished() ? 'is-unpublished',
|
||||
view_mode ? view_mode|clean_class,
|
||||
'clearfix',
|
||||
content.field_image|render is empty ? 'no-featured-image',
|
||||
] %}
|
||||
<article{{ attributes.addClass(classes) }}>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue