SpecialSearch: Use CSS instead of cellpadding and cellspacing
authorPrateek Saxena <prtksxna@gmail.com>
Fri, 31 Oct 2014 09:40:16 +0000 (15:10 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Sat, 1 Nov 2014 04:41:49 +0000 (10:11 +0530)
Bug: 72458
Change-Id: I976a7046b5a1b3b5cd87241e283c87bcaac93c3f

includes/specials/SpecialSearch.php
resources/src/mediawiki.special/mediawiki.special.search.css

index 895f1e8..b1baf67 100644 (file)
@@ -895,10 +895,7 @@ class SpecialSearch extends SpecialPage {
                // be arranged nicely while still accommodating different screen widths
                $namespaceTables = '';
                for ( $i = 0; $i < $numRows; $i += 4 ) {
-                       $namespaceTables .= Xml::openElement(
-                               'table',
-                               array( 'cellpadding' => 0, 'cellspacing' => 0 )
-                       );
+                       $namespaceTables .= Xml::openElement( 'table' );
 
                        for ( $j = $i; $j < $i + 4 && $j < $numRows; $j++ ) {
                                $namespaceTables .= Xml::tags( 'tr', null, $rows[$j] );
index ef95507..4b6c14e 100644 (file)
@@ -106,9 +106,10 @@ fieldset#mw-searchoptions div#mw-search-togglebox input {
 fieldset#mw-searchoptions table {
        float: left;
        margin-right: 3em;
+       border-collapse: collapse;
 }
 fieldset#mw-searchoptions table td {
-       padding-right: 1em;
+       padding: 0 1em 0 0;
        white-space: nowrap;
 }
 fieldset#mw-searchoptions div.divider {