1.que.calculated .answer {
2    padding: 0.3em;
3    display: inline;
4}
5
6.que.calculated .answer input[type="text"] {
7    width: 30%;
8}
9
10/*rtl:ignore*/
11#page-question-type-calculated input[name^="answer"],
12#page-question-type-calculated input[name^="unit"],
13#page-question-type-calculated input[name^="multiplier"],
14#page-question-type-calculated input[name^="calcmax"],
15#page-question-type-calculated input[name^="calcmin"],
16#page-question-type-calculated input[name^="number"],
17#page-question-type-calculated input[name^="tolerance"] {
18    direction: ltr;
19    text-align: left;
20}
21
22/* Editing form. */
23body#page-question-type-calculated div[id^=fgroup_id_][id*=answeroptions_],
24body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answeroptions_] {
25    background: #eee;
26    margin-top: 0;
27    margin-bottom: 0;
28    padding-bottom: 5px;
29    padding-top: 5px;
30    border: 1px solid #bbb;
31    border-bottom: 0;
32}
33
34body#page-question-type-calculated div[id^=fgroup_id_][id*=answeroptions_] .fgrouplabel label,
35body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answeroptions_] .fgrouplabel label {
36    font-weight: bold;
37}
38
39body#page-question-type-calculated div[id^=fgroup_id_][id*=answeroptions_] label[for^='id_answer_'],
40body#page-question-type-calculated div[id^=fgroup_id_][id*=answertolerance_] label[for^='id_tolerance_'],
41body#page-question-type-calculated div[id^=fgroup_id_][id*=answerdisplay_] label[for^='id_correctanswerlength_'],
42body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answeroptions_] label[for^='id_answer_'],
43body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answerdisplay_] label[for^='id_correctanswerlength_'] {
44    position: absolute;
45    left: -10000px;
46    font-weight: normal;
47    font-size: 1em;
48}
49
50body#page-question-type-calculated div[id^=fgroup_id_][id*=answertolerance_],
51body#page-question-type-calculated div[id^=fgroup_id_][id*=answerdisplay_],
52body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answertolerance_],
53body#page-question-type-calculatedmulti div[id^=fgroup_id_][id*=answerdisplay_] {
54    background: #eee;
55    margin-bottom: 0;
56    margin-top: 0;
57    padding-bottom: 5px;
58    padding-top: 5px;
59    border: 1px solid #bbb;
60    border-top: 0;
61    border-bottom: 0;
62}
63
64body#page-question-type-calculated div[id^=fitem_id_][id*=feedback_],
65body#page-question-type-calculatedmulti div[id^=fitem_id_][id*=feedback_] {
66    background: #eee;
67    margin-bottom: 2em;
68    margin-top: 0;
69    padding-bottom: 5px;
70    padding-top: 5px;
71    border: 1px solid #bbb;
72    border-top: 0;
73}
74