mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-02 19:36:48 +00:00
7f6f792a3a
Replacing 'mediawiki.ui/variables.less' `@import` with new skin-aware 'mediawiki.skin.variables.less' standard. Also replacing and removing scattered WikimediaUI Base v0.15.0 variables with new skin variables. Also - replacing several static values with new Codex design tokens featuring skin variables for following properties: - background-color - color - border-width, border-style, border-color and border shorthand - border-radius - box-shadow colors - outline-width, outline-style, outline-color and outline shorthand - opacity - replacing equal-value Echo variables with new skin variables - replacing `opacity: 0` with `opacity: 1px solid transparent`, which improves accessibility in Windows High Contrast mode Bump required MediaWiki core version to >= v1.41.0. Bug: T332541 Co-Authored-by: Volker E. <volker.e@wikimedia.org> Depends-On: I04f9e48a1cf9dee915cf51e1e12b17ff0a595a06 Change-Id: If3863f07d7c3a8b58808fb03401c1060a92bc2ab
99 lines
2.8 KiB
Plaintext
99 lines
2.8 KiB
Plaintext
@import 'mediawiki.skin.variables.less';
|
|
@import 'mediawiki.mixins.less';
|
|
@import '../echo.variables.less';
|
|
|
|
.mw-echo-ui-notificationBadgeButtonPopupWidget {
|
|
position: relative;
|
|
|
|
&-popup {
|
|
> .oo-ui-popupWidget-popup {
|
|
> .oo-ui-popupWidget-head {
|
|
box-sizing: border-box;
|
|
height: 3.1428571em; // = 44px as result of 44 / 16 (font-size browser) / 0.875 (OOUI WikimediaUI theme font-size)
|
|
border-bottom: @border-width-base @border-style-base @border-color-subtle;
|
|
margin: 0;
|
|
|
|
> .oo-ui-iconWidget {
|
|
float: left;
|
|
height: 100%;
|
|
margin: 0 0 0 1.1428571em; // = 16px as result of 16 / 16 / 0.875
|
|
opacity: @opacity-mid;
|
|
}
|
|
|
|
> .oo-ui-labelElement-label {
|
|
margin: 0 0 0 0.4761905em; // = 8px as result of ≈0.5714286 / 1.2 (element's font-size)
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
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)
|
|
}
|
|
|
|
.mw-echo-ui-notificationsWidget-markAllReadButton {
|
|
margin-top: 0.4285714em; // = 6px as result of 6 / 16 / 0.875
|
|
margin-right: 0.5714286em; // = 8px as result of 8 / 16 / 0.875
|
|
}
|
|
}
|
|
|
|
> .oo-ui-popupWidget-body {
|
|
// Work around scrollbar rendering bug in Chrome
|
|
overflow-y: visible;
|
|
// ...but make sure we don't actually overflow in the Y direction,
|
|
// to avoid breaking ClippableElement
|
|
overflow-x: auto;
|
|
|
|
> .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;
|
|
|
|
&:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
// Compensate for adjusted borders
|
|
&:focus {
|
|
box-shadow: @box-shadow-inset-medium @box-shadow-color-progressive--focus;
|
|
border-color: @border-color-subtle;
|
|
}
|
|
}
|
|
}
|
|
|
|
> .oo-ui-popupWidget-footer {
|
|
width: 100%;
|
|
margin: 0; // Override OOUI's popup footer margins (T171302)
|
|
border-top: @border-width-base @border-style-base @border-color-subtle;
|
|
|
|
> .oo-ui-buttonGroupWidget {
|
|
display: block;
|
|
}
|
|
|
|
.mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons {
|
|
display: flex;
|
|
padding-bottom: 0;
|
|
|
|
.oo-ui-buttonElement {
|
|
flex: 1;
|
|
|
|
&:last-child {
|
|
border-left: @border-width-base @border-style-base @border-color-subtle;
|
|
}
|
|
|
|
> .oo-ui-buttonElement-button {
|
|
display: block;
|
|
line-height: 3.1428571em;
|
|
margin: 0;
|
|
border: 0;
|
|
padding: 0 0.5em;
|
|
|
|
// Compensate for hidden borders
|
|
&:focus {
|
|
box-shadow: @box-shadow-inset-medium @box-shadow-color-progressive--focus;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|