<div class="embeddedContentCategory">{lang}wcf.article.bbcode.type{/lang}</div>
- <div class="embeddedContentTitle" id="{$titleHash}_articleTitle{@$article->articleID}">
+ <h3 class="embeddedContentTitle" id="{$titleHash}_articleTitle{@$article->articleID}">
<a href="{@$article->getLink()}" class="embeddedContentTitleLink">{$article->getTitle()}</a>
- </div>
+ </h3>
<div class="embeddedContentDescription">
{@$article->getFormattedTeaser()}
<div class="embeddedContentCategory">{lang}wcf.article.bbcode.type{/lang}</div>
- <div class="embeddedContentTitle" id="{$titleHash}_articleTitle{@$article->articleID}">
+ <h3 class="embeddedContentTitle" id="{$titleHash}_articleTitle{@$article->articleID}">
<a href="{@$article->getLink()}" class="embeddedContentTitleLink">{$article->getTitle()}</a>
- </div>
+ </h3>
<div class="embeddedContentDescription">
{@$article->getFormattedTeaser()}
.embeddedContent {
background-color: var(--wcfContentBackground);
- box-shadow: 0 0 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
- border-radius: 3px;
+ box-shadow: var(--wcfBoxShadowCard);
+ border-radius: var(--wcfBorderRadius);
margin: 10px 0;
max-width: 400px;
overflow: hidden;
}
+html[data-color-scheme="dark"] .embeddedContent {
+ border: 1px solid var(--wcfContentBorderInner);
+}
+
/* @deprecated 5.4 Use `<img class="embeddedContentImageElement">` instead */
.embeddedContentImage {
background-position: center;
/* @deprecated 6.0 Use `.embeddedContentTitleLink` instead */
.embeddedContentLinkShadow {
- bottom: 0;
- left: 0;
+ inset: 0;
position: absolute;
- right: 0;
- top: 0;
}
.embeddedContentCategory {
@include wcfFontSmall;
}
-.embeddedContentTitle {
+.embeddedContentTitle,
+.messageBody > .messageText .embeddedContentTitle {
color: var(--wcfContentHeadlineText);
display: -webkit-box;
- margin-bottom: 5px;
+ margin: 0;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
.embeddedContentDescription {
color: var(--wcfContentDimmedText);
+ margin-top: 5px;
max-height: calc(5em * #{var(--wcfFontLineHeight)});
overflow: hidden;
position: relative;