Skip to content
Browse files

MDL-36033 - Left align Numeric value fields in Calculated and Numeric…

… question, when in RTL mode
  • Loading branch information...
1 parent 7e8ae12 commit f12117250de4e04049f37162c1f49a2689fe5005 @nadavkav nadavkav committed Oct 14, 2012
Showing with 28 additions and 0 deletions.
  1. +2 −0 mod/quiz/styles.css
  2. +14 −0 question/type/calculated/styles.css
  3. +12 −0 question/type/numerical/styles.css
View
2 mod/quiz/styles.css
@@ -414,3 +414,5 @@ bank window's title is prominent enough*/
#page-mod-quiz-edit.dir-rtl div.quizcontents {clear: right;float: right;}
#page-mod-quiz-edit.dir-rtl .questionbankwindow.block {float: left;}
#page-question-edit.dir-rtl td.creatorname, #page-question-edit.dir-rtl td.modifiername {text-align: center;}
+.path-question-type.dir-rtl input[name="defaultmark"],
+#page-mod-quiz-edit.dir-rtl div.points input {direction: ltr;text-align: left;}
View
14 question/type/calculated/styles.css
@@ -6,3 +6,17 @@
.que.calculated .answer input[type="text"] {
width: 30%;
}
+
+/* Numeric INPUT text boxes should be left aligned in RTL mode
+*/
+#page-question-type-calculated.dir-rtl input[name^="answer"],
+#page-question-type-calculated.dir-rtl input[name^="unit"],
+#page-question-type-calculated.dir-rtl input[name^="multiplier"],
+#page-question-type-calculated.dir-rtl input[name^="calcmax"],
+#page-question-type-calculated.dir-rtl input[name^="calcmin"],
+#page-question-type-calculated.dir-rtl input[name^="number"],
+#page-question-type-calculated.dir-rtl input[name^="tolerance"]
+{
+ direction: ltr;
+ text-align: left;
+}
View
12 question/type/numerical/styles.css
@@ -6,3 +6,15 @@
.que.numerical .answer input[type="text"] {
width: 30%;
}
+
+/* Numeric INPUT text boxes should be left aligned in RTL mode
+*/
+#page-question-type-numerical.dir-rtl input[name="unitpenalty"],
+#page-question-type-numerical.dir-rtl input[name^="answer"],
+#page-question-type-numerical.dir-rtl input[name^="tolerance"],
+#page-question-type-numerical.dir-rtl input[name^="multiplier"],
+#page-question-type-numerical.dir-rtl input[name^="unit"]
+{
+ direction: ltr;
+ text-align: left;
+}

0 comments on commit f121172

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