mediawiki-extensions-Echo/modules/ooui/styles/mw.echo.ui.NotificationBadgeWidget.less
haritha28 ddc3280c9d Avoid pure black icons in Notification Panel
The pure black icons which drew too much
attention when they are next to a lighter
text is changed by controlling the opacity
of the icons.

Bug: T119378
Change-Id: I2e6c8d47187621607a915e49cfe5380c744efe56
2016-01-14 18:53:28 +05:30

83 lines
1.7 KiB
Plaintext

@import '../../echo.variables';
.mw-echo-ui-notificationBadgeButtonPopupWidget {
position: relative;
&-popup > .oo-ui-popupWidget-popup > .oo-ui-popupWidget-footer {
border-top: 1px solid #DDDDDD;
width: 100%;
> .oo-ui-buttonGroupWidget {
display: block;
}
.oo-ui-buttonElement {
display: table-cell;
white-space: normal;
font-weight: bold;
width: @notification-popup-width / 2;
box-sizing: border-box;
&:last-child {
border-left: 1px solid #DDDDDD;
}
> .oo-ui-buttonElement-button {
display: block;
line-height: 4em;
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;
}
}
}
}
> .oo-ui-popupWidget {
// #p-personal li has a font-size of 0.75em, but we want the
// font size here to be exactly 0.875em, so we must override
// the parent em sizing by dividing.
font-size: 0.875em / 0.75em;
// Align the popup with the center of the button
/* @noflip */
left: 1em;
> .oo-ui-popupWidget-popup {
> .oo-ui-popupWidget-head {
height: 3.5em;
border-bottom: 1px solid #dddddd;
> .oo-ui-iconWidget {
margin: 0.7em 0 1em 1em;
float: left;
opacity: 0.8;
}
> .oo-ui-labelElement-label {
font-size: 1.2em;
padding: 0.3em;
margin-left: 0;
font-weight: bold;
}
.mw-echo-ui-notificationsWidget-markAllReadButton {
margin: 1.25em 1em;
}
}
> .oo-ui-popupWidget-body {
// Work around scrollbar rendering bug in Chrome
overflow: visible;
}
}
}
}