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). */
|
||||
.page--content-item .page-title {
|
||||
/* On certain node pages, drop the title over (where we want) the image (to be). */
|
||||
.page--content-item--article,
|
||||
.page--content-item--blog,
|
||||
.page--content-item--collection,
|
||||
.page--content-item--people
|
||||
{
|
||||
.page-title {
|
||||
height: 0;
|
||||
position: relative;
|
||||
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: 6rem;
|
||||
}
|
||||
}
|
||||
|
||||
.background-replacement-for-no-image {
|
||||
|
|
|
@ -80,7 +80,6 @@ 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