Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-27516 Several CSS fixes for right to left languages

  • Loading branch information...
commit 1db5119839231d9ba940aab9f1b6f8b8224e16a7 1 parent 24dad09
Nadav Kavalerchik authored November 17, 2011 samhemelryk committed November 17, 2011
9  mod/quiz/styles.css
@@ -96,6 +96,13 @@ div.editq div.question div.content .singlequestion a .questiontext{text-decorati
96 96
 #page-mod-quiz-mod #reviewoptionshdr fieldset.fgroup span label,
97 97
 #adminquizreviewoptions span label {margin-left: 0.4em;}
98 98
 
  99
+#page-mod-quiz-mod.dir-rtl #reviewoptionshdr .fitem,
  100
+#adminquizreviewoptions .group {float: right; width: 24%;}
  101
+#page-mod-quiz-mod.dir-rtl #reviewoptionshdr fieldset.fgroup span,
  102
+#adminquizreviewoptions span {float: right; clear: right;}
  103
+#page-mod-quiz-mod.dir-rtl #reviewoptionshdr .fitemtitle,
  104
+#adminquizreviewoptions .fitemtitle {text-align: right;}
  105
+
99 106
 /** Mod quiz view **/
100 107
 #page-mod-quiz-view .quizinfo,
101 108
 #page-mod-quiz-view #page .quizgradefeedback,
@@ -377,4 +384,4 @@ bank window's title is prominent enough*/
377 384
 .qnum label {padding-right: 0.25em;}
378 385
 
379 386
 /** settings.php */
380  
-#adminquizreviewoptions {margin-bottom: 0.5em;}
  387
+#adminquizreviewoptions {margin-bottom: 0.5em;}
4  mod/wiki/styles.css
@@ -171,6 +171,10 @@
171 171
     float: right;
172 172
 }
173 173
 
  174
+.dir-rtl .wiki_diffuserleft {
  175
+    float: left;
  176
+}
  177
+
174 178
 .wiki_diffuserright {
175 179
     float: left;
176 180
 }
71  theme/base/style/core.css
@@ -218,6 +218,8 @@ a.skip:active {position: static;display: block;}
218 218
 .mform .ftags label.accesshide {display: block;position: static;}
219 219
 .mform .ftags select {margin-bottom: 0.7em;min-width: 22em;}
220 220
 
  221
+input#id_externalurl {direction:ltr;}
  222
+
221 223
 /** Browser corrections for mforms **/
222 224
 .ie .mform .fitem .felement {margin-left:0;text-align:left;float:left;}
223 225
 /** Fix IE double margin + float bugs **/
@@ -717,6 +719,23 @@ body.tag .managelink {padding: 5px;}
717 719
 .mod-indent-15,
718 720
 .mod-indent-huge {margin-left:300px;}
719 721
 
  722
+.dir-rtl .mod-indent-1 {margin-right:20px;margin-left:0;}
  723
+.dir-rtl .mod-indent-2 {margin-right:40px;margin-left:0;}
  724
+.dir-rtl .mod-indent-3 {margin-right:60px;margin-left:0;}
  725
+.dir-rtl .mod-indent-4 {margin-right:80px;margin-left:0;}
  726
+.dir-rtl .mod-indent-5 {margin-right:100px;margin-left:0;}
  727
+.dir-rtl .mod-indent-6 {margin-right:120px;margin-left:0;}
  728
+.dir-rtl .mod-indent-7 {margin-right:140px;margin-left:0;}
  729
+.dir-rtl .mod-indent-8 {margin-right:160px;margin-left:0;}
  730
+.dir-rtl .mod-indent-9 {margin-right:180px;margin-left:0;}
  731
+.dir-rtl .mod-indent-10 {margin-right:200px;margin-left:0;}
  732
+.dir-rtl .mod-indent-11 {margin-right:220px;margin-left:0;}
  733
+.dir-rtl .mod-indent-12 {margin-right:240px;margin-left:0;}
  734
+.dir-rtl .mod-indent-13 {margin-right:260px;margin-left:0;}
  735
+.dir-rtl .mod-indent-14 {margin-right:280px;margin-left:0;}
  736
+.dir-rtl .mod-indent-15,
  737
+.dir-rtl .mod-indent-huge {margin-right:300px;margin-left:0;}
  738
+
720 739
 .dir-rtl .felement.feditor select {margin-right:18.75%;}
721 740
 
722 741
 /* Resourcelib mp3 player size: only width could be changed here, height hardcoded in JS */
@@ -800,4 +819,54 @@ ul li,
800 819
 .course-content ul.topics .content .summary ul li {list-style: disc outside none;}
801 820
 ol li,
802 821
 .course-content ul.weeks .content .summary ol li,
803  
-.course-content ul.topics .content .summary ol li {list-style: decimal outside none;}
  822
+.course-content ul.topics .content .summary ol li {list-style: decimal outside none;}
  823
+
  824
+.dir-rtl #adminsettings #id_s__pathtodu,
  825
+.dir-rtl #adminsettings #id_s__aspellpath,
  826
+.dir-rtl #adminsettings #id_s__pathtodot,
  827
+.dir-rtl #adminsettings #id_s__supportemail,
  828
+.dir-rtl #adminsettings #id_s__supportpage,
  829
+.dir-rtl #adminsettings #id_s__sessioncookie,
  830
+.dir-rtl #adminsettings #id_s__sessioncookiepath,
  831
+.dir-rtl #adminsettings #id_s__sessioncookiedomain,
  832
+.dir-rtl #adminsettings #id_s__proxyhost,
  833
+.dir-rtl #adminsettings #id_s__proxyuser,
  834
+.dir-rtl #adminsettings #id_s__proxypassword,
  835
+.dir-rtl #adminsettings #id_s__proxybypass,
  836
+.dir-rtl #adminsettings #id_s__jabberhost,
  837
+.dir-rtl #adminsettings #id_s__jabberserver,
  838
+.dir-rtl #adminsettings #id_s__jabberusername,
  839
+.dir-rtl #adminsettings #id_s__jabberpassword,
  840
+.dir-rtl #adminsettings #id_s__additionalhtmlhead,
  841
+.dir-rtl #adminsettings #id_s__additionalhtmltopofbody,
  842
+.dir-rtl #adminsettings #id_s__additionalhtmlfooter,
  843
+.dir-rtl #adminsettings #id_s__docroot,
  844
+.dir-rtl #adminsettings #id_s__filter_tex_latexpreamble,
  845
+.dir-rtl #adminsettings #id_s__filter_tex_latexbackground,
  846
+.dir-rtl #adminsettings #id_s__filter_tex_pathlatex,
  847
+.dir-rtl #adminsettings #id_s__filter_tex_pathdvips,
  848
+.dir-rtl #adminsettings #id_s__filter_tex_pathconvert,
  849
+.dir-rtl #adminsettings #id_s__blockedip,
  850
+.dir-rtl #adminsettings #id_s__pathtoclam,
  851
+.dir-rtl #adminsettings #id_s__quarantinedir,
  852
+.dir-rtl #adminsettings #id_s__sitepolicy,
  853
+.dir-rtl #adminsettings #id_s__sitepolicyguest,
  854
+.dir-rtl #adminsettings #id_s__cronremotepassword,
  855
+.dir-rtl #adminsettings #id_s__allowedip,
  856
+.dir-rtl #adminsettings #id_s__blockedip,
  857
+.dir-rtl #adminsettings #id_s_enrol_meta_nosyncroleids,
  858
+.dir-rtl #adminsettings #id_s_enrol_ldap_host_url,
  859
+.dir-rtl #adminsettings #id_s_enrol_ldap_ldapencoding,
  860
+.dir-rtl #adminsettings #id_s_enrol_ldap_bind_dn,
  861
+.dir-rtl #adminsettings #id_s_enrol_ldap_bind_pw,
  862
+.dir-rtl #adminsettings #admin-emoticons .form-text,
  863
+.dir-rtl #adminsettings #admin-role_mapping input[type=text],
  864
+.dir-rtl #adminsettings #id_s_enrol_paypal_paypalbusiness,
  865
+.dir-rtl #adminsettings #id_s_enrol_flatfile_location,
  866
+#page-admin-setting-enrolsettingsflatfile.dir-rtl input[type=text],
  867
+#page-admin-setting-enrolsettingsdatabase.dir-rtl input[type=text],
  868
+#page-admin-auth-db.dir-rtl input[type=text] {direction: ltr;}
  869
+
  870
+#page-admin-setting-enrolsettingsflatfile.dir-rtl .informationbox {direction: ltr;text-align: left;}
  871
+
  872
+#page-admin-grade-edit-scale-edit.dir-rtl .error input#id_name {margin-right: 170px;}
2  theme/base/style/course.css
@@ -27,7 +27,7 @@
27 27
 .path-course-view li.activity form.togglecompletion .ajaxworking {position:absolute;top:0; left:20px;width: 20px; height: 20px;background: url([[pix:i/ajaxloader]]) no-repeat;}
28 28
 .dir-rtl.path-course-view li.activity {margin-right:0px;margin-left:20px;}
29 29
 .dir-rtl.path-course-view li.activity form.togglecompletion,
30  
-.dir-rtl.path-course-view li.activity span.autocompletion {right:auto;left:-20px;}
  30
+.dir-rtl.path-course-view li.activity span.autocompletion {right:auto;right:-20px;}
31 31
 
32 32
 .section img.movetarget {height:16px;width:80px;}
33 33
 
2  theme/standard/style/core.css
@@ -277,6 +277,8 @@ h2.tag-heading {text-align:center;margin-left:auto;margin-right:auto;width:95%;}
277 277
 #tags-management-links,
278 278
 .tag .managelink {text-align:right;}
279 279
 table#tag-management-list {margin: 10px auto;width: 80%;}
  280
+#page-tag-index.dir-rtl .relatedpages {text-align:center;}
  281
+#page-tag-index.dir-rtl .user-box {float:right;}
280 282
 
281 283
 /**
282 284
  * Overriding base
13  webservice/renderer.php
@@ -46,15 +46,24 @@ public function admin_authorised_user_selector(&$options) {
46 46
         $table->cellspacing = 0;
47 47
         $table->cellpadding = 0;
48 48
 
  49
+        // LTR/RTL support, for drawing button arrows in the right direction
  50
+        if (right_to_left()) {
  51
+            $addarrow = '▶';
  52
+            $removearrow = '◀';
  53
+        } else {
  54
+            $addarrow = '◀';
  55
+            $removearrow = '▶';
  56
+        }
  57
+
49 58
         //create the add and remove button
50 59
         $addinput = html_writer::empty_tag('input',
51 60
                         array('name' => 'add', 'id' => 'add', 'type' => 'submit',
52  
-                            'value' => '◀' . ' ' . get_string('add'),
  61
+                            'value' => $addarrow . ' ' . get_string('add'),
53 62
                             'title' => get_string('add')));
54 63
         $addbutton = html_writer::tag('div', $addinput, array('id' => 'addcontrols'));
55 64
         $removeinput = html_writer::empty_tag('input',
56 65
                         array('name' => 'remove', 'id' => 'remove', 'type' => 'submit',
57  
-                            'value' => '▶' . ' ' . get_string('remove'),
  66
+                            'value' => $removearrow . ' ' . get_string('remove'),
58 67
                             'title' => get_string('remove')));
59 68
         $removebutton = html_writer::tag('div', $removeinput, array('id' => 'removecontrols'));
60 69
 

0 notes on commit 1db5119

Please sign in to comment.
Something went wrong with that request. Please try again.