Since
d629541076c the .updatedmarker element was styled via a JavaScript
module - which caused a flash of unstyled content on the history page
for most users, and was left unstyled for noscript users.
Bug: T137383
Change-Id: I362abacf51160a8305b2b0013f65e89deb2ffc93
// Setup page variables.
$out->setFeedAppendQuery( 'action=history' );
$out->addModules( 'mediawiki.action.history' );
+ $out->addModuleStyles( 'mediawiki.action.history.styles' );
if ( $config->get( 'UseMediaWikiUIEverywhere' ) ) {
$out = $this->getOutput();
$out->addModuleStyles( [
],
],
'mediawiki.action.history' => [
- 'position' => 'top',
'scripts' => 'resources/src/mediawiki.action/mediawiki.action.history.js',
'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.css',
],
+ 'mediawiki.action.history.styles' => [
+ 'position' => 'top',
+ 'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.styles.css',
+ ],
'mediawiki.action.history.diff' => [
'position' => 'top',
'styles' => [
+/* Styles for the JavaScript enhancements of the history page */
+
#pagehistory li.before input[name="oldid"],
#pagehistory li.after input[name="diff"] {
visibility: hidden;
}
-
-.updatedmarker {
- background-color: #b7f430;
-}
--- /dev/null
+/* Basic styles for the history page */
+
+.updatedmarker {
+ background-color: #b7f430;
+}