MediaWiki talk:Rtl.css

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

I plan to remove the code

dd {
       margin-right: 1.6em;
}

and add

*[dir=rtl] dd, *[style$="direction:rtl"] dd, *[style$="direction: rtl"] dd {
       margin-right: 1.6em;
       margin-left: 0;
}

That will render indentations in ltr discussions with empty space on the left side and in rtl discussions on the right side. Any objections? --Slomox (talk) 19:54, 2 May 2009 (UTC)[reply]

Special pages[edit]

I have been told that the Special preferecnes in Arabic is completely wrong... and to post that factoid here. Apparantly Bugzilla does not want to know. GerardM (talk) 22:38, 21 July 2009 (UTC)[reply]

Bugzilla is for MediaWiki code, extensions and systems administration. Rtl.css is not any of those - it was written by a Commons user. Next time you're wrong, please try not to be so difficult about it - it wastes the time and effort of volunteers which would better be spent actually fixing the problem.
I've notified User:Slomox; perhaps they can take a look and try to fix this for us. Probably they will need further details: Gerard, can you provide a screenshot and/or a more thorough description of how it's "completely wrong"? Thanks.  — Mike.lifeguard 22:59, 21 July 2009 (UTC)[reply]
As far as I know, the preferences are not broken due to wrong CSS in MediaWiki:Rtl.css, but only since the preferences rewrite by Andrew Garrett early this month. I already asked Andrew Garrett to comment or to help finding the exact bit of code, that needs to be changed to make it work when this came up on the Village pump some days ago, but he did not respond. At the moment I don't know, what needs to be changed. --Slomox (talk) 23:16, 21 July 2009 (UTC)[reply]
I looked into the code once again and I guess it must be the code in http://commons.wikimedia.org/skins-1.5/common/shared.css under "forms", that creates the problems. Adding the code
body.ltr td.mw-label { text-align: left; }
body.ltr td.mw-input { text-align: right; }
body.ltr td.mw-submit { text-align: right; }
body.rtl td.mw-label { text-align: right; }
body.rtl td.mw-input { text-align: left; }
body.rtl td.mw-submit { text-align: left; }
in MediaWiki:Rtl.css should improve the situation. But my lack of reading abilities in Arabic makes it impossible to me to judge whether it really solves the problems or just makes it less suck. Perhaps somebody else can test the CSS in his personal CSS file? --Slomox (talk) 23:41, 21 July 2009 (UTC)[reply]

Fix for vector[edit]

In vector "column-content" doesn't exist and this css doesn't work properly. Please replace it with the following:

body {
        direction: rtl;
/*    unicode-bidi: bidi-override;*/
        unicode-bidi: embed;
}
#content { direction: ltr; }
/* Special page is 100% translated, so set the direction in ns--1 to rtl */
.ns--1 #content, .ns-6 #content{ direction:rtl; }
 
#wpTextbox1, #wikiPreview{ direction: ltr; }
 
/* upload page */
 
#mw-upload-form { direction: rtl; }

ערן (talk) 16:14, 5 April 2010 (UTC)[reply]