blob: b43911b9823edfc950941f27921a75136ed06ad1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
.spoiler-toggle {
display: none; // Hide the checkbox.
}
.spoiler-content {
display: inline-block; // Allow content to only take up its own width.
cursor: help; // Indicate interactive element.
.spoiler-hidden {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
filter: blur(6px);
user-select: none;
a {
pointer-events: none; // Make links unclickable.
}
}
}
.spoiler-toggle:checked + .spoiler-content {
.spoiler-hidden {
filter: none;
user-select: auto;
a {
pointer-events: auto; // Enable clicking on links when revealed.
}
}
}
.spoiler-container.fixed-blur {
.spoiler-content:before {
display: inline-block; // Block display within the inline flow.
filter: blur(6px);
content: 'SPOILER'; // Display the word "SPOILER".
}
.spoiler-content .spoiler-hidden {
display: none; // Completely hide the actual content.
}
.spoiler-toggle:checked + .spoiler-content {
&:before {
content: none; // Hide the word "SPOILER".
}
.spoiler-hidden {
display: inline; // Reveal the actual content.
}
}
}
|