From 7d1336450717b128ec9bb081bcb641a85d4baac2 Mon Sep 17 00:00:00 2001 From: Krenair Date: Thu, 27 Dec 2012 15:37:58 +0000 Subject: [PATCH] (bug 43441) Show preferences icon on Special:Notifications without label except as title Change-Id: I2bf4b5ba444157464c7c9070411b663485af8935 --- modules/base/unread.png | Bin 108 -> 0 bytes modules/overlay/unread.png | Bin 108 -> 0 bytes modules/special/Feedback.png | Bin 0 -> 435 bytes modules/special/FeedbackHover.png | Bin 0 -> 424 bytes modules/special/Preferences.png | Bin 0 -> 509 bytes modules/special/PreferencesHover.png | Bin 0 -> 498 bytes modules/special/ext.echo.special.css | 13 ++++++++----- special/SpecialNotifications.php | 14 +++++--------- 8 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 modules/base/unread.png delete mode 100644 modules/overlay/unread.png create mode 100644 modules/special/Feedback.png create mode 100644 modules/special/FeedbackHover.png create mode 100644 modules/special/Preferences.png create mode 100644 modules/special/PreferencesHover.png diff --git a/modules/base/unread.png b/modules/base/unread.png deleted file mode 100644 index 552f08ce28b69c95519109512210111160339f13..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 108 zcmeAS@N?(olHy`uVBq!ia0vp^Y(UJ&$P6Tpv-@ra2?Y3rxc>kDUoQThywPJHkaS6q zUoeBivm0qZj)w!idAg^J=AI<(tMhuS_9;SDeJp+m`c)I$ztaD0e0svIL B9o+x` diff --git a/modules/overlay/unread.png b/modules/overlay/unread.png deleted file mode 100644 index 13e51096d4bf718348ea252ce6ad42adbec5d0bc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 108 zcmeAS@N?(olHy`uVBq!ia0vp^B0$W@$P6T(#K@!pDYgKg5ZC|z|Ev42-R{QU0+KEX z@(X5gcyxuBF93=#c)I$ztaD0e0svR3 B9t;2g diff --git a/modules/special/Feedback.png b/modules/special/Feedback.png new file mode 100644 index 0000000000000000000000000000000000000000..a911d99d4d66df24a3a3f9ddb66c6e89fe08511b GIT binary patch literal 435 zcmeAS@N?(olHy`uVBq!ia0vp^vOp}!!3HGHGO0=eDb50q$YKTtZeb8+WSBKa0;HnE zHKHUqKdq!Zu_%?nF(p4KRlzeiF+DXXH8G{K@MNkD0|TRjr;B4q#jT`2|Nq-F?`0G| z%+N3~S(CeGWBPqYRs~bWj=z}+{t5!|1%*Ww4eu_qI@B<9s0Ur#)bH?y`v|MUoCfWR z-;EIr9l|RU9=a;{u|E=1*mhiMkB5R>2XDg-z7BI{LwiXvIhIFq3UN)o_Ul@f@E_@J zwBUM`6m-BTBjjO;!M-cn{6|hV?2zs-7s^!BiFy`1DfP!fM;DF8gF-$`CRHmY`8#sH zVd`UHR~ML~=H;EMq$&zksui z(W|+s!pKB%(%aw??uo)Pn4_8=wnxqJK5^VfC8{H*(VnlcNz8a+q9U`Prri3YJ|WvC zXmroaNKka_o*1mZB8q##q}CT=%|WKdJ`)6Y_Oh%AmdyysuV=WnRD45})h#zEv1v>! a5)8er-dA$&p1KVTa0X9TKbLh*2~7a>;g$LT literal 0 HcmV?d00001 diff --git a/modules/special/FeedbackHover.png b/modules/special/FeedbackHover.png new file mode 100644 index 0000000000000000000000000000000000000000..c46f04a09afa396c8c99af992dab992f4e580221 GIT binary patch literal 424 zcmeAS@N?(olHy`uVBq!ia0vp^vOp}!!3HGHGO0=eDb50q$YKTtZeb8+WSBKa0;HnE zHKHUqKdq!Zu_%?nF(p4KRlzeiF+DXXH8G{K@MNkD0|TR}r;B4q#jT`2|Nq-F?`0G| z%+N3~S(Cd*P*89o!xE_mi+OC{RG2|(5k7}G4cZm2 z8*ebI`k>q@X2+5gub}73Z<|vn#UJ{D`>F@u4vr%m9rj3eeC_o0_!YprF@V{Fk-M>i zDa77><;v;us|uN}C?q*3n#7(to~mdV*(RUGu#kn#+kovtiR087E~6LB0_;hi3H%FJ zUY>g6%`q1z8$*ZBhDA)xsxz1!YPxRxNLRdci1|W7TEj8p6G_P{-Y0UVX$hn=7fNjt z@$T}!sO#dFz!o9IbK+5COU)UVMXe{q9(UO{i5X8!R5WB*f7Hih!-NGua+ARNqbF91 zhkW7)xagG9?YQ!nluv`;&R&)^!Lk`4`SlFfmWpqPvbyCaB{q$TMS>yFJM>#Y?VEUD PC^LAv`njxgN@xNAb=s5j literal 0 HcmV?d00001 diff --git a/modules/special/Preferences.png b/modules/special/Preferences.png new file mode 100644 index 0000000000000000000000000000000000000000..ca4e99b16f4934a4435db29f1c9f068d0a6d7749 GIT binary patch literal 509 zcmVP000>X1^@s6#OZ}&00009a7bBm000XU z000XU0RWnu7ytkO8FWQhbW?9;ba!ELWdK2BZ(?O2No`?gWm08fWO;GPWjp`?0g6dP zK~#9!yj9&%!!Qg^eSIezP$pWDqM3`>m*fjBx5k0MpJ} z2~~r0SScA=b^s#na!3^}bd@5=mWIkRTr0^`uE86{Rw&v1XaU%;nhi5$uKw-Y1zD{H z4-WDOhZO;mekfZFe3$wv;bMK8RN-d`31$Q|b*BcI1=t=l;s&pkikQ1c4(NhC`>qx_ zuWPM3jVDW3UYO~bkR<(ZucAP000>X1^@s6#OZ}&00009a7bBm000XU z000XU0RWnu7ytkO8FWQhbW?9;ba!ELWdK2BZ(?O2No`?gWm08fWO;GPWjp`?0e?wE zK~#9!yjII`gFp-ghI>c_b}9%Z;0od+x8M#;1)&7Hg5VpsxCGJxbl`M=D~yXcRzta% zicdSN698J)iBHmIjt$=Fq~@T7d`CtHN@JxtGC7kt7o@?vOGu2G7rvMQFhyNiyNmYD zfqAx}y~XK^zV(`{Cr7<@S4~~>8@jL&ekNK=abUXS#5tjhC*`>{=qjU`?G}wKhfl() o7q@}yiVpAbOB4lnpl<;N0EM`%&;VL}+W-In07*qoM6N<$f;`*Iz5oCK literal 0 HcmV?d00001 diff --git a/modules/special/ext.echo.special.css b/modules/special/ext.echo.special.css index e08d93cf6..918d5b5ca 100644 --- a/modules/special/ext.echo.special.css +++ b/modules/special/ext.echo.special.css @@ -4,16 +4,19 @@ } #mw-echo-pref-link { - line-height: 1.2em; - font-size: 0.5em; margin: 0 15px; - min-height: 14px; - padding-left: 18px; + height: 25px; + width: 25px; + vertical-align: middle; /* @embed */ - background-image: url(../icons/Settings.png); + background-image: url(Preferences.png); background-repeat: no-repeat; background-position: 0 0; } +#mw-echo-pref-link:hover { + /* @embed */ + background-image: url(PreferencesHover.png); +} .mw-echo-date-section { font-weight: 800; diff --git a/special/SpecialNotifications.php b/special/SpecialNotifications.php index 46b48f39e..f9ee7d3d0 100644 --- a/special/SpecialNotifications.php +++ b/special/SpecialNotifications.php @@ -34,15 +34,11 @@ class SpecialNotifications extends SpecialPage { } // Preferences link - $preferenceLink = Html::element( - 'a', - array( - 'href' => SpecialPage::getTitleFor( 'Preferences' )->getLinkURL() . '#mw-prefsection-echo' - ), - wfMessage( 'preferences' )->text() - ); - - $html = Html::rawElement( 'div', array( 'id' => 'mw-echo-pref-link' ), $preferenceLink ); + $html = Html::rawElement( 'a', array( + 'href' => SpecialPage::getTitleFor( 'Preferences' )->getLinkURL() . '#mw-prefsection-echo', + 'id' => 'mw-echo-pref-link', + 'title' => wfMessage( 'preferences' )->text() + ) ); $notif = ApiEchoNotifications::getNotifications( $user, false, 'html', self::$displayNum + 1, $timestamp, $offset );