Ejemplo n.º 1
0
 function setupSkinUserCss(OutputPage $out)
 {
     parent::setupSkinUserCss($out);
     $out->AddModuleStyles('skins.standard');
     $qb = $this->qbSetting();
     $rules = array();
     if (2 == $qb) {
         # Right
         $rules[] = "/* @noflip */#quickbar { position: absolute; top: 4px; right: 4px; border-left: 2px solid #000000; }";
         $rules[] = "/* @noflip */#article, #mw-data-after-content { margin-left: 4px; margin-right: 152px; }";
         $rules[] = "/* @noflip */#topbar, #footer { margin-right: 152px; }";
     } elseif (1 == $qb || 3 == $qb) {
         $rules[] = "/* @noflip */#quickbar { position: absolute; top: 4px; left: 4px; border-right: 1px solid gray; }";
         $rules[] = "/* @noflip */#article, #mw-data-after-content { margin-left: 152px; margin-right: 4px; }";
         $rules[] = "/* @noflip */#topbar, #footer { margin-left: 152px; }";
         if (3 == $qb) {
             $rules[] = "/* @noflip */#quickbar { position: fixed; padding: 4px; }";
         }
     } elseif (4 == $qb) {
         $rules[] = "/* @noflip */#quickbar { position: fixed; right: 0px; top: 0px; padding: 4px;}";
         $rules[] = "/* @noflip */#quickbar { border-right: 1px solid gray; }";
         $rules[] = "/* @noflip */#article, #mw-data-after-content { margin-right: 152px; margin-left: 4px; }";
         $rules[] = "/* @noflip */#topbar, #footer { margin-right: 152px; }";
     }
     $style = implode("\n", $rules);
     $out->addInlineStyle($style, 'flip');
 }
Ejemplo n.º 2
0
 /**
  * @param $out OutputPage
  */
 function setupSkinUserCss(OutputPage $out)
 {
     parent::setupSkinUserCss($out);
     $out->addModuleStyles('skins.cologneblue');
     $qb = $this->qbSetting();
     $rules = array();
     if (2 == $qb) {
         # Right
         $rules[] = "/* @noflip */#quickbar { position: absolute; right: 4px; }";
         $rules[] = "/* @noflip */#article { margin-left: 4px; margin-right: 148px; }";
         $rules[] = "/* @noflip */#footer { margin-right: 152px; }";
     } elseif (1 == $qb) {
         $rules[] = "/* @noflip */#quickbar { position: absolute; left: 4px; }";
         $rules[] = "/* @noflip */#article { margin-left: 148px; margin-right: 4px; }";
         $rules[] = "/* @noflip */#footer { margin-left: 152px; }";
     } elseif (3 == $qb) {
         # Floating left
         $rules[] = "/* @noflip */#quickbar { position:absolute; left:4px }";
         $rules[] = "/* @noflip */#topbar { margin-left: 148px }";
         $rules[] = "/* @noflip */#article { margin-left:148px; margin-right: 4px; }";
         $rules[] = "/* @noflip */body>#quickbar { position:fixed; left:4px; top:4px; overflow:auto; bottom:4px;}";
         # Hides from IE
         $rules[] = "/* @noflip */#footer { margin-left: 152px; }";
     } elseif (4 == $qb) {
         # Floating right
         $rules[] = "/* @noflip */#quickbar { position: fixed; right: 4px; }";
         $rules[] = "/* @noflip */#topbar { margin-right: 148px }";
         $rules[] = "/* @noflip */#article { margin-right: 148px; margin-left: 4px; }";
         $rules[] = "/* @noflip */body>#quickbar { position: fixed; right: 4px; top: 4px; overflow: auto; bottom:4px;}";
         # Hides from IE
         $rules[] = "/* @noflip */#footer { margin-right: 152px; }";
     }
     $style = implode("\n", $rules);
     $out->addInlineStyle($style, 'flip');
 }
Ejemplo n.º 3
0
 function setupSkinUserCss(OutputPage $out)
 {
     parent::setupSkinUserCss($out);
     $meta = file_get_contents('../templates/meta.html');
     $meta = str_replace('{META}', "<link href='/skins/mediawiki/spring.css' rel='stylesheet' type='text/css' />\n\t\t\t\t\t\t\t\t\t\t<link href='/phpbb/styles/spring/theme/header-navbar.css' rel='stylesheet' type='text/css' />\n\t\t\t\t\t\t\t\t\t\t<link href='/header-navbar-wiki-overrides.css' rel='stylesheet' type='text/css' />", $meta);
     /* Import the navbar css too and wiki specific overrides */
     $out->addHeadItem("spring_meta", $meta);
 }
Ejemplo n.º 4
0
 /**
  * @param $out OutputPage
  */
 function setupSkinUserCss(OutputPage $out)
 {
     parent::setupSkinUserCss($out);
     $out->addModuleStyles('skins.nostalgia');
 }