small tweaks to the rtl inclusion
authorGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 27 Apr 2004 12:10:01 +0000 (12:10 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 27 Apr 2004 12:10:01 +0000 (12:10 +0000)
dir setting on body- can be used in selectors (#something [dir="rtl"])

templates/xhtml_slim.pt

index 0c84c07..2bdf195 100644 (file)
@@ -5,19 +5,15 @@
     <meta http-equiv="Content-Type" content="${mimetype}; charset=${charset}" />
        ${headlinks}
     <title tal:content="pagetitle">Exciting xhtml slimfast</title>
-
+    <style tal:omit-tag="" tal:condition="rtl" tal:define="rtlcss string:@import url(${stylepath}/${skinname}/rtl.css);;" />
     <style type="text/css" media="screen">
       /*<![CDATA[*/
       @import url(${stylepath}/${skinname}/main.css);
+      ${rtlcss}
       /* custom css, could be either a pref or a subpage of the the user page */
       /* @import url(${stylepath}/custom.css); */
       /*]]>*/
     </style>
-    <style tal:condition="rtl" type="text/css">
-      /*<![CDATA[*/
-      @import url(${stylepath}/rtl.css); */
-      /*]]>*/
-    </style>
     <link rel="stylesheet" type="text/css" media="print" href="${stylepath}/commonPrint.css" />
     <!--[if IE]><style type="text/css" media="all">@import url(${stylepath}/${skinname}/IEFixes.css);</style>
     <script type="text/javascript" src="${stylepath}/IEFixes.js"></script>
@@ -27,7 +23,7 @@
     <script type="text/javascript"> /*<![CDATA[*/ if(addcss){addcss('${stylepath}/${skinname}/');} /*]]>*/</script>
   </head>
 
-  <body tal:attributes="ondblclick body-ondblclick|default">
+  <body tal:attributes="ondblclick body-ondblclick|default;dir dir">
     <div id="visual-portal-wrapper">
 
       <div id="portal-column-content">