MDL-55224 output: Support automatic flipping to RTL styles
[moodle.git] / question / type / numerical / styles.css
CommitLineData
a18fda20
TH
1.que.numerical .answer {
2 padding: 0.3em;
a18fda20
TH
3 display: inline;
4}
522d9fcb 5.que.numerical .answer input[type="text"] {
544de1c0 6 width: 30%;
a18fda20 7}
f1211725
NK
8
9/* Numeric INPUT text boxes should be left aligned in RTL mode
10*/
11#page-question-type-numerical.dir-rtl input[name="unitpenalty"],
12#page-question-type-numerical.dir-rtl input[name^="answer"],
13#page-question-type-numerical.dir-rtl input[name^="tolerance"],
14#page-question-type-numerical.dir-rtl input[name^="multiplier"],
15#page-question-type-numerical.dir-rtl input[name^="unit"]
16{
17 direction: ltr;
18 text-align: left;
19}
c7218aef
CC
20
21/* Editing form. */
22body#page-question-type-numerical div[id^=fgroup_id_][id*=answeroptions_] {
23 background: #EEE;
24 margin-top: 0;
25 margin-bottom: 0;
26 padding-bottom: 5px;
27 padding-top: 5px;
28 border: 1px solid #BBB;
29 border-bottom: 0;
30}
31
32body#page-question-type-numerical div[id^=fgroup_id_][id*=answeroptions_] .fgrouplabel label{
33 font-weight: bold;
34}
35
2f7827b2
TH
36body.path-question-type div#fgroup_id_penaltygrp label[for^=id_unitpenalty],
37body.path-question-type div[id^=fgroup_id_units_] label[for^='id_unit_'],
c7218aef
CC
38body#page-question-type-numerical div[id^=fgroup_id_][id*=answeroptions_] label[for^='id_answer_']{
39 position: absolute;
40 left: -10000px;
41 font-weight: normal;
42 font-size: 1em;
43}
44
45body#page-question-type-numerical div[id^=fitem_id_][id*=fraction_] {
46 background: #EEE;
47 margin-bottom: 0;
48 margin-top: 0;
49 padding-bottom: 5px;
50 padding-top: 5px;
51 border: 1px solid #BBB;
52 border-top: 0;
53 border-bottom: 0;
54}
55
56body#page-question-type-numerical div[id^=fitem_id_][id*=feedback_] {
57 background: #EEE;
58 margin-bottom: 2em;
59 margin-top: 0;
60 padding-bottom: 5px;
61 padding-top: 5px;
62 border: 1px solid #BBB;
63 border-top: 0;
64}