Move changeslist CSS classes from mediawiki.legacy.shared
authorPrateek Saxena <prtksxna@gmail.com>
Mon, 20 Jun 2016 09:18:35 +0000 (14:48 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Mon, 20 Jun 2016 09:19:54 +0000 (14:49 +0530)
Bug: T89981
Change-Id: Ifd90292fc54875403d871429ce6e5020036d4797

includes/actions/HistoryAction.php
includes/specialpage/ChangesListSpecialPage.php
resources/src/mediawiki.legacy/shared.css
resources/src/mediawiki.special/mediawiki.special.changeslist.css

index 63fe97b..700e201 100644 (file)
@@ -117,6 +117,7 @@ class HistoryAction extends FormlessAction {
                $out->setFeedAppendQuery( 'action=history' );
                $out->addModules( 'mediawiki.action.history' );
                $out->addModuleStyles( 'mediawiki.action.history.styles' );
+               $out->addModuleStyles( 'mediawiki.special.changeslist' );
                if ( $config->get( 'UseMediaWikiUIEverywhere' ) ) {
                        $out = $this->getOutput();
                        $out->addModuleStyles( [
index 0966f80..0bd2932 100644 (file)
@@ -477,6 +477,7 @@ abstract class ChangesListSpecialPage extends SpecialPage {
                // Styles and behavior for the legend box (see makeLegend())
                $out->addModuleStyles( 'mediawiki.special.changeslist.legend' );
                $out->addModules( 'mediawiki.special.changeslist.legend.js' );
+               $out->addModuleStyles( 'mediawiki.special.changeslist' );
        }
 
        protected function getGroupName() {
index 4ff403a..73e474e 100644 (file)
@@ -91,37 +91,6 @@ abbr[title],
        }
 }
 
-/* Colored watchlist and recent changes numbers */
-.mw-plusminus-pos {
-       color: #006400; /* dark green */
-}
-
-.mw-plusminus-neg {
-       color: #8b0000; /* dark red */
-}
-
-.mw-plusminus-null {
-       color: #aaa; /* gray */
-}
-
-/*
- * Bidi-isolate these numbers.
- * See https://phabricator.wikimedia.org/T93484
- */
-.mw-plusminus-pos,
-.mw-plusminus-neg,
-.mw-plusminus-null {
-       unicode-bidi: -moz-isolate;
-       unicode-bidi: isolate;
-}
-
-/* Comment portions of RC entries */
-span.comment {
-       font-style: italic;
-       unicode-bidi: -moz-isolate;
-       unicode-bidi: isolate;
-}
-
 /**
  * Add a bit of margin space between the preview and the toolbar.
  * This replaces the ugly <p><br /></p> we used to insert into the page source
index bdae0dd..b27d2a5 100644 (file)
 .mw-changeslist .mw-title {
        unicode-bidi: embed;
 }
+
+/* Colored watchlist and recent changes numbers */
+.mw-plusminus-pos {
+       color: #006400; /* dark green */
+}
+
+.mw-plusminus-neg {
+       color: #8b0000; /* dark red */
+}
+
+.mw-plusminus-null {
+       color: #aaa; /* gray */
+}
+
+/*
+ * Bidi-isolate these numbers.
+ * See https://phabricator.wikimedia.org/T93484
+ */
+.mw-plusminus-pos,
+.mw-plusminus-neg,
+.mw-plusminus-null {
+       unicode-bidi: -moz-isolate;
+       unicode-bidi: isolate;
+}
+
+/* Comment portions of RC entries */
+span.comment {
+       font-style: italic;
+       unicode-bidi: -moz-isolate;
+       unicode-bidi: isolate;
+}