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;
}
.mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-buttonElement {
display: table-cell;
white-space: normal;
font-weight: bold;
width: @notification-popup-width / 2;
box-sizing: border-box;
.mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons {
display: table-row;
&:last-child {
border-left: 1px solid #DDDDDD;
}
.oo-ui-buttonElement {
display: table-cell;
white-space: normal;
font-weight: bold;
width: @notification-popup-width / 2;
box-sizing: border-box;
> .oo-ui-buttonElement-button {
display: block;
line-height: 2.6em;
margin: 0;
border: 0;
padding: 0.5em;
&:last-child {
border-left: 1px solid #DDDDDD;
}
.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;
> .oo-ui-buttonElement-button {
display: block;
line-height: 2.6em;
margin: 0;
border: 0;
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;
}
}
}
}