Voting starts in March for the Drupal Association Board election.
for better RTL language support, I've created *-rtl.css files.
I've noticed that in few places rlt files are not symmetrical:
So in modules/checkout/theme/commerce_checkout.base-rtl.css we have
padding-right: 0 !important;
padding-left: 13px !important;
background-position: left center;
while in modules/checkout/theme/commerce_checkout.base.css just
padding-right: 13px !important; /* LTR */
margin-right: 6px; /* LTR */
background: url(../images/status-active.gif) right center no-repeat; /* LTR */
I'm not sure if it's 'perfect correct' that way (especially if this will be implemented http://groups.drupal.org/node/194488), but anyway I believe it will be better then no rtl css files.
Can I maybe get a little more explanation on how this works? Is the idea that adding /* LTR */ to the file just points out places you'll have to reverse if you're writing an RTL theme? And as the above comment indicates, are these supposed to be symmetrical or are they asymmetrical to avoid having to swap certain padding, margin, etc.?
For more information, you can see this page: http://drupal.org/node/222782 or Core Drupal modules
sorry for my bad english
Exactly, idea for /* LTR */ tags is just to mark places which you need to reverse. They are planing to add some mechanism to auto create *-rlt.css files some day.
Ahh, I see. The asymmetry, then, is just compensating for the fact that our base stylesheet is using padding-right specifically as opposed to padding. The padding-right has to be nullified and the equal width padding-left added. Is there anything we need to do to tell Drupal that our module includes some -rtl.css stylesheets or are they discovered automatically?
"If a RTL language is being displayed, Drupal will for each stylesheet, look for a supplemental RLT stylesheet to load."
From "drupal 7 module development". It was meant for css introduced by module, though I haven't tested.
from drupal 6, *-rtl.css are added automatically in RTL Language
Wonderful. Thanks for following up on this issue guys - I've just committed it.
Welcome to the committers log, Navid. : )
many thanks Ryan
Automatically closed -- issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.