MDL-55224 output: Support automatic flipping to RTL styles
[moodle.git] / question / type / calculated / styles.css
CommitLineData
a18fda20
TH
1.que.calculated .answer {
2 padding: 0.3em;
a18fda20
TH
3 display: inline;
4}
522d9fcb 5.que.calculated .answer input[type="text"] {
cdece95e 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-calculated.dir-rtl input[name^="answer"],
12#page-question-type-calculated.dir-rtl input[name^="unit"],
13#page-question-type-calculated.dir-rtl input[name^="multiplier"],
14#page-question-type-calculated.dir-rtl input[name^="calcmax"],
15#page-question-type-calculated.dir-rtl input[name^="calcmin"],
16#page-question-type-calculated.dir-rtl input[name^="number"],
17#page-question-type-calculated.dir-rtl input[name^="tolerance"]
18{
19 direction: ltr;
20 text-align: left;
21}
c7218aef
CC
22
23/* Editing form. */
24body#page-question-type-calculated div[id^=fgroup_id_][id*=answeroptions_],
25body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answeroptions_] {
26 background: #EEE;
27 margin-top: 0;
28 margin-bottom: 0;
29 padding-bottom: 5px;
30 padding-top: 5px;
31 border: 1px solid #BBB;
32 border-bottom: 0;
33}
34
35body#page-question-type-calculated div[id^=fgroup_id_][id*=answeroptions_] .fgrouplabel label,
36body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answeroptions_] .fgrouplabel label {
37 font-weight: bold;
38}
39
40body#page-question-type-calculated div[id^=fgroup_id_][id*=answeroptions_] label[for^='id_answer_'],
41body#page-question-type-calculated div[id^=fgroup_id_][id*=answertolerance_] label[for^='id_tolerance_'],
42body#page-question-type-calculated div[id^=fgroup_id_][id*=answerdisplay_] label[for^='id_correctanswerlength_'],
43body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answeroptions_] label[for^='id_answer_'],
44body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answerdisplay_] label[for^='id_correctanswerlength_'] {
45 position: absolute;
46 left: -10000px;
47 font-weight: normal;
48 font-size: 1em;
49}
50
51body#page-question-type-calculated div[id^=fgroup_id_][id*=answertolerance_],
52body#page-question-type-calculated div[id^=fgroup_id_][id*=answerdisplay_],
53body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answertolerance_],
54body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answerdisplay_] {
55 background: #EEE;
56 margin-bottom: 0;
57 margin-top: 0;
58 padding-bottom: 5px;
59 padding-top: 5px;
60 border: 1px solid #BBB;
61 border-top: 0;
62 border-bottom: 0;
63}
64
65body#page-question-type-calculated div[id^=fitem_id_][id*=feedback_],
66body#page-question-type-calculatedmulti div[id^=fitem_id_][id*=feedback_] {
67 background: #EEE;
68 margin-bottom: 2em;
69 margin-top: 0;
70 padding-bottom: 5px;
71 padding-top: 5px;
72 border: 1px solid #BBB;
73 border-top: 0;
74}