Commits

Anonymous committed a0a98df Merge

Merged trunk changes in

Comments (0)

Files changed (2)

app/helpers/redmine_restructuredtext_formatter/helper.rb

       var toolbar = new jsToolBar(editor, textarea);
       toolbar.setHelpLink('#{help_link}');
       toolbar.draw();
+      [#{I18n.t(:direction) == 'rtl' ? "'.jstb_bq', '.jstb_unbq'" : ''}].each(function(button) { $$(button).last().addClassName('flip'); });
       EOD
     end
 

assets/stylesheets/restructuredtext.css

 .rle { direction: rtl; unicode-bidi: embed; }                                                                                                                
 .lre { direction: ltr; unicode-bidi: embed; }                                                                                                                
 
-/* Buttons
--------------------------------------------------------- */
-.jstb_em {
-	background-image: url(../images/jstoolbar/bt_em.png);
-}
-.jstb_code {
-	background-image: url(../images/jstoolbar/bt_code.png);
-}
-.jstb_kbd {
-	background-image: url(../images/jstoolbar/bt_kbd.png);
-}
-.jstb_var {
-	background-image: url(../images/jstoolbar/bt_var.png);
-}
-.jstb_h1 {
-	background-image: url(../images/jstoolbar/bt_h1.png);
-}
-.jstb_h2 {
-	background-image: url(../images/jstoolbar/bt_h2.png);
-}
-.jstb_h3 {
-	background-image: url(../images/jstoolbar/bt_h3.png);
-}
-.jstb_ul {
-	background-image: url(../images/jstoolbar/bt_ul.png);
-}
-.jstb_ol {
-	background-image: url(../images/jstoolbar/bt_ol.png);
-}
-.jstb_pre {
-	background-image: url(../images/jstoolbar/bt_pre.png);
-}
+/* Buttons */
 .jstb_unpre {
 	background-image: url(../images/jstoolbar/bt_unpre.png);
 }
-.jstb_link {
-	background-image: url(../images/jstoolbar/bt_link.png);
-}
-.jstb_img {
-	background-image: url(../images/jstoolbar/bt_img.png);
+.flip {
+	-moz-transform: scaleX(-1);
+	-o-transform: scaleX(-1);
+	-webkit-transform: scaleX(-1);
+	transform: scaleX(-1);
+	filter: FlipH;
+	-ms-filter: "FlipH";
 }
 
-/* TOC
--------------------------------------------------------- */
+/* TOC */
 div.wiki ul.toc li.heading4 { margin-left: 18px; font-size: 0.8em; }
 div.wiki ul.toc li.heading5 { margin-left: 24px; font-size: 0.8em; }
 div.wiki ul.toc li.heading6 { margin-left: 30px; font-size: 0.8em; }