mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-27 16:50:09 +00:00
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:
parent
f7b6d277ee
commit
af86647d5c
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
.client-nojs .mw-revslider-container {
|
||||
display: none;
|
||||
}
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue