2023-04-03 19:44:38 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2019-10-25 20:53:39 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
@import '../echo.variables.less';
|
2015-08-13 00:54:16 +00:00
|
|
|
|
|
|
|
.mw-echo-ui-notificationBadgeButtonPopupWidget {
|
2015-09-17 00:05:52 +00:00
|
|
|
position: relative;
|
2015-08-13 00:54:16 +00:00
|
|
|
|
2017-12-20 23:44:27 +00:00
|
|
|
&-popup {
|
2015-10-16 23:18:25 +00:00
|
|
|
> .oo-ui-popupWidget-popup {
|
|
|
|
> .oo-ui-popupWidget-head {
|
2022-04-20 04:59:30 +00:00
|
|
|
box-sizing: border-box;
|
2018-03-26 09:10:06 +00:00
|
|
|
height: 3.1428571em; // = 44px as result of 44 / 16 (font-size browser) / 0.875 (OOUI WikimediaUI theme font-size)
|
2023-04-03 19:44:38 +00:00
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-subtle;
|
2020-12-08 22:05:08 +00:00
|
|
|
margin: 0;
|
2015-08-13 00:54:16 +00:00
|
|
|
|
2015-10-16 23:18:25 +00:00
|
|
|
> .oo-ui-iconWidget {
|
|
|
|
float: left;
|
2018-03-26 09:10:06 +00:00
|
|
|
height: 100%;
|
|
|
|
margin: 0 0 0 1.1428571em; // = 16px as result of 16 / 16 / 0.875
|
2016-01-18 22:19:04 +00:00
|
|
|
opacity: @opacity-mid;
|
2015-10-16 23:18:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .oo-ui-labelElement-label {
|
2018-03-26 09:10:06 +00:00
|
|
|
margin: 0 0 0 0.4761905em; // = 8px as result of ≈0.5714286 / 1.2 (element's font-size)
|
2015-10-16 23:18:25 +00:00
|
|
|
font-size: 1.2em;
|
|
|
|
font-weight: bold;
|
2020-08-10 10:57:48 +00:00
|
|
|
line-height: 2.5595238em; // = 43px as result of 43 (44 - 1 because of the border-box) / 16 / 0.875 / 1.2 (element's font-size)
|
2015-10-16 23:18:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-echo-ui-notificationsWidget-markAllReadButton {
|
2018-03-26 09:10:06 +00:00
|
|
|
margin-top: 0.4285714em; // = 6px as result of 6 / 16 / 0.875
|
|
|
|
margin-right: 0.5714286em; // = 8px as result of 8 / 16 / 0.875
|
2015-10-16 23:18:25 +00:00
|
|
|
}
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
|
2015-10-16 23:18:25 +00:00
|
|
|
> .oo-ui-popupWidget-body {
|
|
|
|
// Work around scrollbar rendering bug in Chrome
|
2016-03-16 22:40:27 +00:00
|
|
|
overflow-y: visible;
|
2017-03-08 01:20:43 +00:00
|
|
|
// ...but make sure we don't actually overflow in the Y direction,
|
|
|
|
// to avoid breaking ClippableElement
|
|
|
|
overflow-x: auto;
|
2016-05-31 01:08:25 +00:00
|
|
|
|
|
|
|
> .mw-echo-ui-notificationsListWidget > .mw-echo-ui-notificationItemWidget {
|
|
|
|
// The popup body itself has a border. We need to override the notification
|
|
|
|
// item widget styles so that the edge borders of the items are not duplicated
|
|
|
|
border-left: 0;
|
|
|
|
border-right: 0;
|
2018-03-26 09:10:06 +00:00
|
|
|
|
2016-05-31 01:08:25 +00:00
|
|
|
&:last-child {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2023-02-02 16:56:25 +00:00
|
|
|
|
|
|
|
// Compensate for adjusted borders
|
|
|
|
&:focus {
|
2023-04-03 19:44:38 +00:00
|
|
|
box-shadow: @box-shadow-inset-medium @box-shadow-color-progressive--focus;
|
|
|
|
border-color: @border-color-subtle;
|
2023-02-02 16:56:25 +00:00
|
|
|
}
|
2016-05-31 01:08:25 +00:00
|
|
|
}
|
2015-10-16 23:18:25 +00:00
|
|
|
}
|
2016-01-18 22:32:36 +00:00
|
|
|
|
|
|
|
> .oo-ui-popupWidget-footer {
|
|
|
|
width: 100%;
|
2018-03-26 09:10:06 +00:00
|
|
|
margin: 0; // Override OOUI's popup footer margins (T171302)
|
2023-04-03 19:44:38 +00:00
|
|
|
border-top: @border-width-base @border-style-base @border-color-subtle;
|
2017-07-21 20:04:51 +00:00
|
|
|
|
2016-01-18 22:32:36 +00:00
|
|
|
> .oo-ui-buttonGroupWidget {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2016-06-21 19:24:20 +00:00
|
|
|
.mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons {
|
2022-11-30 22:45:09 +00:00
|
|
|
display: flex;
|
|
|
|
padding-bottom: 0;
|
2016-06-21 19:24:20 +00:00
|
|
|
|
|
|
|
.oo-ui-buttonElement {
|
2022-11-30 22:45:09 +00:00
|
|
|
flex: 1;
|
2016-06-21 19:24:20 +00:00
|
|
|
|
|
|
|
&:last-child {
|
2023-04-03 19:44:38 +00:00
|
|
|
border-left: @border-width-base @border-style-base @border-color-subtle;
|
2016-06-21 19:24:20 +00:00
|
|
|
}
|
2016-01-18 22:32:36 +00:00
|
|
|
|
2016-06-21 19:24:20 +00:00
|
|
|
> .oo-ui-buttonElement-button {
|
|
|
|
display: block;
|
2018-03-26 09:10:06 +00:00
|
|
|
line-height: 3.1428571em;
|
2016-06-21 19:24:20 +00:00
|
|
|
margin: 0;
|
|
|
|
border: 0;
|
2018-03-26 09:10:06 +00:00
|
|
|
padding: 0 0.5em;
|
2023-02-02 16:56:25 +00:00
|
|
|
|
|
|
|
// Compensate for hidden borders
|
|
|
|
&:focus {
|
2023-04-03 19:44:38 +00:00
|
|
|
box-shadow: @box-shadow-inset-medium @box-shadow-color-progressive--focus;
|
2023-02-02 16:56:25 +00:00
|
|
|
}
|
2016-01-18 22:32:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|