Russia
|
I have an idea about RTL, but it must be discussed.
For now we choose what the style to load at the page - RTL or LTR depending on the current language settings.
The RTL style is mainly a full copy of LTR style with some elements inverted from left to right and vice versa.
The essence of my idea is to load the base LTR skin ALWAYS!
And then (and only if the language is RTL) additionally load a SMALL RTL STYLE FIXER.
RTL style fixer will NOT a full copy of LTR style, but contains ONLY REQUIRED INVERSION!
For example:
Main style:- caption, th { text-align: left; font-weight: 400; }
- .z { float: left; } .y { float: right; }
- .notice { clear: both; margin: 5px 0; padding: 3px 5px 3px 20px; background: url({IMGDIR}/notice.gif) no-repeat 2px 6px; }
- #ajaxwaitid { display: none; position: absolute; right: 0; top: 0; z-index: 1; padding: 0 5px; background: #D00; color: {LIGHTLINK}; }
Copy the Code The RTL Fix style:- caption, th { text-align: right; }
- .z { float: right; } .y { float: left; }
- .notice { padding: 3px 20px 3px 5px; background-position: 100% 6px; }
- #ajaxwaitid { left: 0; padding: 0 5px; }
Copy the Code |
|