-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.css
302 lines (258 loc) · 6.52 KB
/
styles.css
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
/* stylelint-disable declaration-no-important */
.que.mtf table.mtf {
display: inline-table;
border-spacing: 0 5px;
border-collapse: separate;
}
.que.mtf table.mtf th,
.que.mtf table.mtf td {
position: relative;
}
.que.mtf table.mtf div.r0 label,
.que.mtf table.mtf div.r1 label,
.que.mtf table.mtf div.r0 div.specificfeedback,
.que.mtf table.mtf div.r1 div.specificfeedback {
/* In Chrome and IE, the text-indent above is applied to any embedded table
cells or <li>s, which screws up the intended layout. This fixes it again. */
text-indent: 0 !important;
}
.que.mtf .answer div.r0 input,
.que.mtf .answer div.r1 input {
margin: 0 5px;
padding: 0;
width: 15px;
}
.dir-rtl .que.mtf .answer div.r0,
.dir-rtl .que.mtf .answer div.r1 {
padding: 0.3em 25px 0.3em 0;
}
.que.mtf table.mtf tbody tr {
margin-bottom: 2em;
margin-top: 0;
padding-bottom: 5px;
padding-top: 5px;
border-top: 0;
}
.que.mtf table.mtf th {
border-width: 3px;
}
.que.mtf table.mtf td,
.que.mtf table.mtf th {
text-align: center;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
min-width: 50px;
}
.que.mtf table.mtf tbody td.optiontext {
min-width: 10em;
text-align: left;
padding-right: 4em;
background: #eee;
}
.que.mtf table.mtf tbody td.mtfresponsebutton {
background: #eee;
max-width: 64px;
opacity: 0.1;
background-color: #000;
}
.mtfgreyingout {
opacity: 0.3;
}
.que.mtf table.mtf tbody td.correctness {
vertical-align: middle;
display: table-cell;
background: #eee;
border-radius: 0;
border-left: #777 solid 3px !important;
}
td.mtfcorrectness {
border-left: #aaa solid 1px;
text-align: center;
}
.que.mtf table.mtf tbody td.feedback {
padding-left: 1em;
}
.que.mtf table.mtf tbody td.feedback div.specificfeedback {
background: #fff3bf !important;
text-align: left !important;
}
.mtfspecificfeedback {
background: #fff3bf !important;
text-align: left !important;
}
.que.mtf table.mtf .lastcol p {
display: inline;
margin: 0;
margin-left: 5px;
}
/* ====================================*/
/** The question editing form */
/* ====================================*/
body#page-question-type-mtf div.responsetexts {
float: left;
width: auto;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0;
text-align: center;
border: 0;
}
body#page-question-type-mtf div#fitem_id_responsetext_2 div.fitemtitle {
display: none;
}
body#page-question-type-mtf div.optionbox {
margin-top: 0;
padding-bottom: 15px;
padding-top: 5px;
display: flex;
}
body#page-question-type-mtf div.option_question {
flex: 1;
flex-grow: 1;
word-break: break-word;
}
body#page-question-type-mtf div.option_answer {
flex-shrink: 1;
}
body#page-question-type-mtf div.optionbox label.optiontitle {
font-weight: bold;
margin-bottom: 0;
}
/* Put response checkboxes in the middle */
body#page-question-type-mtf div.responses {
width: auto;
margin-bottom: 0;
vertical-align: middle;
text-align: center;
border: 0;
position: relative;
}
@media (max-width: 986px) {
body#page-question-type-mtf div.responses {
padding-top: 0;
float: left;
}
}
body#page-question-type-mtf div.responses fieldset.fgroup span {
border: 1px;
margin: 0 0 8px 2px;
background-color: white;
border-radius: 5px;
vertical-align: middle;
display: inline-block;
width: 80px;
}
body#page-question-type-mtf div.responses fieldset.fgroup span input {
vertical-align: bottom;
position: relative;
top: -2px;
}
body#page-question-type-mtf div.responses fieldset.fgroup span label {
vertical-align: bottom;
}
body#page-question-type-mtf div.responses div.fitem_fgroup {
text-align: left;
width: auto;
border-width: 0 0 0 0;
}
body#page-question-type-mtf div.responses div.fitem_fgroup fieldset.fgroup {
margin-left: 0;
}
body#page-question-type-mtf div.responses div.fitem_fgroup div.fitemtitle {
text-align: left;
width: 0;
}
body#page-question-type-mtf div.optiontext div.fitemtitle {
padding-left: 0;
padding-top: 0;
}
/* Put the feedback text editor to the right */
body#page-question-type-mtf div.feedbacktext {
margin-left: 0;
display: block;
clear: both;
}
body#page-question-type-mtf div.optionbox label.feedbacktitle {
font-weight: normal !important;
margin-top: 1px !important;
margin-bottom: 0 !important;
color: #777;
}
body#page-question-type-mtf div.feedbacktext div.fitemtitle {
padding-left: 0;
padding-top: 0;
}
body#page-question-type-multichoice div[id^=fitem_id_][id*=feedback_] {
margin-top: 0;
margin-bottom: 0;
padding-bottom: 5px;
padding-top: 5px;
border: 1px solid #bbb;
border-bottom: 0;
}
body#page-question-type-mtf div[id^=fitem_id_][id*=option_] {
margin-top: 0;
margin-bottom: 0;
padding-bottom: 5px;
padding-top: 5px;
}
body#page-question-type-mtf div[id^=fitem_id_][id*=option_] .fitemtitle {
font-weight: bold;
}
body#page-question-type-mtf div[id^=fitem_id_] .fitemtitle {
margin-left: 0;
margin-right: 0;
padding-left: 6px;
padding-right: 0;
}
body.dir-rtl#page-question-type-mtf div[id^=fitem_id_] .fitemtitle {
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 6px;
}
body#page-question-type-mtf div[id^=fgroup_id_][id*=responses_] {
background: #eee;
margin-bottom: 2em;
margin-top: 0;
padding-bottom: 5px;
padding-top: 5px;
border: 1px solid #bbb;
border-top: 0;
}
body#page-question-type-mtf div[id^=fgroup_id_weightsarray] {
background: #eee;
margin-top: 0;
padding-bottom: 5px;
padding-top: 5px;
border: 1px solid #bbb;
border-top: 0;
}
.que.mtf table .reset,
.que.mtf table .radio {
width: 1%;
min-width: 70px;
}
@supports (display:-ms-grid) {
body#page-question-type-mtf #id_questiontexteditable,
body#page-question-type-mtf #id_generalfeedbackeditable,
body#page-question-type-mtf .optionbox,
.que.mtf .optiontext,
.mtfspecificfeedback {
word-break: break-all;
}
}
body#page-question-type-mtf #id_questiontexteditable,
body#page-question-type-mtf #id_generalfeedbackeditable,
body#page-question-type-mtf .optionbox,
.que.mtf .optiontext,
.mtfspecificfeedback {
word-break: break-word;
overflow-wrap: anywhere;
}
#page-mod-quiz-attempt .que.mtf .mtfresponsebutton label {
padding: 10px;
}
/* stylelint-enable declaration-no-important */