MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 482: Line 482:
/****************************** Common Gradient ******************************/
/****************************** Common Gradient ******************************/
$(function(){
$(function(){
     $('table > tbody > tr > th').css('background-image', 'linear-gradient(to bottom, #eee, ' + this.style.backgroundColor + ')');
     $('table > tbody > tr > th').each(function(){
        var bgc = $(this).css('background-color');
        $(this).css('background-image', 'linear-gradient(to bottom, #eee, ' + bgc + ')');
});
});