Catrope has uploaded a new change for review.
https://gerrit.wikimedia.org/r/302654
Change subject: Adjust notification badges for monobook
......................................................................
Adjust notification badges for monobook
Make everything a little smaller, decrease spacing. In order to
make the icons smaller, we had to override the content: url(...)
into using background-image with sizing.
Bug: T141923
Change-Id: Icacb15871c824ae845acc937973fb230b05b489a
(cherry picked from commit c1e7fc220884dda89ae7b9d05717499fa2bf0d8e)
---
M modules/nojs/mw.echo.badge.monobook.less
1 file changed, 29 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo
refs/changes/54/302654/1
diff --git a/modules/nojs/mw.echo.badge.monobook.less
b/modules/nojs/mw.echo.badge.monobook.less
index ecf5ae8..f1aafb5 100644
--- a/modules/nojs/mw.echo.badge.monobook.less
+++ b/modules/nojs/mw.echo.badge.monobook.less
@@ -3,6 +3,35 @@
/* We have to include the #pt-notifications selector due to monobook */
.mw-echo-notifications-badge {
+ #pt-notifications-notice &,
+ #pt-notifications-alert & {
+ width: 20px;
+ top: -7px;
+
+ &:before {
+ background-size: 16px 16px;
+ width: 16px;
+ height: 16px;
+ content: "";
+ }
+
+ &:after {
+ top: 5px;
+ // Font should be even smaller in monobook
+ font-size: 12px * 0.7;
+ }
+ }
+
+ #pt-notifications-notice &:before {
+ /* @embed */
+ background-image: url('../icons/tray.svg');
+ }
+
+ #pt-notifications-alert &:before {
+ /* @embed */
+ background-image: url('../icons/bell.svg');
+ }
+
&.oo-ui-flaggedElement-unseen,
&.mw-echo-unseen-notifications {
#pt-notifications-alert &:after {
--
To view, visit https://gerrit.wikimedia.org/r/302654
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icacb15871c824ae845acc937973fb230b05b489a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: wmf/1.28.0-wmf.13
Gerrit-Owner: Catrope <[email protected]>
Gerrit-Reviewer: Mooeypoo <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits