MediaWiki:Common.js: Difference between revisions

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