$out->setFeedAppendQuery( 'action=history' );
$out->addModules( 'mediawiki.action.history' );
$out->addModuleStyles( [
+ 'mediawiki.interface.helpers.styles',
'mediawiki.action.history.styles',
'mediawiki.special.changeslist',
] );
$this->rcCacheIndex = 0;
$this->lastdate = '';
$this->rclistOpen = false;
- $this->getOutput()->addModuleStyles( 'mediawiki.special.changeslist' );
+ $this->getOutput()->addModuleStyles( [
+ 'mediawiki.interface.helpers.styles',
+ 'mediawiki.special.changeslist'
+ ] );
return '<div class="mw-changeslist">';
}
$this->rclistOpen = false;
$this->getOutput()->addModuleStyles( [
'mediawiki.icon',
+ 'mediawiki.interface.helpers.styles',
'mediawiki.special.changeslist',
'mediawiki.special.changeslist.enhanced',
] );
*/
public function showDiffStyle() {
if ( !$this->isSlotDiffRenderer ) {
- $this->getOutput()->addModuleStyles( 'mediawiki.diff.styles' );
+ $this->getOutput()->addModuleStyles( [
+ 'mediawiki.interface.helpers.styles',
+ 'mediawiki.diff.styles'
+ ] );
foreach ( $this->getSlotDiffRenderers() as $slotDiffRenderer ) {
$slotDiffRenderer->addModules( $this->getOutput() );
}
$out = $this->getOutput();
// Styles and behavior for the legend box (see makeLegend())
$out->addModuleStyles( [
+ 'mediawiki.interface.helpers.styles',
'mediawiki.special.changeslist.legend',
'mediawiki.special.changeslist',
] );
$out = $this->getOutput();
// Modules required for viewing the list of contributions (also when included on other pages)
$out->addModuleStyles( [
+ 'mediawiki.interface.helpers.styles',
'mediawiki.special',
'mediawiki.special.changeslist',
] );
],
],
'mediawiki.diff.styles' => [
+ // FIXME: Remove class and lessMessages
+ // when I6aad563e48f41c783df8b176a4f437e60a1255cc has
+ // been in production for 1 week.
'class' => ResourceLoaderLessVarFileModule::class,
'styles' => [
- 'resources/src/mediawiki.diff.styles/header.less',
+ // Remove resources/src/mediawiki.interface.helpers.styles.less
+ // when I6aad563e48f41c783df8b176a4f437e60a1255cc has
+ // been in production for 1 week.
+ 'resources/src/mediawiki.interface.helpers.styles.less',
'resources/src/mediawiki.diff.styles/diff.css',
'resources/src/mediawiki.diff.styles/print.css' => [
'media' => 'print'
'lessMessages' => [
'parentheses-start',
'parentheses-end',
+ 'pipe-separator'
],
'targets' => [ 'desktop', 'mobile' ],
],
'oojs-ui.styles.icons-media',
],
],
+ 'mediawiki.interface.helpers.styles' => [
+ 'class' => ResourceLoaderLessVarFileModule::class,
+ 'lessMessages' => [
+ 'parentheses-start',
+ 'parentheses-end',
+ 'pipe-separator'
+ ],
+ 'styles' => [
+ 'resources/src/mediawiki.interface.helpers.styles.less',
+ ],
+ 'targets' => [
+ 'desktop', 'mobile'
+ ],
+ ],
'mediawiki.special' => [
'styles' => [
'resources/src/mediawiki.special/special.less',
'targets' => [ 'desktop', 'mobile' ],
],
'mediawiki.special.changeslist' => [
+ // FIXME: Remove class and lessMessages
+ // when I6aad563e48f41c783df8b176a4f437e60a1255cc has
+ // been in production for 1 week.
'class' => ResourceLoaderLessVarFileModule::class,
'lessMessages' => [
'parentheses-start',
'parentheses-end',
'pipe-separator'
],
- 'styles' => 'resources/src/mediawiki.special.changeslist.less',
+ 'styles' => [
+ // FIXME: Remove this line when I6aad563e48f41c783df8b176a4f437e60a1255cc has
+ // been in production for 1 week.
+ 'resources/src/mediawiki.interface.helpers.styles.less',
+ 'resources/src/mediawiki.special.changeslist.less',
+ ],
'targets' => [ 'desktop', 'mobile' ],
],
'mediawiki.special.changeslist.enhanced' => [
+++ /dev/null
-.mw-tag-markers {
- &:before {
- content: '@{msg-parentheses-start}';
- }
-
- &:after {
- content: '@{msg-parentheses-end}';
- }
-}
--- /dev/null
+/**
+ * Helper classes used across special pages
+ */
+
+/* Content dividers */
+/* @todo FIXME: Hard coded ". .". Is there a message for this? Should there be? */
+.mw-changeslist-separator:empty:before {
+ content: '. .';
+}
+
+.comment--without-parentheses,
+.mw-changeslist-links,
+.mw-diff-bytes,
+/* Needed by pages calling ChangeTags::formatSummaryRow (T212613) */
+.mw-tag-markers,
+.mw-uctop {
+ &:before {
+ content: '@{msg-parentheses-start}';
+ }
+
+ &:after {
+ content: '@{msg-parentheses-end}';
+ }
+}
+
+.mw-changeslist-links {
+ display: inline-block;
+
+ > span:not( :first-child ):before {
+ content: '@{msg-pipe-separator}';
+ }
+}
.mw-rcfilters-ui-highlights {
display: none;
}
-
-/* Content dividers */
-/* @todo FIXME: Hard coded ". .". Is there a message for this? Should there be? */
-.mw-changeslist-separator:empty:before {
- content: '. .';
-}
-
-.comment--without-parentheses,
-.mw-changeslist-links,
-.mw-diff-bytes,
-.mw-tag-markers,
-.mw-uctop {
- &:before {
- content: '@{msg-parentheses-start}';
- }
-
- &:after {
- content: '@{msg-parentheses-end}';
- }
-}
-
-.mw-changeslist-links {
- display: inline-block;
-
- > span:not( :first-child ):before {
- content: '@{msg-pipe-separator}';
- }
-}