skins.minerva.tablet.styles can be merged

This module is unnecessary - it's loaded unconditionally on a page.
Instead bundle the related CSS inside skins.minerva.content.styles

Change-Id: Ieb37d63332ff5b0cf39835b64cc9f0dcaf62c34f
This commit is contained in:
jdlrobson 2019-01-10 16:28:25 -08:00
parent de3439ffff
commit 1166009c00
5 changed files with 6 additions and 16 deletions

View file

@ -1431,7 +1431,6 @@ class SkinMinerva extends SkinTemplate {
'skins.minerva.content.styles',
'skins.minerva.content.styles.images',
'mediawiki.hlist',
'skins.minerva.tablet.styles',
'mediawiki.ui.icon',
'mediawiki.ui.button',
'skins.minerva.icons.images',

View file

@ -2,8 +2,8 @@
A file for css that optimises the Minerva skin on larger devices.
*/
@import '../../minerva.less/minerva.variables';
@import '../../minerva.less/minerva.mixins';
@import '../../../minerva.less/minerva.variables';
@import '../../../minerva.less/minerva.mixins';
@paddingVertical: 1.4em;
@media screen and ( min-width: @width-breakpoint-tablet ) {

View file

@ -8,8 +8,8 @@ https://www.mediawiki.org/wiki/Requests_for_comment/Allow_styling_in_templates
FIXME: Review all of these hacks to see if they still apply.
*/
@import '../../minerva.less/minerva.variables';
@import '../../minerva.less/minerva.mixins';
@import '../../../minerva.less/minerva.variables';
@import '../../../minerva.less/minerva.mixins';
/* Tablet specific styling */
@media all and ( min-width: @width-breakpoint-tablet ) {

View file

@ -185,7 +185,8 @@
"desktop"
],
"styles": [
"resources/skins.minerva.content.styles/styles.less"
"resources/skins.minerva.content.styles/styles.less",
"resources/skins.minerva.content.styles/tablet/styles.less"
]
},
"skins.minerva.content.styles.images": {
@ -203,16 +204,6 @@
}
}
},
"skins.minerva.tablet.styles": {
"class": "MediaWiki\\Minerva\\ResourceLoaderLessVarFileModule",
"targets": [
"mobile",
"desktop"
],
"styles": [
"resources/skins.minerva.tablet.styles/styles.less"
]
},
"skins.minerva.icons.loggedin": {
"class": "ResourceLoaderImageModule",
"selector": ".mw-ui-icon-minerva-{name}:before",