MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 300: Line 300:
         if ($(this).parents('.section-characters').length) return;
         if ($(this).parents('.section-characters').length) return;
         if (o < 155 && rgb != 'rgba(0, 0, 0, 0)') {
         if (o < 155 && rgb != 'rgba(0, 0, 0, 0)') {
             $(this).addClass('force-white');
             $(this).addClass('force-white'); //css('color', 'white').css('text-shadow', '1px 1px 1px #000');
            $(this).parents('.section').find('.mw-collapsible-text').addClass('force-white'); //css('color', 'white').css('text-shadow', '1px 1px 1px #000');
         } else if ($(this).parents('.instance-page').length || $(this).parents('.auto-header-color').length || force) {
         } else if ($(this).parents('.instance-page').length || force) {
             $(this).addClass('force-black'); //.css('color', 'black').css('text-shadow', 'none');
            $(this).addClass('force-black');
             $(this).parents('.section').find('.mw-collapsible-text').addClass('force-black'); //.css('color', 'black').css('text-shadow', 'none');
         }
         }
     });
     });