mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 14:23:53 +00:00
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:
parent
de3439ffff
commit
1166009c00
|
@ -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',
|
||||
|
|
|
@ -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 ) {
|
|
@ -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 ) {
|
13
skin.json
13
skin.json
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue