2011/8/16 Brion Vibber <[email protected]>: > On Mon, Aug 15, 2011 at 1:23 PM, Robin Pepermans <[email protected]>wrote: > >> I suppose most people now that I improved the RTL support. >> Documentation of that is now at >> http://www.mediawiki.org/wiki/Directionality_support >> If it is incomplete or unclear about something, please ask so I can >> improve the docs. >> > > This reminds me -- just how is all the RTL magic for styles handled? > > Page currently says "Thanks to ResourceLoader including CSSJanus, CSS is > automatically flipped to right-to-left when the user language is RTL. This > is default since 1.18 (in previous versions it was dependent on the wiki > content language <https://bugzilla.wikimedia.org/show_bug.cgi?id=6100>)." > > However styles for content should follow the content language, while styles > for UI should follow the UI language; are there multiple sets of rules, or > all the rules setting stuff appropriately based on whether it's in an .rtl > or .ltr section and it all just works out?
There was no decent solution for this. Most of the style is for UI, and only some stuff is for the content (like editsection, ul/ol). For that, I introduced the mw-content-ltr / mw-content-rtl classes. The external link icons were too difficult to fix it that way, so these still depend on the UI language. For diffs (and similar things), I made PHP add classes (like diff-contentalign-right, diff-contentalign-left) and then made CSS style both classes. Relevant bug: bug 28693 _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
