From: Alexander Ebert Date: Fri, 23 Dec 2016 10:40:00 +0000 (+0100) Subject: Using spans instead of `` X-Git-Tag: 3.0.0_RC_3~65 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bac7aefb6dc44a7784ad62e2187af3b5422ba9bd;p=GitHub%2FWoltLab%2FWCF.git Using spans instead of `` `
` and `
` are better in terms of semantics, but heavily limit the abiliy to nest them into other elements, as they're block-elements themselves. This is especially the case when used as inline images, because browsers will pop them out of the flow. --- diff --git a/com.woltlab.wcf/templates/mediaBBCodeTag.tpl b/com.woltlab.wcf/templates/mediaBBCodeTag.tpl index b4f206b367..a988ab095c 100644 --- a/com.woltlab.wcf/templates/mediaBBCodeTag.tpl +++ b/com.woltlab.wcf/templates/mediaBBCodeTag.tpl @@ -1,4 +1,4 @@ -
+ {if $thumbnailSize != 'original'} {$media->altText} {else} @@ -6,6 +6,6 @@ {/if} {if $media->caption} -
{$media->caption}
+ {$media->caption} {/if} -
+ diff --git a/wcfsetup/install/files/style/bbcode/media.scss b/wcfsetup/install/files/style/bbcode/media.scss index b8613ae1d6..11aaccabe7 100644 --- a/wcfsetup/install/files/style/bbcode/media.scss +++ b/wcfsetup/install/files/style/bbcode/media.scss @@ -1,8 +1,9 @@ .mediaBBCode { display: inline-block; - figcaption { + .mediaBBCodeCaption { color: $wcfContentDimmedText; + display: block; margin-top: 5px; text-align: center;