From: smcv Date: Sun, 21 Sep 2014 12:41:57 +0000 (-0400) Subject: Added a comment X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/9b767f21a966506705d8d319c7123563d938f808?ds=sidebyside Added a comment --- 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 index 000000000..8e2945665 --- /dev/null +++ b/doc/forum/PO_and_RTL_support/comment_9_fef398e8f349ddbfae532ad6d641a5d3._comment @@ -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). +"""]]