Merge "Correct display for full-screen dialogs in Mobile VE"

This commit is contained in:
jenkins-bot 2015-04-21 00:20:11 +00:00 committed by Gerrit Code Review
commit 5ff9e04a96
5 changed files with 28 additions and 16 deletions

View file

@ -1416,7 +1416,7 @@ $wgResourceModules += array(
),
'minerva' => array(
'modules/ve-mw/ui/themes/minerva/pages/ve.ui.MWParameterPage.css',
'modules/ve-mw/ui/themes/minerva/pages/ve.ui.MWTemplatePage.css',
'modules/ve-mw/ui/themes/minerva/ve.ui.MobileWindowManager.css',
),
),
'dependencies' => array(

View file

@ -1432,7 +1432,7 @@
],
"minerva": [
"modules/ve-mw/ui/themes/minerva/pages/ve.ui.MWParameterPage.css",
"modules/ve-mw/ui/themes/minerva/pages/ve.ui.MWTemplatePage.css"
"modules/ve-mw/ui/themes/minerva/ve.ui.MobileWindowManager.css"
]
},
"dependencies": [

View file

@ -44,4 +44,9 @@
.ve-ui-mwParameterPage-more {
display: none;
margin: 1em 0 0.5em 0;
}
.ve-ui-mwParameterPage:last-child .ve-ui-mwParameterPage-more {
display: block;
}

View file

@ -1,14 +0,0 @@
/*!
* VisualEditor MediaWiki UserInterface TemplatePage styles.
*
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-ui-mwTemplatePage-more {
display: none;
}
.ve-ui-mwTemplatePage-description {
display: none;
}

View file

@ -0,0 +1,21 @@
/*!
* VisualEditor MediaWiki UserInterface MobileWindowManager styles.
*
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/*
* HACK: We have to override position:fixed; for mobile dialogs.
* Desktop dialogs use position: fixed, but mobile WebKit treats
* position:fixed like they are made of unrecognizable chunk of
* weirdness, and end up with everything broken, from the
* rendering to the ability to type properly inside input fields.
*
* The mobile dialogs are all full-screen, so we can use the
* more reliable position:aboslute; and save users trouble with
* mobile UX.
*/
.ve-ui-mobileWindowManager > .oo-ui-dialog {
position: absolute;
}