Don't drop title down at all for non-fancy content types
And we display a solid color instead of an image where we *do* expect an image but there isn't one, so no need for the no-featured-image class or extra margin in that case. Ref #28 Ref #32 Ref #26 Ref #27 Ref #29
This commit is contained in:
parent
62dc4757bd
commit
397748d38f
2 changed files with 12 additions and 12 deletions
|
@ -25,17 +25,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* On node pages, drop the title over (where we want) the image (to be). */
|
/* On certain node pages, drop the title over (where we want) the image (to be). */
|
||||||
.page--content-item .page-title {
|
.page--content-item--article,
|
||||||
height: 0;
|
.page--content-item--blog,
|
||||||
position: relative;
|
.page--content-item--collection,
|
||||||
overflow: visible;
|
.page--content-item--people
|
||||||
z-index: 10;
|
{
|
||||||
}
|
.page-title {
|
||||||
|
height: 0;
|
||||||
/* If there's no featured image, leave enough blank space for the dropping down title. */
|
position: relative;
|
||||||
.content.no-featured-image {
|
overflow: visible;
|
||||||
margin-top: 6rem;
|
z-index: 10;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.background-replacement-for-no-image {
|
.background-replacement-for-no-image {
|
||||||
|
|
|
@ -80,7 +80,6 @@ node.isSticky() ? 'is-sticky',
|
||||||
not node.isPublished() ? 'is-unpublished',
|
not node.isPublished() ? 'is-unpublished',
|
||||||
view_mode ? view_mode|clean_class,
|
view_mode ? view_mode|clean_class,
|
||||||
'clearfix',
|
'clearfix',
|
||||||
content.field_image|render is empty ? 'no-featured-image',
|
|
||||||
] %}
|
] %}
|
||||||
<article{{ attributes.addClass(classes) }}>
|
<article{{ attributes.addClass(classes) }}>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue