From: glaisher Date: Tue, 21 Apr 2015 12:33:00 +0000 (+0500) Subject: Use CSS columns instead of tables in Special:SpecialPages X-Git-Tag: 1.31.0-rc.0~9918^2~2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=dc40debaea2effd46a43c88d0fc925b3550c829b;ds=inline Use CSS columns instead of tables in Special:SpecialPages On small screens, it will show only one column rather than two columns. Bug: T88910 Change-Id: Iabe572e964347902280c8634feee27385c01c877 --- diff --git a/includes/specials/SpecialSpecialpages.php b/includes/specials/SpecialSpecialpages.php index ed3ad5bf7e..c3234e1be6 100644 --- a/includes/specials/SpecialSpecialpages.php +++ b/includes/specials/SpecialSpecialpages.php @@ -96,22 +96,14 @@ class SpecialSpecialpages extends UnlistedSpecialPage { $includesCachedPages = false; foreach ( $groups as $group => $sortedPages ) { - $total = count( $sortedPages ); - $middle = ceil( $total / 2 ); - $count = 0; $out->wrapWikiMsg( "

$1

\n", "specialpages-group-$group" ); $out->addHTML( - Html::openElement( - 'table', - array( 'style' => 'width:100%;', 'class' => 'mw-specialpages-table' ) - ) . "\n" . - Html::openElement( 'tr' ) . "\n" . - Html::openElement( 'td', array( 'style' => 'width:30%;vertical-align:top' ) ) . "\n" . - Html::openElement( 'ul' ) . "\n" + Html::openElement( 'div', array( 'class' => 'mw-specialpages-list' ) ) + . '