Index: trunk/phase3/skins/Simple.php |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | $rules[] = "a.stub:after { $underline; }"; |
46 | 46 | } |
47 | 47 | $style = implode( "\n", $rules ); |
48 | | - $out->addInlineStyle( $style, /* flip css if RTL */true ); |
| 48 | + $out->addInlineStyle( $style, 'flip' ); |
49 | 49 | |
50 | 50 | } |
51 | 51 | } |
Index: trunk/phase3/skins/CologneBlue.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | $rules[] = "/* @noflip */body>#quickbar { position: fixed; right: 4px; top: 4px; overflow: auto; bottom:4px;}"; # Hides from IE |
49 | 49 | } |
50 | 50 | $style = implode( "\n", $rules ); |
51 | | - $out->addInlineStyle( $style, /* flip css if RTL */true ); |
| 51 | + $out->addInlineStyle( $style, 'flip' ); |
52 | 52 | } |
53 | 53 | |
54 | 54 | } |
Index: trunk/phase3/skins/Standard.php |
— | — | @@ -30,20 +30,20 @@ |
31 | 31 | |
32 | 32 | if ( 2 == $qb ) { # Right |
33 | 33 | $rules[] = "/* @noflip */#quickbar { position: absolute; top: 4px; right: 4px; border-left: 2px solid #000000; }"; |
34 | | - $rules[] = "/* @noflip */#article, /* @noflip */#mw-data-after-content { margin-left: 4px; margin-right: 152px; }"; |
| 34 | + $rules[] = "/* @noflip */#article, #mw-data-after-content { margin-left: 4px; margin-right: 152px; }"; |
35 | 35 | } elseif ( 1 == $qb || 3 == $qb ) { |
36 | 36 | $rules[] = "/* @noflip */#quickbar { position: absolute; top: 4px; left: 4px; border-right: 1px solid gray; }"; |
37 | | - $rules[] = "/* @noflip */#article, /* @noflip */#mw-data-after-content { margin-left: 152px; margin-right: 4px; }"; |
| 37 | + $rules[] = "/* @noflip */#article, #mw-data-after-content { margin-left: 152px; margin-right: 4px; }"; |
38 | 38 | if( 3 == $qb ) { |
39 | 39 | $rules[] = "/* @noflip */#quickbar { position: fixed; padding: 4px; }"; |
40 | 40 | } |
41 | 41 | } elseif ( 4 == $qb ) { |
42 | 42 | $rules[] = "/* @noflip */#quickbar { position: fixed; right: 0px; top: 0px; padding: 4px;}"; |
43 | 43 | $rules[] = "/* @noflip */#quickbar { border-right: 1px solid gray; }"; |
44 | | - $rules[] = "/* @noflip */#article, /* @noflip */#mw-data-after-content { margin-right: 152px; margin-left: 4px; }"; |
| 44 | + $rules[] = "/* @noflip */#article, #mw-data-after-content { margin-right: 152px; margin-left: 4px; }"; |
45 | 45 | } |
46 | 46 | $style = implode( "\n", $rules ); |
47 | | - $out->addInlineStyle( $style, /* flip css if RTL */true ); |
| 47 | + $out->addInlineStyle( $style, 'flip' ); |
48 | 48 | } |
49 | 49 | |
50 | 50 | } |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2955,10 +2955,10 @@ |
2956 | 2956 | /** |
2957 | 2957 | * Adds inline CSS styles |
2958 | 2958 | * @param $style_css Mixed: inline CSS |
2959 | | - * @param $flip Boolean: Whether to flip the CSS if needed |
| 2959 | + * @param $flip False or String: Set to 'flip' to flip the CSS if needed |
2960 | 2960 | */ |
2961 | 2961 | public function addInlineStyle( $style_css, $flip = false ) { |
2962 | | - if( $flip && $this->getLang()->isRTL() ) { |
| 2962 | + if( $flip === 'flip' && $this->getLang()->isRTL() ) { |
2963 | 2963 | # If wanted, and the interface is right-to-left, flip the CSS |
2964 | 2964 | $style_css = CSSJanus::transform( $style_css, true, false ); |
2965 | 2965 | } |