Wrap table-cell buttons in table-row

Removes unwanted 2px bottom margin from footer buttons.

Change-Id: I67c1d5f21d7c62a436010932e3d7b6257e4b73ff
This commit is contained in:
Ed Sanders 2016-06-21 20:24:20 +01:00
parent b846c11910
commit 1f002745a7

View file

@ -61,30 +61,34 @@
display: block; display: block;
} }
.mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-buttonElement { .mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons {
display: table-cell; display: table-row;
white-space: normal;
font-weight: bold;
width: @notification-popup-width / 2;
box-sizing: border-box;
&:last-child { .oo-ui-buttonElement {
border-left: 1px solid #DDDDDD; display: table-cell;
} white-space: normal;
font-weight: bold;
width: @notification-popup-width / 2;
box-sizing: border-box;
> .oo-ui-buttonElement-button { &:last-child {
display: block; border-left: 1px solid #DDDDDD;
line-height: 2.6em; }
margin: 0;
border: 0;
padding: 0.5em;
.oo-ui-iconElement-icon { > .oo-ui-buttonElement-button {
// HACK: these are absolutely positioned in OOUI, and our line-height: 4em; display: block;
// rule breaks that. line-height: 2.6em;
// FIXME: We should really use a different widget here margin: 0;
position: static; border: 0;
opacity: @opacity-mid; padding: 0.5em;
.oo-ui-iconElement-icon {
// HACK: these are absolutely positioned in OOUI, and our line-height: 4em;
// rule breaks that.
// FIXME: We should really use a different widget here
position: static;
opacity: @opacity-mid;
}
} }
} }
} }