How do spoilers work?

Avatar

By Cotopaxi42 9 October 2016 20:12

Member · 20 comments

Hi,

I was wondering: how do spoilers work?
When I put the bbcode, I have the hidden text under the spoiler title but when I click on the spoiler title, the text under is white and the background is white too. So I have to select the text to read it.
Should it be like this? Or should the text be black or dark and the background white?
Maybe it's because I am using night mode?

[spoiler]Who knows![/spoiler]

Thanks!

Last edited by Cotopaxi42 (9 October 2016 20:14)

Avatar

By Cotopaxi42 9 October 2016 20:17

Member · 20 comments

Ok I tried to use it without night mode and it works perfectly. So night mode is the problem.
Could you change the background color or the text color?

Thanks!

Avatar

By Yannick 10 October 2016 07:33

Administrator · 1,387 comments

You can fix this by adding the following code to "Custom CSS". Thanks for reporting, this will be fixed in 2.0.6.

.night .panel.panel-spoiler .panel-body {
    background-color: #444 !important;
}

You can do anything

Avatar

By Cotopaxi42 10 October 2016 07:43

Member · 20 comments

I changed it in backstage but the background is still white. I am using Sunrise theme, maybe that's why?

Avatar

By Yannick 10 October 2016 08:07

Administrator · 1,387 comments

You might need to add !important after it. Otherwise, go to themes > Fifteen > style.css and add the code above (with !important) to the end of the stylesheet.


You can do anything

Avatar

By Cotopaxi42 10 October 2016 08:17

Member · 20 comments

It works, thanks!

The code is:

.night .panel.panel-spoiler .panel-body {
    background-color: #444 !important;
}