-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.css
55 lines (52 loc) · 1.28 KB
/
styles.css
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
54
55
.crunchy-comments-spoiler-block {
color: transparent;
background: rgba(127, 127, 127, 0.6);
padding: 0 4px;
border-radius: 4px;
vertical-align: middle;
cursor: pointer;
font-family: monospace;
position: relative;
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
transition:
background 0.2s,
color 0.2s;
}
.crunchy-comments-spoiler-block:hover {
background: rgba(127, 127, 127, 0.8);
}
.crunchy-comments-spoiler-block.revealed {
background: rgba(127, 127, 127, 0.3);
color: revert;
-webkit-user-select: auto; /* Safari */
-ms-user-select: auto; /* IE 10 and IE 11 */
user-select: auto; /* Standard syntax */
}
.crunchy-comments-spoiler-block:hover::after {
content: "Spoiler (click to reveal)";
position: absolute;
color: white;
width: max-content;
background: gray;
padding: 0.1em 0.5em;
border-radius: 0.4em;
bottom: 100%;
transform: translate(-50%, -50%);
left: 50%;
font-size: x-small;
}
.crunchy-comments-spoiler-block.revealed:hover::after {
content: "Spoiler (click to hide)";
}
.crunchy-comments-timestamp-block {
color: orange;
font-weight: bold;
background: rgba(255, 165, 0, 0.4);
padding: 0 4px;
font-size: 1.1rem;
border-radius: 4px;
vertical-align: middle;
cursor: pointer;
}