Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -21,8 +21,8 @@ |
22 | 22 | global $wgOnlineStatusBarColor, $wgOnlineStatusBarY; |
23 | 23 | $color = $wgOnlineStatusBarColor[$mode]; |
24 | 24 | return <<<HTML |
25 | | -<div style="right:0px; margin-top:-10px;" class="metadata topiconstatus" id="status-top"> |
26 | | -<div style="border: 0px solid black; background: transparent; float: right; position: relative; top: {$wgOnlineStatusBarY}px; padding: 5px"> |
| 25 | +<div class="onlinebar metadata topiconstatus" id="status-top"> |
| 26 | +<div class="statusbaricon"> |
27 | 27 | $text</div></div> |
28 | 28 | HTML; |
29 | 29 | } |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.php |
— | — | @@ -68,9 +68,6 @@ |
69 | 69 | $wgOnlineStatusBarDefaultEnabled = false; |
70 | 70 | // how long to wait until user is considered as offline |
71 | 71 | $wgOnlineStatusBar_LogoutTime = 3600; |
72 | | -// position of status bar |
73 | | -// change to -35 to have it in title bar |
74 | | -$wgOnlineStatusBarY = "0"; |
75 | 72 | |
76 | 73 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'wfOnlineStatusBar_CkSchema'; |
77 | 74 | function wfOnlineStatusBar_CkSchema( $updater = null ) { |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.css |
— | — | @@ -3,9 +3,22 @@ |
4 | 4 | where topicon isn't defined |
5 | 5 | */ |
6 | 6 | div.topiconstatus { |
7 | | - position: absolute; |
8 | | - top: -2em; |
9 | | - margin-right: -10px; |
10 | | - display: block !important; |
| 7 | + position: absolute; |
| 8 | + top: -2em; |
| 9 | + margin-right: -10px; |
| 10 | + display: block !important; |
11 | 11 | } |
12 | 12 | |
| 13 | +div.statusbaricon { |
| 14 | + border: 0px solid black; |
| 15 | + background: transparent; |
| 16 | + float: right; |
| 17 | + position: relative; |
| 18 | + top: 0px; |
| 19 | + padding: 5px; |
| 20 | +} |
| 21 | + |
| 22 | +div.onlinebar { |
| 23 | + right:0px; |
| 24 | + margin-top:-10px; |
| 25 | +} |