From 84c6e07c7248314343e75eb85cf7bb50acb80544 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 15 May 2016 15:28:42 +0200 Subject: [PATCH] Added visuals for spoilers --- .../templates/spoilerBBCodeTag.tpl | 41 ++++++++----------- .../install/files/style/bbcode/spoiler.scss | 13 ++++++ 2 files changed, 29 insertions(+), 25 deletions(-) create mode 100644 wcfsetup/install/files/style/bbcode/spoiler.scss 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; + } +} -- 2.20.1