Permalink
Browse files

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

… question, when in RTL mode
  • Loading branch information...
1 parent b1c5155 commit 00c7657edf4dee69b62aaf9846f6ae0532ad8f73 @nadavkav nadavkav committed Oct 14, 2012
Showing with 29 additions and 1 deletion.
  1. +3 −1 mod/quiz/styles.css
  2. +14 −0 question/type/calculated/styles.css
  3. +12 −0 question/type/numerical/styles.css
View
@@ -414,4 +414,6 @@ bank window's title is prominent enough*/
#page-mod-quiz-edit.dir-rtl .quizpagedelete {left: 0.2em;right:auto;}
#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;}
+#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;}
@@ -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;
+}
@@ -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 00c7657

Please sign in to comment.