From 2a95124caec076077aa513244f4ea948599134dc Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 27 Jul 2023 18:19:27 +0200 Subject: [PATCH] Improve the visuals of spoilers See https://www.woltlab.com/community/thread/300758-spoiler-toggle-button-much-harder-to-see/ --- wcfsetup/install/files/style/bbcode/spoiler.scss | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/style/bbcode/spoiler.scss b/wcfsetup/install/files/style/bbcode/spoiler.scss index 09d3af09df..bb95d81c66 100644 --- a/wcfsetup/install/files/style/bbcode/spoiler.scss +++ b/wcfsetup/install/files/style/bbcode/spoiler.scss @@ -1,15 +1,18 @@ .spoilerBox { - margin: 1em 0; -} - -.spoilerBox[open] .spoilerContent { background-color: var(--wcfContentBackground); border: 1px solid var(--wcfContentBorderInner); border-radius: var(--wcfBorderRadius); - margin-top: 5px; + margin: 1em 0; +} + +.spoilerSummary { padding: 10px; } +.spoilerBox[open] .spoilerContent { + padding: 0 10px 10px 10px; +} + .spoilerContent > :first-child { margin-top: 0 !important; } -- 2.20.1