{include file='header'}
<div class="section">
+ {if $articleContent->teaser}
+ <div class="section articleTeaserContainer">
+ <div class="htmlContent">
+ <p class="articleTeaser">{@$articleContent->getFormattedTeaser()}</p>
+ </div>
+ </div>
+ {/if}
+
{if $articleContent->getImage() && $articleContent->getImage()->hasThumbnail('large')}
- <div class="section" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
+ <div class="section articleImageContainer" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<figure class="articleImage">
<div class="articleImageWrapper">{@$articleContent->getImage()->getThumbnailTag('large')}</div>
{if $articleContent->getImage()->caption}
<div class="section articleContent" {@$__wcf->getReactionHandler()->getDataAttributes('com.woltlab.wcf.likeableArticle', $article->articleID)}>
<div class="htmlContent">
- {if $articleContent->teaser}
- <p class="articleTeaser">{@$articleContent->getFormattedTeaser()}</p>
- {/if}
-
{@$articleContent->getFormattedContent()}
{event name='htmlArticleContent'}
+.articleTeaser {
+ @include wcfFontBold;
+}
+
+.articleTeaserContainer + .section,
+.articleImageContainer + .section {
+ margin-top: 20px !important;
+}
+
.articleImage {
/* work-around for IE 11 to properly align the image if overflowing */
display: flex;
.articleImageWrapper {
align-items: center;
+ border-radius: 3px;
+ box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
display: flex;
max-height: 300px;
overflow: hidden;
+ width: 100%;
img {
height: auto !important;
}
.articleContent {
- .articleTeaser {
- @include wcfFontBold;
-
- margin-bottom: 20px;
- }
-
.articleTagList {
margin-top: 20px;
}