Merge "Mobile action menu should stick to bottom of screen"

This commit is contained in:
jenkins-bot 2016-08-19 01:08:40 +00:00 committed by Gerrit Code Review
commit f35c0f0715
2 changed files with 29 additions and 0 deletions

View file

@ -101,6 +101,9 @@ $wgResourceModules += array(
'vector' => array(
'styles/mw.echo.ui.overlay.vector.less',
),
'minerva' => array(
'styles/mw.echo.ui.overlay.minerva.less',
),
),
'dependencies' => array(
'ext.echo.logger',

View file

@ -0,0 +1,26 @@
/* In mobile, overlay is positioned at the bottom */
.mw-echo-ui-overlay {
position: fixed;
bottom: 0;
right: 0;
left: 0;
top: auto;
.mw-echo-ui-actionMenuPopupWidget-menu {
padding: 0.5em;
font-size: 1.5em;
box-shadow: none;
border: 1px solid #666;
// Override the positioning of the menu
// so it is "stuck" on the bottom of the
// notification overlay panel
position: static !important;
bottom: 0 !important;
left: 0 !important;
width: 100% !important;
max-width: none !important;
height: auto !important;
top: auto !important;
}
}