mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 02:54:06 +08:00
89580ee379
* FEATURE: Bundle discourse-spoiler-alert plugin into core Formerly https://github.com/discourse/discourse-spoiler-alert * DEV: Switch to new addComposerToolbarPopupMenuOption plugin API `api.addToolbarPopupMenuOptionsCallback` has been deprecated in913fd3a7b3
This commit was just added to the plugin, so adding it here.49f86ba72e
55 lines
647 B
SCSS
55 lines
647 B
SCSS
.spoiled {
|
|
cursor: auto;
|
|
-webkit-transform: translateZ(0); // Safari jitter fix
|
|
|
|
.lightbox .meta {
|
|
display: none;
|
|
}
|
|
|
|
svg {
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
.spoiler-blurred {
|
|
@include unselectable;
|
|
cursor: pointer;
|
|
filter: blur(0.5em);
|
|
|
|
a,
|
|
area,
|
|
audio,
|
|
button,
|
|
details,
|
|
embed,
|
|
iframe,
|
|
img.animated,
|
|
input,
|
|
map,
|
|
object,
|
|
option,
|
|
portal,
|
|
select,
|
|
textarea,
|
|
track,
|
|
video,
|
|
.lightbox {
|
|
pointer-events: none;
|
|
}
|
|
|
|
img {
|
|
filter: blur(1em);
|
|
}
|
|
|
|
.discourse-no-touch & {
|
|
&:hover,
|
|
&:focus {
|
|
filter: blur(0.18em);
|
|
|
|
img {
|
|
filter: blur(0.5em);
|
|
}
|
|
}
|
|
}
|
|
}
|