mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 12:08:00 +01:00
More robust spoilering
This commit is contained in:
parent
416d95ff6b
commit
9bb2ed3666
1 changed files with 21 additions and 21 deletions
|
@ -258,6 +258,27 @@ blockquote blockquote blockquote blockquote blockquote blockquote {
|
|||
}
|
||||
}
|
||||
|
||||
.spoiler, .spoiler-revealed {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.spoiler::before, .spoiler-revealed::before {
|
||||
content: ' ';
|
||||
display: block;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: $admin_links_hover_color;
|
||||
}
|
||||
|
||||
.spoiler:hover::before, .spoiler-revealed::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.spoiler {
|
||||
background-color: $admin_links_hover_color;
|
||||
color: $admin_links_hover_color;
|
||||
|
@ -294,27 +315,6 @@ blockquote blockquote blockquote blockquote blockquote blockquote {
|
|||
}
|
||||
}
|
||||
|
||||
.spoiler, .spoiler-revealed {
|
||||
.imgspoiler {
|
||||
background-color: $admin_links_hover_color;
|
||||
img {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.imgspoiler:hover, .imgspoiler-revealed {
|
||||
background-color: $admin_links_color;
|
||||
img {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.imgspoiler, .imgspoiler-revealed {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.literal {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue