mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +00:00
Merge "Mobile action menu should stick to bottom of screen"
This commit is contained in:
commit
f35c0f0715
|
@ -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',
|
||||
|
|
26
modules/styles/mw.echo.ui.overlay.minerva.less
Normal file
26
modules/styles/mw.echo.ui.overlay.minerva.less
Normal 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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue