mediawiki-skins-Insurgency/skin.json
Kunal Mehta 9f9a5f2290 Add user preference to control responsive MonoBook
This provides a device agnostic, persistent opt-out for the new responsive
functionality.

The preference will show up under the skin selector if the user has their
skin already set to MonoBook. I considered adding a new skin option to
the radio selector of skins, but that is probably unnecessary for the
majority of users, in addition to complicating how to differentiate the
two modes (Classic MonoBook vs. Modern MonoBook?).

Wikis that want to make this opt-in can control the default in the standard
way ($wgDefaultUserOptions), or hide it entirely ($wgHiddenPrefs).

Change-Id: Id22f8e5199ff2b15fd03c94097db5cdc7188f8b1
2018-06-04 21:40:09 -07:00

92 lines
2.2 KiB
JSON

{
"name": "MonoBook",
"author": [
"Gabriel Wicke",
"Isarra Yos",
"..."
],
"url": "https://www.mediawiki.org/wiki/Skin:MonoBook",
"descriptionmsg": "monobook-desc",
"namemsg": "skinname-monobook",
"license-name": "GPL-2.0-or-later",
"type": "skin",
"requires": {
"MediaWiki": ">= 1.29.0"
},
"ValidSkinNames": {
"monobook": "MonoBook"
},
"SkinOOUIThemes": {
"monobook": "Apex"
},
"DefaultUserOptions": {
"monobook-responsive": true
},
"Hooks": {
"GetPreferences": "SkinMonoBook::onGetPreferences",
"ResourceLoaderRegisterModules": "SkinMonoBook::registerMobileExtensionStyles"
},
"MessagesDirs": {
"MonoBook": [
"i18n"
]
},
"ResourceModules": {
"skins.monobook.styles": {
"styles": {
"resources/screen-common.less": {
"media": "screen"
},
"resources/screen-desktop.css": {
"media": "screen"
}
}
},
"skins.monobook.responsive": {
"targets": [ "desktop", "mobile" ],
"styles": {
"resources/screen-common.less": {
"media": "screen"
},
"resources/screen-desktop.css": {
"media": "screen and (min-width: 851px)"
},
"resources/screen-mobile.less": {
"media": "screen and (max-width: 850px)"
}
}
},
"skins.monobook.mobile": {
"targets": [ "desktop", "mobile" ],
"scripts": [
"resources/mobile.js"
],
"styles": {
"resources/mobile.js.less": {
"media": "screen and (max-width: 850px)"
}
},
"dependencies": [
"mediawiki.util"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "",
"remoteSkinPath": "MonoBook"
},
"ResourceModuleSkinStyles": {
"monobook": {
"+mediawiki.action.view.redirectPage": "resources/skinStyles/mediawiki.action.view.redirectPage.css",
"+mediawiki.special.preferences.styles": "resources/skinStyles/mediawiki.special.preferences.styles.less",
"+mediawiki.notification": "resources/skinStyles/mediawiki.notification.less",
"+oojs-ui-core.styles": "resources/skinStyles/ooui.less",
"+ext.uls.interface": "resources/skinStyles/ext.uls.interface.less"
}
},
"AutoloadClasses": {
"SkinMonoBook": "includes/SkinMonoBook.php",
"MonoBookTemplate": "includes/MonoBookTemplate.php"
},
"manifest_version": 1
}