mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-24 13:44:40 +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
76 lines
1.8 KiB
Plaintext
76 lines
1.8 KiB
Plaintext
// FIXME: some of this could be removed if we reused .page-list styling
|
|
@import 'mediawiki.skin.variables.less';
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
@overlayHeaderHeight: 3em;
|
|
|
|
/* stylelint-disable-next-line selector-class-pattern */
|
|
.notifications-overlay {
|
|
// position: fixed + sliding drawer causes weird rendering bugs in Android
|
|
// Browser (tested on 4.0.4 and 4.2.1)
|
|
padding-top: 0;
|
|
|
|
&-header-markAllRead {
|
|
padding-right: 1em;
|
|
}
|
|
|
|
&-overlay {
|
|
position: absolute;
|
|
bottom: @overlayHeaderHeight;
|
|
right: 0;
|
|
left: 0;
|
|
z-index: 1;
|
|
|
|
.mw-echo-ui-actionMenuPopupWidget-menu {
|
|
padding: 0.5em;
|
|
box-shadow: none;
|
|
border-color: @border-color-subtle;
|
|
border-style: @border-style-base;
|
|
border-width: @border-width-base 0 0 0;
|
|
// Override the positioning of the menu
|
|
// so it is "stuck" on the bottom of the
|
|
// notification overlay panel
|
|
position: static !important;
|
|
bottom: 0 !important;
|
|
left: 0 !important;
|
|
width: 100% !important;
|
|
height: auto !important;
|
|
top: auto !important;
|
|
}
|
|
}
|
|
|
|
/* stylelint-disable-next-line selector-class-pattern */
|
|
.overlay-content {
|
|
// this is needed not only on iOS, that's why we repeat it here even though
|
|
// it's in Overlay.less too
|
|
overflow-y: scroll; // has to be scroll, not auto
|
|
position: absolute;
|
|
width: 100%;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
max-width: none; // T219320
|
|
top: @overlayHeaderHeight;
|
|
bottom: @overlayHeaderHeight;
|
|
|
|
.mw-echo-ui-notificationsWidget {
|
|
top: @overlayHeaderHeight;
|
|
height: 100%;
|
|
}
|
|
|
|
.mw-echo-ui-notificationsListWidget > .mw-echo-ui-notificationItemWidget {
|
|
border-left: 0;
|
|
border-right: 0;
|
|
}
|
|
}
|
|
|
|
/* stylelint-disable-next-line selector-class-pattern */
|
|
.user-button {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
padding-right: 0;
|
|
// Should correspond to @z-indexOverOverlay in MobileFrontend
|
|
z-index: 2;
|
|
}
|
|
}
|