Merge "Set mobile width cutoff to 550px"

This commit is contained in:
jenkins-bot 2018-06-06 21:15:39 +00:00 committed by Gerrit Code Review
commit 8a9bea4df7
5 changed files with 7 additions and 7 deletions

View file

@ -103,7 +103,7 @@ class SkinMonoBook extends SkinTemplate {
'targets' => [ 'desktop', 'mobile' ],
'scripts' => [ 'resources/mobile-echo.js' ],
'styles' => [ 'resources/mobile-echo.less' => [
'media' => 'screen and (max-width: 850px)'
'media' => 'screen and (max-width: 550px)'
] ],
'dependencies' => [ 'ext.echo.badgeicons', 'mediawiki.util' ],
'messages' => [ 'monobook-notifications-link', 'monobook-notifications-link-none' ]

View file

@ -1,6 +1,6 @@
( function ( mw, $ ) {
$( function () {
var mobileCutoffWidth = 850,
var mobileCutoffWidth = 550,
notificationIcons = $( '#pt-notifications-alert, #pt-notifications-notice' ),
echoHacked = false,
echoHackActive = false,

View file

@ -1,5 +1,5 @@
$( function () {
var mobileCutoffWidth = 850,
var mobileCutoffWidth = 550,
ULSTrigger = $( '#pt-uls' ),
ULSMoved = false;

View file

@ -1,6 +1,6 @@
( function ( mw, $ ) {
$( function () {
var mobileCutoffWidth = 850,
var mobileCutoffWidth = 550,
// Track if DOM has been set up for mobile fanciness yet
monobookMobileElements = false,
// Toggles and targets for popouts

View file

@ -49,10 +49,10 @@
"media": "screen"
},
"resources/screen-desktop.css": {
"media": "screen and (min-width: 851px)"
"media": "screen and (min-width: 551px)"
},
"resources/screen-mobile.less": {
"media": "screen and (max-width: 850px)"
"media": "screen and (max-width: 550px)"
}
}
},
@ -63,7 +63,7 @@
],
"styles": {
"resources/mobile.js.less": {
"media": "screen and (max-width: 850px)"
"media": "screen and (max-width: 550px)"
}
},
"dependencies": [