/** * */ function doGetUserStyles() { global $wgStylePath; $s = parent::doGetUserStyles(); $qb = $this->qbSetting(); if (2 == $qb) { # Right $s .= "#quickbar { position: absolute; top: 4px; right: 4px; " . "border-left: 2px solid #000000; }\n" . "#article { margin-left: 4px; margin-right: 152px; }\n"; } else { if (1 == $qb || 3 == $qb) { $s .= "#quickbar { position: absolute; top: 4px; left: 4px; " . "border-right: 1px solid gray; }\n" . "#article { margin-left: 152px; margin-right: 4px; }\n"; } else { if (4 == $qb) { $s .= "#quickbar { border-right: 1px solid gray; }\n" . "#article { margin-right: 152px; margin-left: 4px; }\n"; } } } return $s; }
function doGetUserStyles() { global $wgOut; $s = parent::doGetUserStyles(); $qb = $this->qbSetting(); return $s; }
function doGetUserStyles() { global $wgOut, $wgStyleSheetPath; $s = parent::doGetUserStyles(); $qb = $this->qbSetting(); if (2 == $qb) { # Right $s .= "#quickbar { position: absolute; right: 4px; }\n" . "#article { margin-left: 4px; margin-right: 148px; }\n"; } else { if (1 == $qb) { $s .= "#quickbar { position: absolute; left: 4px; }\n" . "#article { margin-left: 148px; margin-right: 4px; }\n"; } else { if (3 == $qb) { # Floating left $s .= "#quickbar { position:absolute; left:4px } \n" . "#topbar { margin-left: 148px }\n" . "#article { margin-left:148px; margin-right: 4px; } \n" . "body>#quickbar { position:fixed; left:4px; top:4px; overflow:auto ;bottom:4px;} \n"; # Hides from IE } else { if (4 == $qb) { # Floating right $s .= "#quickbar { position: fixed; right: 4px; } \n" . "#topbar { margin-right: 148px }\n" . "#article { margin-right: 148px; margin-left: 4px; } \n" . "body>#quickbar { position: fixed; right: 4px; top: 4px; overflow: auto ;bottom:4px;} \n"; # Hides from IE } } } } return $s; }