<div class="contentItemList">
{foreach from=$objects item='article'}
- <article class="contentItem">
+ <article class="contentItem contentItemMultiColumn">
<a href="{$article->getLink()}" class="contentItemLink">
- <div class="contentItemImage" style="background-image: url({if $article->getImage()}{$article->getImage()->getThumbnailLink('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoURL()}{/if})">
+ <div class="contentItemImage contentItemImageLarge" style="background-image: url({if $article->getImage()}{$article->getImage()->getThumbnailLink('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoURL()}{/if})">
{hascontent}
<div class="contentItemBadges">
{content}
.contentItemList {
display: flex;
flex-wrap: wrap;
- margin-bottom: -20px;
- justify-content: space-between;
+ margin: 0 0 -20px -20px;
}
.contentItem {
box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
display: flex;
flex-direction: column;
- margin-bottom: 20px;
+ margin: 0 0 20px 20px;
position: relative;
overflow: hidden;
}
}
.contentItemMultiColumn {
- flex: 0 0 calc(50% - 10px);
- max-width: calc(50% - 10px); /* IE 11 */
+ flex: 0 0 calc(50% - 20px);
+ max-width: calc(50% - 20px); /* IE 11 */
}
.contentItemLink {
@include screen-lg {
/* There are no sidebars, use a three column layout. */
.content:first-child:last-child {
- .contentItem {
- flex: 0 0 calc(100% / 3 - 15px);
- max-width: calc(100% / 3 - 15px); /* IE 11 */
+ .contentItemMultiColumn {
+ flex: 0 0 calc(100% / 3 - 20px);
+ max-width: calc(100% / 3 - 20px); /* IE 11 */
}
}
}
@include screen-md {
/* The sidebar, if any, is not adjacent to the content, use a three column layout. */
- .contentItem {
- flex: 0 0 calc(100% / 3 - 15px);
- max-width: calc(100% / 3 - 15px); /* IE 11 */
+ .contentItemMultiColumn {
+ flex: 0 0 calc(100% / 3 - 20px);
+ max-width: calc(100% / 3 - 20px); /* IE 11 */
}
}
display: block;
}
- .contentItem {
+ .contentItemMultiColumn {
max-width: none;
}
}