discourse/plugins/spoiler-alert/assets/stylesheets/discourse_spoiler_alert.scss
Blake Erickson 89580ee379
FEATURE: Bundle discourse-spoiler-alert plugin into core (#24030)
* 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 in 913fd3a7b3

This commit was just added to the plugin, so adding it here.

49f86ba72e
2023-10-23 13:50:43 -06:00

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);
}
}
}
}