aboutsummaryrefslogtreecommitdiff
path: root/doc/tips
diff options
context:
space:
mode:
authorfr33domlover <fr33domlover@web>2014-11-10 18:52:13 -0400
committeradmin <admin@branchable.com>2014-11-10 18:52:13 -0400
commitee53fbdacfa5b8fc6da54db57bb7cdb7af414e72 (patch)
tree986ad9cb2802eb26919af7657d0c41e0e8449204 /doc/tips
parent0c3647f26d4cdbf2e596f13c3eb59d3cb9fa91fc (diff)
downloadikiwiki-ee53fbdacfa5b8fc6da54db57bb7cdb7af414e72.tar
ikiwiki-ee53fbdacfa5b8fc6da54db57bb7cdb7af414e72.tar.gz
Update RTL tip to use dir instead of class
Diffstat (limited to 'doc/tips')
-rw-r--r--doc/tips/Right-to-left___40__RTL__41___page_text.mdwn15
1 files changed, 2 insertions, 13 deletions
diff --git a/doc/tips/Right-to-left___40__RTL__41___page_text.mdwn b/doc/tips/Right-to-left___40__RTL__41___page_text.mdwn
index 2b176c811..339f05ba7 100644
--- a/doc/tips/Right-to-left___40__RTL__41___page_text.mdwn
+++ b/doc/tips/Right-to-left___40__RTL__41___page_text.mdwn
@@ -10,7 +10,7 @@ footer. Only what is rendered from the mdwn file is affected.
Create a new template page *templates/rtl.mdwn* with the following content:
- <div class="rtl">
+ <div dir="rtl">
<TMPL_VAR text>
</div>
<TMPL_UNLESS text>
@@ -21,18 +21,7 @@ Create a new template page *templates/rtl.mdwn* with the following content:
</ul>
</TMPL_UNLESS>
-# 2 Add an RTL class to the CSS
-
-In your *local.css* add the following:
-
-[[!format css """
-/* rtl template */
-.rtl {
- direction: rtl;
-}
-"""]]
-
-# 3 Use the Template
+# 2 Use the Template
To make a page or part of it RTL, use the [[ikiwiki/directive/template]] directive: