r67927 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67926‎ | r67927 | r67928 >
Date:21:35, 12 June 2010
Author:kaldari
Status:ok
Tags:
Comment:
moving styling from skin to extension per comment to r67784
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialNoticeText.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialNoticeText.php
@@ -97,15 +97,16 @@
9898 function getToggleScripts() {
9999 $showStyle = <<<END
100100 <style type="text/css">
101 -#centralNotice .siteNoticeSmall{display:none;}
102 -#centralNotice .siteNoticeSmallAnon{display:none;}
103 -#centralNotice .siteNoticeSmallUser{display:none;}
104 -#centralNotice.collapsed .siteNoticeBig{display:none;}
105 -#centralNotice.collapsed .siteNoticeSmall{display:block;}
106 -#centralNotice.collapsed .siteNoticeSmallUser{display:block;}
107 -#centralNotice.collapsed .siteNoticeSmallAnon{display:block;}
108 -#centralNotice.anonnotice .siteNoticeSmallUser{display:none !important;}
109 -#centralNotice.usernotice .siteNoticeSmallAnon{display:none !important;}
 101+#centralNotice {margin-bottom: 1em;}
 102+#centralNotice .siteNoticeSmall {display:none;}
 103+#centralNotice .siteNoticeSmallAnon {display:none;}
 104+#centralNotice .siteNoticeSmallUser {display:none;}
 105+#centralNotice.collapsed .siteNoticeBig {display:none;}
 106+#centralNotice.collapsed .siteNoticeSmall {display:block;}
 107+#centralNotice.collapsed .siteNoticeSmallUser {display:block;}
 108+#centralNotice.collapsed .siteNoticeSmallAnon {display:block;}
 109+#centralNotice.anonnotice .siteNoticeSmallUser {display:none !important;}
 110+#centralNotice.usernotice .siteNoticeSmallAnon {display:none !important;}
110111 </style>
111112 END;
112113 $encShowStyle = Xml::encodeJsVar( $showStyle );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r67784putting local sitenotices in their own div and fixing sitenotice styling issu...kaldari08:01, 10 June 2010

Status & tagging log