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