Skip to content

Commit cc23feb

Browse files
committed
added blurred spoiler
1 parent 639806b commit cc23feb

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

assets/css/screen.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,4 +664,11 @@ License: https://www.wowthemes.net/freebies-license/
664664
}
665665
.sticky-top-80 {
666666
top:80px;
667+
}
668+
669+
.spoiler {
670+
color: transparent;
671+
text-shadow:0 0 6px rgba(0,0,0,0.2);
672+
transition: all .4s;
673+
cursor:pointer;
667674
}

assets/js/mediumish.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,8 @@ jQuery(document).ready(function($){
8888
$('.site-content').css('margin-top', $('header').outerHeight() + 'px');
8989

9090
// spoilers
91-
$("span.spoiler").hide();
92-
$('<a class="reveal">Reveal Spoiler &gt;&gt;</a> ').insertBefore('.spoiler');
93-
$("a.reveal").click(function(){
94-
$(this).parents("p").children("span.spoiler").fadeIn(1500);
95-
$(this).parents("p").children("a.reveal").fadeOut(0);
96-
});
91+
$(document).on('click', '.spoiler', function() {
92+
$(this).removeClass('spoiler');
93+
});
9794

9895
});

0 commit comments

Comments
 (0)