Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… question, when in RTL mode
  • Loading branch information...
commit 00c7657edf4dee69b62aaf9846f6ae0532ad8f73 1 parent b1c5155
@nadavkav nadavkav authored
View
4 mod/quiz/styles.css
@@ -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;}
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;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.