* Reverting BiDi changes because there were some problems left
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 31 May 2006 20:39:14 +0000 (20:39 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 31 May 2006 20:39:14 +0000 (20:39 +0000)
18 files changed:
RELEASE-NOTES
includes/Article.php
includes/EditPage.php
includes/GlobalFunctions.php
includes/OutputPage.php
includes/Skin.php
includes/SkinTemplate.php
includes/SpecialImagelist.php
includes/SpecialNewpages.php
includes/SpecialShortpages.php
includes/SpecialUnusedimages.php
skins/CologneBlue.php
skins/MonoBook.php
skins/Standard.php
skins/common/common_content_rtl.css [deleted file]
skins/monobook/content_rtl.css [deleted file]
skins/monobook/main.css
skins/monobook/rtl.css

index 7d65490..44700df 100644 (file)
@@ -391,7 +391,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 6126) Allow fallback to customized primary language when user language
   message contains '-'; fixes licenses selector on Commons configuration after
   recent addition of the message to Messages.php
-* (bug 6100) BiDi: different directionality for user interface and wiki content
 
 == Compatibility ==
 
index d970a20..d4a3cde 100644 (file)
@@ -734,7 +734,7 @@ class Article {
         * the given title.
        */
        function view() {
-               global $wgUser, $wgOut, $wgRequest, $wgLang;
+               global $wgUser, $wgOut, $wgRequest, $wgContLang;
                global $wgEnableParserCache, $wgStylePath, $wgUseRCPatrol, $wgParser;
                global $wgUseTrackbacks;
                $sk = $wgUser->getSkin();
@@ -891,7 +891,7 @@ class Article {
                                $wgOut->addHTML( '<pre>'.htmlspecialchars($this->mContent)."\n</pre>" );
                        } else if ( $rt = Title::newFromRedirect( $text ) ) {
                                # Display redirect
-                               $imageDir = $wgLang->isRTL() ? 'rtl' : 'ltr';
+                               $imageDir = $wgContLang->isRTL() ? 'rtl' : 'ltr';
                                $imageUrl = $wgStylePath.'/common/images/redirect' . $imageDir . '.png';
                                # Don't overwrite the subtitle if this was an old revision
                                if( !$wasRedirected && $this->isCurrent() ) {
index 30ed522..341427b 100644 (file)
@@ -1313,10 +1313,7 @@ END
                        $wgOut->addParserOutputNoText( $parserOutput );
 
                        wfProfileOut( $fname );
-                       return $previewhead . 
-                       '<div id="realContent"' . contentdir() . '>' .
-                       $previewHTML . 
-                       '</div><!-- realContent -->';
+                       return $previewhead . $previewHTML;
                }
        }
 
index 992499b..f8ef126 100644 (file)
@@ -1634,12 +1634,8 @@ function in_string( $needle, $str ) {
 }
 
 function wfSpecialList( $page, $details ) {
-       global $wgLang, $wgContLang;
-
-       if ($wgLang->isRTL() != $wgContLang->isRTL()) {
-               $page = "<span" . contentdir() . ">$page</span>";
-       }
-       $details = $details ? ' ' . $wgLang->getDirMark() . "($details)" : "";
+       global $wgContLang;
+       $details = $details ? ' ' . $wgContLang->getDirMark() . "($details)" : "";
        return $page . $details;
 }
 
@@ -1854,36 +1850,6 @@ function wfExplodeMarkup( $separator, $text ) {
        return $items;
 }
 
-/** @todo document */
-/* returns a dir="rtl" or dir="ltr" for the layout (eg: uselang) */
-function layoutdir() {
-       global $wgLang, $wgLanguageCode, $wgContLang, $wgContLanguageCode;
-       $lang = "";
-       $dir = "";
-       if ( $wgLanguageCode != $wgContLanguageCode ) {
-               $lang = " lang='$wgLanguageCode'";
-       }
-       if ( $wgLang->isRTL() != $wgContLang->isRTL() ) {
-               $dir = $wgLang->isRTL() ? " dir='rtl'" : " dir='ltr'";
-       }
-       return $lang . $dir;
-}
-       
-/** @todo document */
-/* returns a dir="rtl" or dir="ltr" for the content (wiki lang) */
-function contentdir() {
-       global $wgLang, $wgLanguageCode, $wgContLang, $wgContLanguageCode;
-       $lang = "";
-       $dir = "";
-       if ( $wgLanguageCode != $wgContLanguageCode ) {
-               $lang = " lang='$wgContLanguageCode'";
-       }
-       if ( $wgLang->isRTL() != $wgContLang->isRTL() ) {
-               $dir = $wgContLang->isRTL() ? " dir='rtl'" : " dir='ltr'";
-       }
-       return $lang . $dir;
-}
-
 class ReplacerCallback {
        function ReplacerCallback( $from, $to ) {
                $this->from = $from;
index 98977e4..c155d38 100644 (file)
@@ -332,9 +332,7 @@ class OutputPage {
                $text = $parserOutput->getText();
                wfRunHooks( 'OutputPageBeforeHTML',array( &$this, &$text ) );
                $parserOutput->setText( $text );
-               $this->addHTML( '<div id="realContent"' . contentdir() . '>');
                $this->addHTML( $parserOutput->getText() );
-               $this->addHTML( '</div><!-- realContent -->');
        }
 
        /**
@@ -387,9 +385,7 @@ class OutputPage {
                        $this->mNewSectionLink = $parserOutput->getNewSection();
                        $text = $parserOutput->getText();
                        wfRunHooks( 'OutputPageBeforeHTML', array( &$this, &$text ) );
-                       $this->addHTML( '<div id="realContent"' . contentdir() . '>');
                        $this->addHTML( $text );
-                       $this->addHTML( '</div><!-- realContent -->');
                        $t = $parserOutput->getTitleText();
                        if( !empty( $t ) ) {
                                $this->setPageTitle( $t );
@@ -952,7 +948,6 @@ class OutputPage {
        function headElement() {
                global $wgDocType, $wgDTD, $wgContLanguageCode, $wgOutputEncoding, $wgMimeType;
                global $wgUser, $wgContLang, $wgUseTrackbacks, $wgTitle;
-               global $wgLang, $wgLanguageCode;
 
                if( $wgMimeType == 'text/xml' || $wgMimeType == 'application/xhtml+xml' || $wgMimeType == 'application/xml' ) {
                        $ret = "<?xml version=\"1.0\" encoding=\"$wgOutputEncoding\" ?>\n";
@@ -966,8 +961,8 @@ class OutputPage {
                        $this->setHTMLTitle(  wfMsg( 'pagetitle', $this->getPageTitle() ));
                }
 
-               $rtl = $wgLang->isRTL() ? " dir='RTL'" : '';
-               $ret .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"$wgLanguageCode\" lang=\"$wgLanguageCode\" $rtl>\n";
+               $rtl = $wgContLang->isRTL() ? " dir='RTL'" : '';
+               $ret .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"$wgContLanguageCode\" lang=\"$wgContLanguageCode\" $rtl>\n";
                $ret .= "<head>\n<title>" . htmlspecialchars( $this->getHTMLTitle() ) . "</title>\n";
                array_push( $this->mMetatags, array( "http:Content-type", "$wgMimeType; charset={$wgOutputEncoding}" ) );
 
index a66fe2e..5bf36ab 100644 (file)
@@ -297,12 +297,11 @@ class Skin extends Linker {
 
        # get the user/site-specific stylesheet, SkinTemplate loads via RawPage.php (settings are cached that way)
        function getUserStylesheet() {
-               global $wgStylePath, $wgRequest, $wgLang, $wgContLang, $wgSquidMaxage;
+               global $wgStylePath, $wgRequest, $wgContLang, $wgSquidMaxage;
                $sheet = $this->getStylesheet();
                $action = $wgRequest->getText('action');
                $s = "@import \"$wgStylePath/$sheet\";\n";
-               if($wgLang->isRTL()) $s .= "@import \"$wgStylePath/common/common_rtl.css\";\n";
-               if($wgContLang->isRTL()) $s .= "@import \"$wgStylePath/common/common_content_rtl.css\";\n";
+               if($wgContLang->isRTL()) $s .= "@import \"$wgStylePath/common/common_rtl.css\";\n";
 
                $query = "action=raw&ctype=text/css&smaxage=$wgSquidMaxage";
                $s .= '@import "' . $this->makeNSUrl( 'Common.css', $query, NS_MEDIAWIKI ) . "\";\n" .
@@ -435,7 +434,7 @@ END;
        }
 
        function doBeforeContent() {
-               global $wgLang;
+               global $wgContLang;
                $fname = 'Skin::doBeforeContent';
                wfProfileIn( $fname );
 
@@ -456,7 +455,7 @@ END;
 
                $shove = ($qb != 0);
                $left = ($qb == 1 || $qb == 3);
-               if($wgLang->isRTL()) $left = !$left;
+               if($wgContLang->isRTL()) $left = !$left;
 
                if ( !$shove ) {
                        $s .= "<td class='top' align='left' valign='top' rowspan='{$rows}'>\n" .
@@ -464,13 +463,13 @@ END;
                } elseif( $left ) {
                        $s .= $this->getQuickbarCompensator( $rows );
                }
-               $l = $wgLang->isRTL() ? 'right' : 'left';
+               $l = $wgContLang->isRTL() ? 'right' : 'left';
                $s .= "<td {$borderhack} align='$l' valign='top'>\n";
 
                $s .= $this->topLinks() ;
                $s .= "<p class='subtitle'>" . $this->pageTitleLinks() . "</p>\n";
 
-               $r = $wgLang->isRTL() ? "left" : "right";
+               $r = $wgContLang->isRTL() ? "left" : "right";
                $s .= "</td>\n<td {$borderhack} valign='top' align='$r' nowrap='nowrap'>";
                $s .= $this->nameAndLogin();
                $s .= "\n<br />" . $this->searchForm() . "</td>";
@@ -997,7 +996,7 @@ END;
                if ( '' != $align ) { $a = " align='{$align}'"; }
                else { $a = ''; }
 
-               $mp = wfMsgForContent( 'mainpage' );
+               $mp = wfMsg( 'mainpage' );
                $titleObj = Title::newFromText( $mp );
                if ( is_object( $titleObj ) ) {
                        $url = $titleObj->escapeLocalURL();
@@ -1252,7 +1251,7 @@ END;
        }
 
        function otherLanguages() {
-               global $wgOut, $wgLang, $wgHideInterlanguageLinks;
+               global $wgOut, $wgContLang, $wgHideInterlanguageLinks;
 
                if ( $wgHideInterlanguageLinks ) {
                        return '';
@@ -1265,20 +1264,20 @@ END;
 
                $s = wfMsg( 'otherlanguages' ) . ': ';
                $first = true;
-               if($wgLang->isRTL()) $s .= '<span dir="LTR">';
+               if($wgContLang->isRTL()) $s .= '<span dir="LTR">';
                foreach( $a as $l ) {
                        if ( ! $first ) { $s .= ' | '; }
                        $first = false;
 
                        $nt = Title::newFromText( $l );
                        $url = $nt->escapeFullURL();
-                       $text = $wgLang->getLanguageName( $nt->getInterwiki() );
+                       $text = $wgContLang->getLanguageName( $nt->getInterwiki() );
 
                        if ( '' == $text ) { $text = $l; }
                        $style = $this->getExternalLinkAttributes( $l, $text );
                        $s .= "<a href=\"{$url}\"{$style}>{$text}</a>";
                }
-               if($wgLang->isRTL()) $s .= '</span>';
+               if($wgContLang->isRTL()) $s .= '</span>';
                return $s;
        }
 
index 5b86d02..f054153 100644 (file)
@@ -134,7 +134,7 @@ class SkinTemplate extends Skin {
         */
        function outputPage( &$out ) {
                global $wgTitle, $wgArticle, $wgUser, $wgLang, $wgContLang, $wgOut;
-               global $wgScript, $wgStylePath, $wgLanguageCode, $wgContLanguageCode;
+               global $wgScript, $wgStylePath, $wgContLanguageCode;
                global $wgMimeType, $wgJsMimeType, $wgOutputEncoding, $wgRequest;
                global $wgDisableCounters, $wgLogo, $action, $wgFeedClasses, $wgHideInterlanguageLinks;
                global $wgMaxCredits, $wgShowCreditsIfMax;
@@ -247,20 +247,8 @@ class SkinTemplate extends Skin {
                $tpl->setRef( 'stylepath', $wgStylePath );
                $tpl->setRef( 'logopath', $wgLogo );
                $tpl->setRef( "lang", $wgContLanguageCode );
-               $tpl->setRef( 'uselang', $wgLanguageCode );
-               $tpl->set( 'dir', $wgLang->isRTL() ? "rtl" : "ltr" );
-               $tpl->set( 'rtl', $wgLang->isRTL() );
-               /* display, if needed, dir=ltr or dir=rtl for the
-                  firstHeading title. This is when the title is
-                  content, eg a site-localized string;
-                  that is the case for all the pages not in Special:
-                  when action is view or history
-                */
-               $tpl->set( 'titledir',
-                       ($this->mTitle->getNamespace() != NS_SPECIAL &&
-                        ($action == 'view' || $action == 'history')) ?
-                               contentdir() : ""
-               );
+               $tpl->set( 'dir', $wgContLang->isRTL() ? "rtl" : "ltr" );
+               $tpl->set( 'rtl', $wgContLang->isRTL() );
                $tpl->set( 'langname', $wgContLang->getLanguageName( $wgContLanguageCode ) );
                $tpl->set( 'showjumplinks', $wgUser->getOption( 'showjumplinks' ) );
                $tpl->setRef( 'username', $this->username );
@@ -404,7 +392,7 @@ class SkinTemplate extends Skin {
                                $nt = Title::newFromText( $l );
                                $language_urls[] = array(
                                        'href' => $nt->getFullURL(),
-                                       'text' => ($wgLang->getLanguageName( $nt->getInterwiki()) != ''?$wgLang->getLanguageName( $nt->getInterwiki()) : $l),
+                                       'text' => ($wgContLang->getLanguageName( $nt->getInterwiki()) != ''?$wgContLang->getLanguageName( $nt->getInterwiki()) : $l),
                                        'class' => $class
                                );
                        }
@@ -899,7 +887,7 @@ class SkinTemplate extends Skin {
                $fname = 'SkinTemplate::setupUserCss';
                wfProfileIn( $fname );
 
-               global $wgRequest, $wgAllowUserCss, $wgUseSiteCss, $wgLang, $wgContLang, $wgSquidMaxage, $wgStylePath, $wgUser;
+               global $wgRequest, $wgAllowUserCss, $wgUseSiteCss, $wgContLang, $wgSquidMaxage, $wgStylePath, $wgUser;
 
                $sitecss = '';
                $usercss = '';
@@ -923,8 +911,7 @@ class SkinTemplate extends Skin {
                        $siteargs .= '&ts=' . $wgUser->mTouched;
                }
 
-               if ($wgLang->isRTL()) $sitecss .= '@import "' . $wgStylePath . '/' . $this->stylename . '/rtl.css";' . "\n";
-               if ($wgContLang->isRTL()) $sitecss .= '@import "' . $wgStylePath . '/' . $this->stylename . '/content_rtl.css";' . "\n";
+               if ($wgContLang->isRTL()) $sitecss .= '@import "' . $wgStylePath . '/' . $this->stylename . '/rtl.css";' . "\n";
 
                # If we use the site's dynamic CSS, throw that in, too
                if ( $wgUseSiteCss ) {
index f9b0ca3..b797216 100644 (file)
@@ -95,7 +95,7 @@ function wfSpecialImagelist() {
                        $ul = $sk->makeLinkObj( Title::makeTitle( NS_USER, $ut ), $ut );
                }
 
-               $dirmark = $wgLang->getDirMark(); // to keep text in correct direction
+               $dirmark = $wgContLang->getDirMark(); // to keep text in correct direction
 
                $ilink = "<a href=\"" . htmlspecialchars( Image::imageUrl( $name ) ) .
                  "\">" . strtr(htmlspecialchars( $name ), '_', ' ') . "</a>";
index cc1a221..3f72352 100644 (file)
@@ -75,7 +75,7 @@ class NewPagesPage extends QueryPage {
                global $wgLang, $wgContLang, $wgUser, $wgUseRCPatrol;
                $u = $result->user;
                $ut = $result->user_text;
-               $dirmark = $wgLang->getDirMark(); // To keep text in correct order
+               $dirmark = $wgContLang->getDirMark(); // To keep text in correct order
 
                $length = wfMsgExt( 'nbytes', array('parsemag', 'escape'),
                        $wgLang->formatNum( $result->length ) );
index b4ca18a..5381e2f 100644 (file)
@@ -58,7 +58,7 @@ class ShortPagesPage extends QueryPage {
                $title = Title::makeTitle( $result->namespace, $result->title );
                $link = $skin->makeKnownLinkObj( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
                $histlink = $skin->makeKnownLinkObj( $title, wfMsgHtml('hist'), 'action=history' );
-               $dirmark = $wgLang->getDirMark();
+               $dirmark = $wgContLang->getDirMark();
 
                return "({$histlink}) {$dirmark}$link {$dirmark}({$nb})";
        }
index 380e100..fa76c57 100644 (file)
@@ -48,7 +48,7 @@ class UnusedimagesPage extends QueryPage {
                $title = Title::makeTitle( NS_IMAGE, $result->title );
 
                $imageUrl = htmlspecialchars( Image::imageUrl( $result->title ) );
-               $dirmark = $wgLang->getDirMark(); // To keep text in correct order
+               $dirmark = $wgContLang->getDirMark(); // To keep text in correct order
 
                $return =
                # The 'desc' linking to the image page
index d08bbbe..9cb3ef3 100644 (file)
@@ -98,15 +98,14 @@ class SkinCologneBlue extends Skin {
        }
 
        function doGetUserStyles() {
-               global $wgOut, $wgLang, $wgUser;
+               global $wgOut;
                $s = parent::doGetUserStyles();
                $qb = $this->qbSetting();
 
-               if ( (!$wgUser->isLoggedIn() && $wgLang->isRTL() ) ||
-                    ( 2 == $qb ) ) { # Right
+               if ( 2 == $qb ) { # Right
                        $s .= "#quickbar { position: absolute; right: 4px; }\n" .
                          "#article { margin-left: 4px; margin-right: 148px; }\n";
-               } else if ( (!$wgUser->isLoggedIn()) || ( 1 == $qb ) ) {
+               } 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
index 024c126..d4c6638 100644 (file)
@@ -51,7 +51,7 @@ class MonoBookTemplate extends QuickTemplate {
                wfSuppressWarnings();
 
 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php $this->text('uselang') ?>" lang="<?php $this->text('uselang') ?>" dir="<?php $this->text('dir') ?>">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php $this->text('lang') ?>" lang="<?php $this->text('lang') ?>" dir="<?php $this->text('dir') ?>">
        <head>
                <meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" />
                <?php $this->html('headlinks') ?>
@@ -93,7 +93,7 @@ class MonoBookTemplate extends QuickTemplate {
        <div id="content">
                <a name="top" id="top"></a>
                <?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?>
-               <h1 class="firstHeading"<?php $this->text('titledir') ?>><?php $this->data['displaytitle']!=""?$this->text('title'):$this->html('title') ?></h1>
+               <h1 class="firstHeading"><?php $this->data['displaytitle']!=""?$this->text('title'):$this->html('title') ?></h1>
                <div id="bodyContent">
                        <h3 id="siteSub"><?php $this->msg('tagline') ?></h3>
                        <div id="contentSub"><?php $this->html('subtitle') ?></div>
@@ -124,9 +124,6 @@ class MonoBookTemplate extends QuickTemplate {
                <h5><?php $this->msg('personaltools') ?></h5>
                <div class="pBody">
                        <ul>
-<?php                  if ($this->data['rtl'] == "1") 
-                               $this->data['personal_urls'] = 
-                               array_reverse($this->data['personal_urls'], true); ?>
 <?php                  foreach($this->data['personal_urls'] as $key => $item) { ?>
                                <li id="pt-<?php echo htmlspecialchars($key) ?>"<?php
                                        if ($item['active']) { ?> class="active"<?php } ?>><a href="<?php
index 1b1b309..8140b7d 100644 (file)
@@ -52,18 +52,16 @@ class SkinStandard extends Skin {
         *
         */
        function doGetUserStyles() {
-               global $wgStylePath, $wgLang, $wgUser;
+               global $wgStylePath;
 
                $s = parent::doGetUserStyles();
                $qb = $this->qbSetting();
 
-               if ( (!$wgUser->isLoggedIn() && $wgLang->isRTL() ) ||
-                    ( 2 == $qb ) ) { # Right
+               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 ( (!$wgUser->isLoggedIn()) ||
-                 ( 1 == $qb || 3 == $qb ) ) {
+               } 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";
@@ -92,7 +90,7 @@ class SkinStandard extends Skin {
        }
 
        function doAfterContent() {
-               global $wgLang;
+               global $wgContLang;
                $fname =  'SkinStandard::doAfterContent';
                wfProfileIn( $fname );
                wfProfileIn( $fname.'-1' );
@@ -107,14 +105,14 @@ class SkinStandard extends Skin {
                $qb = $this->qbSetting();
                $shove = ($qb != 0);
                $left = ($qb == 1 || $qb == 3);
-               if($wgLang->isRTL()) $left = !$left;
+               if($wgContLang->isRTL()) $left = !$left;
 
                if ( $shove && $left ) { # Left
                                $s .= $this->getQuickbarCompensator();
                }
                wfProfileOut( $fname.'-2' );
                wfProfileIn( $fname.'-3' );
-               $l = $wgLang->isRTL() ? 'right' : 'left';
+               $l = $wgContLang->isRTL() ? 'right' : 'left';
                $s .= "<td class='bottom' align='$l' valign='top'>";
 
                $s .= $this->bottomLinks();
diff --git a/skins/common/common_content_rtl.css b/skins/common/common_content_rtl.css
deleted file mode 100644 (file)
index 972c6d6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/* RTL specific styles for date content (not layout) go here */
diff --git a/skins/monobook/content_rtl.css b/skins/monobook/content_rtl.css
deleted file mode 100644 (file)
index b43e254..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
-Right-to-left fixes for MonoBook.
-Places sidebar on right, tweaks various alignment issues.
-
-Works mostly ok nicely on Safari 1.2.1; fine in Mozilla.
-
-Safari bugs (1.2.1):
-* Tabs are still appearing in left-to-right order. (Try after localizing)
-
-Opera bugs (7.23 linux):
-* Some bits of ltr text (sidebar box titles) have forward and backward versions overlapping each other
-
-IE/mac bugs:
-* The thing barfs on Hebrew and Arabic anyway, so no point testing.
-
-Missing features due to lack of support:
-* external link icons
-
-To test:
-* Opera6
-* IE 5.0
-* etc
-
-*/
-#realContent {
-       direction: rtl;
-}
-
-/* Fix alignment */
-.documentByLine {
-       text-align: left;
-}
-
-div div.thumbcaption {
-       text-align: right;
-}
-
-div.magnify,
-#div.townBox {
-       left: auto;
-       right: 0;
-}
-
-/* Fix margins for non-css2 browsers */
-/* top right bottom left */
-
-#realContent ul {
-       margin-left: 0;
-       margin-right: 1.5em;
-}
-#realContent ol {
-       margin-left: 0;
-       margin-right: 2.4em;
-}
-#realContent dd {
-       margin-left: 0;
-       margin-right: 1.6em;
-}
-.tocindent {
-       margin-left: 0;
-       margin-right: 2em;
-}
-div.tright, div.floatright, table.floatright {
-       clear: none;
-}
-div.tleft, div.floatleft, table.floatleft {
-       clear: left;
-}
-div.townBox {
-       margin-left: 0;
-       margin-right: 1em;
-}
-div.townBox dl dd {
-       margin-left: 0;
-       margin-right: 1.1em;
-}
-/* Fix link icons */
-.external {
-       padding: 0 !important;
-       background: none !important;
-}
-
-
-
-/* workaround for moz bug, displayed bullets on left side */
-
-#toc ul {
-       text-align: right;
-}
-
-#toc ul ul {
-       margin: 0 2em 0 0;
-}
index c43c922..2aa0114 100644 (file)
@@ -569,7 +569,7 @@ span.diffchange {
 ** keep the whitespace in front of the ^=, hides rule from konqueror
 ** this is css3, the validator doesn't like it when validating as css2
 */
-#bodyContent a.external[DIR="ltr"],
+#bodyContent a.external,
 #bodyContent a[href ^="gopher://"] {
        background: url(external.png) center right no-repeat;
        padding-right: 13px;
@@ -676,8 +676,6 @@ special external link styling */
        list-style-type: square;
        list-style-image: url(bullet.gif);
        font-size: 95%;
-       margin: .3em 0 0 1.5em;
-       padding: 0;
 }
 .portlet li {
        padding: 0;
@@ -720,7 +718,7 @@ special external link styling */
 }
 
 #p-navigation .pBody {
-/*     padding-right: 0; */
+       padding-right: 0;
 }
 
 #p-navigation a {
index a0428f2..91e2fb3 100644 (file)
@@ -52,11 +52,19 @@ html>body .portlet {
 }
 
 /* Fix alignment */
+.documentByLine,
 .portletDetails,
 .portletMore,
 #p-personal {
        text-align: left;
 }
+
+div div.thumbcaption {
+       text-align: right;
+}
+
+div.magnify,
+#div.townBox,
 #p-logo {
        left: auto;
        right: 0;
@@ -65,20 +73,7 @@ html>body .portlet {
        left: auto;
        right: 0;
 }
-#p-navigation .pBody {
-       padding-right: auto;
-}
 
-/* the icon in front of the user name, single quotes
-in bg url to hide it from iemac */
-li#pt-userpage,
-li#pt-anonuserpage,
-li#pt-login {
-       background: url(user.gif) top right no-repeat;
-       padding-left: 0px;
-       padding-right: 20px;
-       text-transform: none;
-}
 #p-cactions {
        left: auto;
        right: 11.5em;
@@ -109,15 +104,15 @@ li#ca-watch,li#ca-unwatch {
 /* Fix margins for non-css2 browsers */
 /* top right bottom left */
 
-.portlet ul {
+ul {
        margin-left: 0;
        margin-right: 1.5em;
 }
-.portlet ol {
+ol {
        margin-left: 0;
        margin-right: 2.4em;
 }
-.portlet dd {
+dd {
        margin-left: 0;
        margin-right: 1.6em;
 }
@@ -125,6 +120,24 @@ li#ca-watch,li#ca-unwatch {
        margin-right: 1em;
        margin-left: 0;
 }
+.tocindent {
+       margin-left: 0;
+       margin-right: 2em;
+}
+div.tright, div.floatright, table.floatright {
+       clear: none;
+}
+div.tleft, div.floatleft, table.floatleft {
+       clear: left;
+}
+div.townBox {
+       margin-left: 0;
+       margin-right: 1em;
+}
+div.townBox dl dd {
+       margin-left: 0;
+       margin-right: 1.1em;
+}
 #p-personal li {
        margin-left: 0;
        margin-right: 1em;
@@ -139,6 +152,11 @@ li#ca-watch {
 #p-personal li {
        float: left;
 }
+/* Fix link icons */
+.external {
+       padding: 0 !important;
+       background: none !important;
+}
 #footer {
        clear: both;
 }
@@ -173,25 +191,22 @@ li#ca-watch {
        padding-right: 2em;
 }
 
+/* workaround for moz bug, displayed bullets on left side */
+
+#toc ul {
+       text-align: right;
+}
+
+#toc ul ul {
+       margin: 0 2em 0 0;
+}
+
 input#wpSave, input#wpDiff {
        margin-right: 0;
        margin-left: .33em;
 }
+
 #userlogin {
        float: right;
        margin: 0 0 1em 3em;
 }
-
-/* Fix lists */
-ul {
-       margin-left: 0;
-       margin-right: 1.5em;
-}
-ol {
-       margin-left: 0;
-       margin-right: 2.4em;
-}
-dd {
-       margin-left: 0;
-       margin-right: 1.6em;
-}