From: Alexander Ebert Date: Sun, 15 May 2016 13:28:42 +0000 (+0200) Subject: Added visuals for spoilers X-Git-Tag: 3.0.0_Beta_1~1725 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=84c6e07c7248314343e75eb85cf7bb50acb80544;p=GitHub%2FWoltLab%2FWCF.git Added visuals for spoilers --- diff --git a/com.woltlab.wcf/templates/spoilerBBCodeTag.tpl b/com.woltlab.wcf/templates/spoilerBBCodeTag.tpl index 7785dc3b2c..3230c2431c 100644 --- a/com.woltlab.wcf/templates/spoilerBBCodeTag.tpl +++ b/com.woltlab.wcf/templates/spoilerBBCodeTag.tpl @@ -1,7 +1,7 @@
- {if $buttonTitle}{@$buttonTitle}{else}{lang}wcf.bbcode.spoiler.show{/lang}{/if} + {if $buttonTitle}{@$buttonTitle}{else}{lang}wcf.bbcode.spoiler.show{/lang}{/if}
@@ -12,32 +12,23 @@ {if !$__wcfSpoilerBBCodeJavaScript|isset} {assign var='__wcfSpoilerBBCodeJavaScript' value=true} {/if} diff --git a/wcfsetup/install/files/style/bbcode/spoiler.scss b/wcfsetup/install/files/style/bbcode/spoiler.scss new file mode 100644 index 0000000000..dcf26b8221 --- /dev/null +++ b/wcfsetup/install/files/style/bbcode/spoiler.scss @@ -0,0 +1,13 @@ +.spoilerBox > div { + border-left: 5px solid $wcfContentBorderInner; + margin-top: 10px; + padding: 10px 0 10px 20px; + + > p:first-child { + margin-top: 0; + } + + > p:last-child { + margin-bottom: 0; + } +}