From b7aaa1c214428bc8f803139fbccf6e82b1817c76 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Wed, 6 Apr 2011 16:31:46 +0000 Subject: [PATCH] Remove color:black from table {} in skins (bug 28422) + small fixes * Remove color:black from table {} in skins (bug 28422) * Add color:black to .wikitable (since it has a background-color) * Update comment about CSS3 'word-wrap:break-word' support in Gecko * Remove line-break in mediawiki.js (it's ~ 90 chars, acceptable) --- resources/mediawiki/mediawiki.js | 4 +--- skins/common/diff.css | 6 ++++-- skins/common/shared.css | 1 + skins/monobook/main.css | 1 - skins/vector/screen.css | 1 - 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index eded36a81d..bf81dd7724 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -1026,9 +1026,7 @@ window.mediaWiki = new ( function( $ ) { // Allow calling with an external script or single dependency as a string if ( typeof modules === 'string' ) { // Support adding arbitrary external scripts - if ( modules.substr( 0, 7 ) == 'http://' - || modules.substr( 0, 8 ) == 'https://' ) - { + if ( modules.substr( 0, 7 ) == 'http://' || modules.substr( 0, 8 ) == 'https://' ) { if ( type === 'text/css' ) { $( 'head' ) .append( $( '' ) diff --git a/skins/common/diff.css b/skins/common/diff.css index 3d1006486e..80286d8e63 100644 --- a/skins/common/diff.css +++ b/skins/common/diff.css @@ -54,8 +54,10 @@ table.diff col.diff-content { } table.diff td div { /* Force-wrap very long lines such as URLs or page-widening char strings. - CSS 3 draft..., but Gecko doesn't support it yet: - https://bugzilla.mozilla.org/show_bug.cgi?id=99457 */ + CSS 3 only (In Gecko 1.9.1 / Firefox 3.5): + https://bugzilla.mozilla.org/show_bug.cgi?id=99457 + https://developer.mozilla.org/web-tech/2008/08/20/word-wrap-break-word/ + https://developer.mozilla.org/En/CSS/Word-wrap */ word-wrap: break-word; /* As fallback, scrollbars will be added for very wide cells diff --git a/skins/common/shared.css b/skins/common/shared.css index 2af7c88047..10abbcd0f5 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -299,6 +299,7 @@ table.wikitable { background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; + color: black; } .wikitable th, .wikitable td { border: 1px #aaa solid; diff --git a/skins/monobook/main.css b/skins/monobook/main.css index 4397bb027f..c2db5a172d 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -62,7 +62,6 @@ div#globalWrapper { table { font-size: 100%; - color: black; } a { text-decoration: none; diff --git a/skins/vector/screen.css b/skins/vector/screen.css index 2c4b7e7167..b983c00195 100644 --- a/skins/vector/screen.css +++ b/skins/vector/screen.css @@ -825,7 +825,6 @@ dd { /* Tables */ table { font-size: 100%; - color: black; } /* Forms */ fieldset { -- 2.20.1