| 1 |
[[!comment format=mdwn |
| 2 |
username="smcv" |
| 3 |
ip="81.100.115.242" |
| 4 |
subject="comment 9" |
| 5 |
date="2014-09-21T12:41:56Z" |
| 6 |
content=""" |
| 7 |
[Authoring HTML: Handling Right-to-left Scripts](http://www.w3.org/TR/i18n-html-tech-bidi/) |
| 8 |
might be useful reading. |
| 9 |
|
| 10 |
In [modern browsers](http://caniuse.com/css-sel2) (i.e. not IE6) it |
| 11 |
should be possible to make CSS conditional on any attribute, not |
| 12 |
just class, so you could maybe do something like this: |
| 13 |
|
| 14 |
/* ikiwiki's existing CSS */ |
| 15 |
.sidebar { |
| 16 |
float: right; |
| 17 |
margin-left: 4px; |
| 18 |
} |
| 19 |
|
| 20 |
/* new */ |
| 21 |
html[dir=\"rtl\"] .sidebar { |
| 22 |
float: left; |
| 23 |
margin-left: 0px; |
| 24 |
margin-right: 4px; |
| 25 |
} |
| 26 |
|
| 27 |
If you contributed a patch for `style.css` to make markup like this |
| 28 |
\"just work\", I'd be happy to review it. (`notebox` could use the |
| 29 |
same technique). |
| 30 |
"""]] |