mediawiki-extensions-Echo/modules/styles/mw.echo.ui.ActionMenuPopupWidget.less
Ed Sanders 6492fc380d Fix width of buttons-as-option-widgets
Change-Id: I7001815850a829a07c941e94548ea5a65d2fd1d5
2020-07-28 09:51:20 +00:00

21 lines
502 B
Plaintext

.mw-echo-ui-actionMenuPopupWidget-menu {
&.oo-ui-menuSelectWidget {
// Override width: 100%; rule from OOUI
width: auto;
}
// We put MenutItemWidgets in the popup menu, as we reuse the same widgets when they appear outside the popup.
// Re-style them to look more like DecoratedOptionWidgets instead of ButtonOptionWidgets
.mw-echo-ui-menuItemWidget {
display: block;
.oo-ui-buttonElement-button {
display: block;
}
&.oo-ui-labelElement:first-child {
margin-left: 0;
}
}
}