Remove color:black from table {} in skins (bug 28422) + small fixes
authorKrinkle <krinkle@users.mediawiki.org>
Wed, 6 Apr 2011 16:31:46 +0000 (16:31 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Wed, 6 Apr 2011 16:31:46 +0000 (16:31 +0000)
* 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
skins/common/diff.css
skins/common/shared.css
skins/monobook/main.css
skins/vector/screen.css

index eded36a..bf81dd7 100644 (file)
@@ -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( $( '<link rel="stylesheet" type="text/css" />' )
index 3d10064..80286d8 100644 (file)
@@ -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
index 2af7c88..10abbcd 100644 (file)
@@ -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;
index 4397bb0..c2db5a1 100644 (file)
@@ -62,7 +62,6 @@ div#globalWrapper {
 
 table {
        font-size: 100%;
-       color: black;
 }
 a {
        text-decoration: none;
index 2c4b7e7..b983c00 100644 (file)
@@ -825,7 +825,6 @@ dd {
 /* Tables */
 table {
        font-size: 100%;
-       color: black;
 }
 /* Forms */
 fieldset {