Browse Source

adjust rtl implementation (#166)

Hakim El Hattab 12 years ago
parent
commit
363685967d
4 changed files with 16 additions and 2 deletions
  1. 14 0
      css/reveal.css
  2. 0 0
      css/reveal.min.css
  3. 1 1
      js/reveal.js
  4. 1 1
      js/reveal.min.js

+ 14 - 0
css/reveal.css

@@ -1191,6 +1191,20 @@ body {
 }
 
 
+/*********************************************
+ * RTL SUPPORT
+ *********************************************/
+
+.reveal.rtl {
+	direction: rtl;
+}
+
+.reveal.rtl pre,
+.reveal.rtl code {
+	direction: ltr;
+}
+
+
 /*********************************************
  * SPEAKER NOTES
  *********************************************/

File diff suppressed because it is too large
+ 0 - 0
css/reveal.min.css


+ 1 - 1
js/reveal.js

@@ -318,7 +318,7 @@ var Reveal = (function(){
 		}
 
 		if( config.rtl ) {
-			dom.slides.style.direction = 'rtl';
+			dom.wrapper.classList.add( 'rtl' );
 		}
 
 		if( config.center ) {

File diff suppressed because it is too large
+ 1 - 1
js/reveal.min.js


Some files were not shown because too many files changed in this diff