Skip to content

Commit

Permalink
Modified linear-gradient to work in IE and Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
LebCit committed Nov 11, 2018
1 parent 5bb6d31 commit 353de03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/js/the-clean-blog.js
Expand Up @@ -396,7 +396,8 @@ jQuery(document).ready(function ($) {
//End 12.

//13. Some styles for the calendar widget
$('.widget_calendar #today').parent().prevAll().children(':not(.pad)').css('background-image', 'linear-gradient(to bottom right, transparent calc(50% - 1px), red, transparent calc(50% + 1px))');
$('.widget_calendar #today').prevAll().css('background-image', 'linear-gradient(to bottom right, transparent calc(50% - 1px), red, transparent calc(50% + 1px))');
// Modified linear-gradient to work in IE and Edge.
$('.widget_calendar #today').parent().prevAll().children(':not(.pad)').css('background-image', 'linear-gradient(to right bottom, transparent 49%, red 50%, transparent 51%)');
$('.widget_calendar #today').prevAll().css('background-image', 'linear-gradient(to right bottom, transparent 49%, red 50%, transparent 51%)');
//End 13.
});

0 comments on commit 353de03

Please sign in to comment.