42 lines
836 B
CSS
42 lines
836 B
CSS
.spoiler, .spoiler-show {
|
|
transition: all .3s;
|
|
position: relative;
|
|
color: transparent;
|
|
text-shadow: 0 0 12px var(--text-normal);
|
|
padding: .8em;
|
|
cursor: pointer;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 4px;
|
|
user-select: none;
|
|
}
|
|
|
|
.spoiler-show {
|
|
text-shadow: 0 0 0 transparent !important;
|
|
color: var(--text-normal) !important;
|
|
user-select: auto !important;
|
|
cursor: auto !important;
|
|
}
|
|
|
|
.spoiler::before, .spoiler::after {
|
|
display: block;
|
|
position: absolute;
|
|
font-weight: 500;
|
|
color: var(--text-accent);
|
|
text-align: center;
|
|
text-shadow: none;
|
|
transition: all .3s;
|
|
content: 'CLICK TO SHOW';
|
|
opacity: 0;
|
|
left: 0;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
top: 50%;
|
|
}
|
|
|
|
.spoiler:hover:before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.spoiler:hover {
|
|
text-shadow: 0 0 14px var(--text-normal);
|
|
} |