This avoids loading the MonoBook specific style on other skins.
The !important is not necessary because the skin sepecific styles are
at the end of the file and have a higher priority.
Change-Id: I4ba6c8f63b0082ac82260b20202d31d85328aa40
'mediawiki.action.view.postEdit' => [
'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.js',
'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.less',
+ 'skinStyles' => [
+ 'monobook' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.monobook.css',
+ ],
'dependencies' => [
'mediawiki.jqueryMsg',
'mediawiki.notification'
}
}
-// TODO: Move to monobook skin
-.skin-monobook .postedit {
- top: 6em !important; /* stylelint-disable-line declaration-no-important */
-}
-
.postedit-faded {
opacity: 0;
}
--- /dev/null
+.postedit {
+ top: 6em;
+}