Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Thank you for making this great base theme!
I reviewed the theme rtl support and added all needed css:
1. Added /* LTR */ marking to original css files
2. Created or modified corresponding rtl css files
3. Added rtl images (attached below)
The following guidelines were considered:
Original css file | RTL css file |
---|---|
Adding a css property that has "right" (or "left") as value ex:
|
The same property should be added with value "left" (or "right") ex:
|
Adding the css property "left" (or "right") ex:
|
Property "left" (or "right") should be reverted to "auto", and "right" (or "left") set to the same value ex:
|
Adding properties like padding, margin, background-position ... examples:
|
"left" and "right" values should be swapped; If only one is set the other should be reset to default value (0 for paddings and margins) if required ex:
|
Adding a background image that has a relation with language direction (for example an arrow from left to right) ex:
|
A new rtl image should be created from the original with required changes, and the corresponding css adjusted to point to it ex:
|
Note: patch generated in 7.x-3.0 version
Regards
Comment | File | Size | Author |
---|---|---|---|
omega_rtl_images.tar_.gz | 6.92 KB | ahwebd | |
omega_rtl.patch | 43.3 KB | ahwebd | |
alpha_rtl.patch | 140.92 KB | ahwebd |
Comments
Comment #1
ahwebd CreditAttribution: ahwebd commentedComment #2
ahwebd CreditAttribution: ahwebd commentedno one?
Comment #3
Cellar Door CreditAttribution: Cellar Door commentedThanks for the patch!
Comment #4
himerus CreditAttribution: himerus commentedalpha_rtl.patch does not apply cleanly to latest 7.x-3.x dev.
I'd love to see this get in, but will be moving it the 3.2 release roadmap... and that being said, in 3.2 the CSS is going to wildly change, and the current css will still be present for legacy sites, but a new, cleaner version of CSS styling will be enabled in newer versions.
@ahwebd will you be willing to A.) update this patch to apply cleanly to latest dev version, and B.) work with us on the updated CSS coming in 3.2 to ensure it is properly RTL compliant?!
Comment #5
ahwebd CreditAttribution: ahwebd commentedThanks for all your efforts himerus, I'll be really happy to work on this (a & b) when time permits.
Comment #6
i2man CreditAttribution: i2man commentedHi all, i am new to Druplal, i am working on site with two languages ( French (ltr) and Arabic (rtl), i am using Omega 3 for theming with subtheme, i implemented all the files provided with this theme, the problem is on Arabic (rtl) section, i want to note that languages are added perfectly, i can switch between theme with no problem Ltr and Rtl, the issue is when i want to theme RTL section with custom file css that do not exist in the package of Omega, how to add this file that will be styled separatly for the Arabic section with graphics and fonts, i know the file global.css is perfect but juste for French section, i made some searching and find LESS but the problem is already how to add this CSS file to my Subtheme CSS folder, i need your help please.
Thanks all
Comment #7
i2man CreditAttribution: i2man commentedPlease can any one help ?
Comment #7.0
i2man CreditAttribution: i2man commentedminor
Comment #8
steinmb CreditAttribution: steinmb as a volunteer commented