Merge separate "noscript" CSS module

It looks like there is nothing special about this module. It is
loaded the same time as the other "lazy" module, under the same
conditions.

Change-Id: Iae3e425297ef5ed3f35cb8c8d66b390875158905
This commit is contained in:
thiemowmde 2024-02-26 17:54:53 +01:00
parent f7b6d277ee
commit af86647d5c
4 changed files with 6 additions and 11 deletions

View file

@ -93,9 +93,6 @@
"revisionslider-turn-off-auto-expand-title"
]
},
"ext.RevisionSlider.noscript": {
"styles": "modules/ext.RevisionSlider.noscript.css"
},
"ext.RevisionSlider.Settings": {
"packageFiles": [
"modules/ext.RevisionSlider.Settings.js"

View file

@ -1,12 +1,14 @@
@import 'mediawiki.skin.variables.less';
@media print {
.mw-revslider-container {
.mw-revslider-container {
.client-nojs & {
display: none;
}
@media print {
display: none;
}
}
.mw-revslider-container {
/* This will flip with CSSJanus in case */
/* the interface is in RTL */
direction: ltr;

View file

@ -1,3 +0,0 @@
.client-nojs .mw-revslider-container {
display: none;
}

View file

@ -78,7 +78,6 @@ class RevisionSliderHooks implements DifferenceEngineViewHeaderHook, GetPreferen
$out->addModules( 'ext.RevisionSlider.lazyJs' );
$this->statsdDataFactory->increment( 'RevisionSlider.event.lazyload' );
}
$out->addModuleStyles( 'ext.RevisionSlider.noscript' );
$out->addJsConfigVars( 'extRevisionSliderTimeOffset', $timeOffset );
$out->enableOOUI();