3
$\begingroup$

I have added a hint to my puzzle, and I wanted to cite the tags used to tag the puzzle.

Of course, the hint had to be spoilerised. However, when I posted, it displayed like this (scroll down to see the hint).

Is there a way to make the tag invisible if the spoiler tag hasn't yet been revealed?

(I can't make an example on meta because the background tag colour is the same as the background spoiler colour, so it doesn't show up)

Note: it seems to have changed now, see here. Out of curiosity, when did this change?

$\endgroup$
2
  • $\begingroup$ I'm closing this question at request of boboquack: it is no longer reproducible. $\endgroup$
    – Deusovi Mod
    Oct 1 '17 at 5:26
  • 2
    $\begingroup$ @Deusovi If this bug no longer occurs, surely it's status-completed (something changed in the SE code to fix it) rather than status-norepro? Because it definitely did occur at one time. $\endgroup$ Oct 1 '17 at 7:31
5
$\begingroup$

No, this isn't possible with standard markdown yet.


I think the developers forgot to include a special CSS-rule for tags. Generally only the color of text will be transitioned to be "invisible" (i.e. the same color as the spoiler-block):

.spoiler {
    transition:color .5s ease-in;
    color:#FFF9E3
}
.spoiler:hover {
    color:#2f3337;
    transition:color .5s ease-in
}

For example, in order to hide an image, the following declarations were added:

.spoiler img {
    visibility:hidden
}
.spoiler:hover img {
    visibility:visible
}

All I can offer is a simple userscript which toggles the opacity of the tags at least in your browser: Here's the GitHub Link.

Note: I didn't use GM_addStyle because I wasn't sure if any add-ons except GreaseMonkey support it.

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged .