mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Merge in styles from Minerva
Drops some no-JS styles (.mw-echo-notification) which didn't do anything useful. Bug: T258936 Change-Id: I72bedc3c3d633e8898c93d5e7d570b8ee7b6a1ff
This commit is contained in:
parent
eb0603c9af
commit
d43ceb8978
|
@ -388,6 +388,11 @@
|
||||||
"styles/mw.echo.ui.CrossWikiUnreadFilterWidget.less",
|
"styles/mw.echo.ui.CrossWikiUnreadFilterWidget.less",
|
||||||
"styles/mw.echo.ui.SpecialHelpMenuWidget.less"
|
"styles/mw.echo.ui.SpecialHelpMenuWidget.less"
|
||||||
],
|
],
|
||||||
|
"skinStyles": {
|
||||||
|
"minerva": [
|
||||||
|
"styles/mw.echo.ui.NotificationsInboxWidget.minerva.less"
|
||||||
|
]
|
||||||
|
},
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"ext.echo.ui",
|
"ext.echo.ui",
|
||||||
"mediawiki.Uri",
|
"mediawiki.Uri",
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
@import 'mediawiki.ui/variables.less';
|
@import 'mediawiki.ui/variables.less';
|
||||||
@import 'mediawiki.mixins.less';
|
@import 'mediawiki.mixins.less';
|
||||||
|
|
||||||
|
@overlayHeaderHeight: 3em;
|
||||||
|
|
||||||
.notifications-overlay {
|
.notifications-overlay {
|
||||||
// position: fixed + sliding drawer causes weird rendering bugs in Android
|
// position: fixed + sliding drawer causes weird rendering bugs in Android
|
||||||
// Browser (tested on 4.0.4 and 4.2.1)
|
// Browser (tested on 4.0.4 and 4.2.1)
|
||||||
|
@ -13,7 +15,7 @@
|
||||||
|
|
||||||
&-overlay {
|
&-overlay {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 3em;
|
bottom: @overlayHeaderHeight;
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
@ -44,10 +46,18 @@
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
max-width: none; // T219320
|
max-width: none; // T219320
|
||||||
|
top: @overlayHeaderHeight;
|
||||||
|
bottom: @overlayHeaderHeight;
|
||||||
|
|
||||||
.mw-echo-ui-notificationsWidget {
|
.mw-echo-ui-notificationsWidget {
|
||||||
|
top: @overlayHeaderHeight;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mw-echo-ui-notificationItemWidget {
|
||||||
|
border-left: 0;
|
||||||
|
border-right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-button {
|
.user-button {
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
// TODO: These should be mobile customizations done in JS
|
||||||
|
|
||||||
|
.mw-echo-ui-notificationsInboxWidget {
|
||||||
|
&-sidebar {
|
||||||
|
// echo notificationsInboxWidget cell
|
||||||
|
// in the desktop version is hidden
|
||||||
|
// in the mobile version.
|
||||||
|
&.mw-echo-ui-notificationsInboxWidget-cell {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-main {
|
||||||
|
&-toolbar {
|
||||||
|
&-readState {
|
||||||
|
// echo notificationsInboxWidget cell for readState
|
||||||
|
// in the desktop version is hidden
|
||||||
|
// in the mobile version.
|
||||||
|
&.mw-echo-ui-notificationsInboxWidget-cell {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& &-toolbarWrapper {
|
||||||
|
height: auto;
|
||||||
|
position: static;
|
||||||
|
padding-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue