Tpt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/71321
Change subject: Remove the <table> node from the table of contents
......................................................................
Remove the <table> node from the table of contents
Change-Id: Idb05f2877ed2af0b11d510dfad0005690a6efba3
---
M includes/Linker.php
M skins/common/commonContent.css
2 files changed, 10 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/21/71321/1
diff --git a/includes/Linker.php b/includes/Linker.php
index 3529d28..5bb9230 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -1688,10 +1688,10 @@
$lang = wfGetLangObj( $lang );
$title = wfMessage( 'toc' )->inLanguage( $lang )->escaped();
- return '<table id="toc" class="toc"><tr><td>'
+ return '<div id="toc" class="toc">'
. '<div id="toctitle"><h2>' . $title . "</h2></div>\n"
. $toc
- . "</ul>\n</td></tr></table>\n";
+ . "</ul>\n</div>\n";
}
/**
diff --git a/skins/common/commonContent.css b/skins/common/commonContent.css
index a36fa48..6fe19ac 100644
--- a/skins/common/commonContent.css
+++ b/skins/common/commonContent.css
@@ -14,6 +14,14 @@
padding: 5px;
font-size: 95%;
}
+#toc,
+.toc { /* Fit content width */
+ display: -moz-inline-stack; /* Firefox 2 */
+ display: inline-block;
+ vertical-align: top;
+ zoom: 1; /* IE 6-7 */
+ *display: inline;
+}
#toc h2,
.toc h2 {
display: inline;
--
To view, visit https://gerrit.wikimedia.org/r/71321
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idb05f2877ed2af0b11d510dfad0005690a6efba3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Tpt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits