Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
FIX: spoilers were regressed for dark themed sites
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitjalan committed Nov 18, 2015
1 parent 3b02ad3 commit 6149920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/javascripts/spoiler.js
Expand Up @@ -10,8 +10,8 @@


function blurText($spoiler, radius) {
var textShadow = "black 0 0 " + radius + "px";
if (isIE) { textShadow = radius <= 0 ? "0 0 0 0 black" : "0 0 " + radius + "px .1px black"; }
var textShadow = "gray 0 0 " + radius + "px";
if (isIE) { textShadow = radius <= 0 ? "0 0 0 0 gray" : "0 0 " + radius + "px .1px gray"; }

$spoiler.css("background-color", "transparent")
.css("color", "rgba(0,0,0,0)")
Expand Down

2 comments on commit 6149920

@ZogStriP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to add a comment here ;)

@arpitjalan
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 😄

Please sign in to comment.