-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathstyles.css
More file actions
208 lines (176 loc) · 4.48 KB
/
styles.css
File metadata and controls
208 lines (176 loc) · 4.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
div.qtype_formulas_input_wrapper {
display: inline-block;
position: relative;
}
div#qtype_formulas_mathjax_display {
background-color: #eef;
border: 1px solid #88c;
margin-left: 0;
margin-top: 0;
overflow-x: auto;
overflow-y: hidden;
padding: 4px;
position: absolute;
z-index: 1;
}
div[id^='fitem_id_postunit_'] #qtype_formulas_mathjax_display {
margin-top: 30px;
margin-left: 10px;
}
div.qtype_formulas_tooltip_wrapper {
position: absolute;
display: inline-block;
visibility: hidden;
pointer-events: none;
font-family: sans-serif;
font-size: smaller;
}
div.qtype_formulas_tooltip_inner {
background: black;
color: white;
border-radius: 10px;
text-align: center;
white-space: nowrap;
padding: 5px 10px;
bottom: 100%;
position: absolute;
transform: translateX(-50%);
}
.qtype_formulas_tooltip_inner::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 6px solid #333;
}
div.qtype_formulas_tooltip_wrapper.show {
visibility: visible;
}
.que.formulas .formulas_unit {
display: inline-block;
margin: 0 0 0 0;
width: 55px;
}
.que.formulas .formulas_number {
display: inline-block;
margin: 0 0 0 0;
width: 55px;
}
.que.formulas .formulas_number_unit {
display: inline-block;
margin: 0 0 0 0;
width: 80px;
}
.que.formulas .formulas_numeric {
display: inline-block;
margin: 0 0 0 0;
width: 100px;
}
.que.formulas .formulas_numeric_unit {
display: inline-block;
margin: 0 0 0 0;
width: 200px;
}
.que.formulas .formulas_numerical_formula {
display: inline-block;
margin: 0 0 0 0;
width: 200px;
}
.que.formulas .formulas_numerical_formula_unit {
display: inline-block;
margin: 0 0 0 0;
width: 300px;
}
.que.formulas .formulas_algebraic_formula {
display: inline-block;
margin: 0 0 0 0;
width: 200px;
}
.que.formulas .formulation .formulaspart {
display: block;
margin: 0 0 1.2em 0;
padding-bottom: 0;
}
.que.formulas .formulation .formulas_menu {
display: inline;
margin: 0 0 1.2em 0;
padding-bottom: 0;
}
.que.formulas .multichoice_answer div.r0,
.que.formulas .multichoice_answer div.r1 {
padding: 0.3em 0 0.3em 25px;
text-indent: -25px;
}
.que.formulas .formulas_mark {
display: inline;
}
.que.formulas .formulas_grade {
font-size: 0.8em;
}
.que.formulas .formulation .formulaspartfeedback,
.que.formulas .formulation .formulaspartcorrectanswer,
.que.formulas .formulation .formulaslocalfeedback {
padding-top: 6px;
}
.que.formulas .formulation .formulaspartoutcome {
background: #fff3bf;
color: black;
margin: 0.2em -0.2em 0.5em;
padding: 0.2em;
}
.que.formulas .formulation .formulaspartfeedback .correct,
.que.formulas .formulation .formulaspartfeedback .partiallycorrect,
.que.formulas .formulation .formulaspartfeedback .incorrect {
background: transparent;
}
.que .formulation .formulas-select {
display: inline-block;
}
/* Styles for the editing form. */
body#page-question-type-formulas .formulas_correctness_show {
display: inline;
}
body#page-question-type-formulas .formulas_input_info_outer {
display: inline;
position: absolute;
z-index: 2;
}
body#page-question-type-formulas .formulas_input_info {
background-color: #eef;
left: 0;
position: absolute;
top: 1.94em;
width: 150px;
}
body#page-question-type-formulas .formulas_input_info_title {
padding: 2px;
}
body#page-question-type-formulas .formulas_input_info_interpretation {
border: 1px solid #88c;
padding: 2px;
}
body#page-question-type-formulas .formulas_input_info_interpretation_incorrect {
border: 1px solid #88c;
color: #bbb;
padding: 2px;
}
/* Form rows normally have 1rem of bottom margin. However, if the form field's ID is answer_xxx,
that margin will be forced to 0 for nicer rendering in the multichoice qtype's edit form. We
now have to force the margin again to get it back. */
/* stylelint-disable declaration-no-important */
body#page-question-type-formulas div[id^="fitem_id_answer_"].mb-3 {
margin-bottom: 1rem !important;
}
/* stylelint-enable declaration-no-important */
/* RTL hacks */
#page-question-type-formulas #id_varsrandom,
#page-question-type-formulas #id_varsglobal {
direction: ltr;
height: 80px;
text-align: left;
}