MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 475: Line 475:
$(function(){
$(function(){
     $('table > tbody > tr[style~=rainbow]').css({
     $('table > tbody > tr[style~=rainbow]').css({
        '
     });
     });
     $('table > tbody > tr > th').css({
     $('table > tbody > tr > th').each(function(){
         'backgroundImage': 'linear-gradient(to bottom, #eee, ' + $(this).css('backgroundColor') + ')');
         var bgc = $(this).css('background-color');
        $(this).css('background-image', 'linear-gradient(to bottom, #eee, ' + bgc + ')');
     });
     });
});
});