1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

Tweak spoiler code

Refs #13, #14, flarum/core#2053.
This commit is contained in:
Franz Liedke
2020-04-24 22:10:36 +02:00
parent ebd30401a8
commit be67f73760
2 changed files with 14 additions and 3 deletions

View File

@@ -6,14 +6,22 @@
*/
span.spoiler {
// Style the inline spoiler itself: a dark block, invisible font
background: #444;
color: transparent;
cursor: default;
// Try to generically hide all possible children
* {
// Links and other interactive elements would give their presence
// away when hovering
pointer-events: none;
padding: 0;
// Children can have special text or background colors
background: transparent;
color: transparent;
}
// Hide images visually
img {
visibility: hidden;
}