<!-- begin:parser_nonessential -->
<div class="spoilerBox jsSpoilerBox">
- <header class="jsOnly">
+ <div class="jsOnly spoilerBoxHeader">
<a class="button small jsSpoilerToggle"{if $buttonTitle} data-has-custom-label="true"{/if}>{if $buttonTitle}{@$buttonTitle}{else}{lang}wcf.bbcode.spoiler.show{/lang}{/if}</a>
- </header>
+ </div>
- <div style="display: none">
+ <div class="spoilerBoxContent" style="display: none">
{@$content}
</div>
</div>
<div class="spoilerBox jsSpoilerBox">
- <header class="jsOnly">
+ <div class="jsOnly spoilerBoxHeader">
<a class="button small jsSpoilerToggle"{if $buttonLabel} data-has-custom-label="true"{/if}>{if $buttonLabel}{$buttonLabel}{else}{lang}wcf.bbcode.spoiler.show{/lang}{/if}</a>
- </header>
+ </div>
- <div style="display: none">
+ <div class="spoilerBoxContent" style="display: none">
<!-- META_CODE_INNER_CONTENT -->
</div>
.spoilerBox {
margin-top: 1em;
- > div {
+ > .spoilerBoxContent {
background-color: $wcfContentBackground;
box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
padding: 10px 20px;