| 1 |
Jcss Module :
|
| 2 |
=============
|
| 3 |
This module purpose is to help RTL users to do some of the dirty work in RTLing a css
|
| 4 |
the module will accept a css content and will do the following replacments
|
| 5 |
|
| 6 |
* margin-right <==> margin-left
|
| 7 |
* padding-right <==> padding-left
|
| 8 |
* float : swap right and left
|
| 9 |
* text-align : swap right and left,
|
| 10 |
* all left to right swap i.e. left, margin-left, padding-left, border-left
|
| 11 |
* backgound or backgroung-position : will swap (only) left and right (see todo)
|
| 12 |
|
| 13 |
the module will leave the original line as a comment so you can see the changes
|
| 14 |
i.e. margin : 1 2 3 4; ==> margin: 1 4 3 2; /* Jcss.Old margin: 1 2 3 4*/
|
| 15 |
|
| 16 |
RTL themers todo
|
| 17 |
===================
|
| 18 |
After module run, manually do
|
| 19 |
|
| 20 |
* some of the images need to be flipped (save with the same name with rtl addition i.e. corner-rtl.gif)
|
| 21 |
* add "direction:rtl" to body
|
| 22 |
* backgound or backgroung-position : check the X parameter and swap 0 or 1 (% or px) with 100%
|
| 23 |
|
| 24 |
so :
|
| 25 |
background: transparent url(image.gif) no-repeat 1px .35em;
|
| 26 |
will become :
|
| 27 |
background: transparent url(image.gif) no-repeat 100% .35em;
|
| 28 |
|
| 29 |
did you used the module to RTL themes ?
|
| 30 |
please consider uploading the theme to drupal site so everyone can use it
|
| 31 |
|
| 32 |
hopfully there will be more RTL themes
|
| 33 |
|
| 34 |
Avior
|
| 35 |
http://dev-art.net
|