]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Added a comment
authorsmcv <smcv@web>
Sun, 21 Sep 2014 12:41:57 +0000 (08:41 -0400)
committeradmin <admin@branchable.com>
Sun, 21 Sep 2014 12:41:57 +0000 (08:41 -0400)
doc/forum/PO_and_RTL_support/comment_9_fef398e8f349ddbfae532ad6d641a5d3._comment [new file with mode: 0644]

diff --git a/doc/forum/PO_and_RTL_support/comment_9_fef398e8f349ddbfae532ad6d641a5d3._comment b/doc/forum/PO_and_RTL_support/comment_9_fef398e8f349ddbfae532ad6d641a5d3._comment
new file mode 100644 (file)
index 0000000..8e29456
--- /dev/null
@@ -0,0 +1,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).
+"""]]