forked from kordan/moodle-mod_surveypro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
494 lines (426 loc) · 17.8 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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
.xdebug-error {
font-size: large;
}
/* Begin of: to correct display problems of firefox for mac */
#page-mod-surveypro-view_form .mform .fitem .felement,
#page-mod-surveypro-view_search .mform .fitem .felement {
/* min-height: 2em; */ /* too much horintal room */
padding-top: 8px;
}
/* End of: to eliminate display problems of firefox for mac */
/* Begin of: colours alternation for #layout_preview, #view_form, #view_search forms and read-only table*/
#page-mod-surveypro-layout_preview fieldset div.fitem:nth-of-type(even),
#page-mod-surveypro-view_form fieldset div.fitem:nth-of-type(even),
#page-mod-surveypro-view_search fieldset div.fitem:nth-of-type(even) {
background-color: #ededed;
}
/* End of: colours alternation for #userentry, #usersearch forms and read-only table*/
/* Begin of: hacky coluorunifier html element */
#page-mod-surveypro-layout_preview fieldset div.colorunifier,
#page-mod-surveypro-view_form .mform fieldset div.colorunifier,
#page-mod-surveypro-view_search .mform fieldset div.colorunifier {
line-height: 0;
margin-bottom: 0;
padding: 0;
}
/* End of: hacky coluorunifier html element */
/* Begin of: connect fullwidth question and graphic user items */
#page-mod-surveypro-view_form .mform fieldset.hidden,
#page-mod-surveypro-view_form .mform fieldset.hidden div,
#page-mod-surveypro-view_search .mform fieldset.hidden,
#page-mod-surveypro-view_search .mform fieldset.hidden div {
margin-bottom: 0;
}
/* End of: connect fullwidth question and graphic user items */
/* Begin of: connect note to question */
#page-mod-surveypro-layout_preview .mform .fitem,
#page-mod-surveypro-view_form .mform .fitem,
#page-mod-surveypro-view_search .mform .fitem {
margin: 0;
}
/* End of: connect note to question */
/* Begin of: no margin bottom to p inside question in SURVEYPRO_POSITIONTOP and SURVEYPRO_POSITIONFULLWIDTH */
#page-mod-surveypro-view_form .mform .fitem .felement div p,
#page-mod-surveypro-view_form .mform .fitem .fullwidth p,
#page-mod-surveypro-view_search .mform .fitem .felement div p,
#page-mod-surveypro-view_search .mform .fitem .fullwidth p {
margin: 0;
}
/* End of: no margin bottom to p inside .fullwidth */
/* Begin of: drop out pictures longer than the available width in #userentry and #usersearch */
#page-mod-surveypro-view_form .mform .itemlabel .fullwidth,
#page-mod-surveypro-view_search .mform .itemlabel .fullwidth {
overflow: hidden;
}
/* End of: drop out pictures longer than the available width */
/* Begin of: move horizontal checkbox and radio label closer to corresponding checkboes */
/* useful in case of radio button and checkboxes horizontally aligned */
/* NOTE: I have to add #userentry and #usersearch because I want to leave read-only layout untouched */
#page-mod-surveypro-view_form #userentry .fitem .felement input[type="checkbox"],
#page-mod-surveypro-view_form #userentry .fitem .felement input[type="radio"],
#page-mod-surveypro-view_form #usersearch .fitem .felement input[type="checkbox"],
#page-mod-surveypro-view_form #usersearch .fitem .felement input[type="radio"] {
margin-right: 0;
}
#page-mod-surveypro-view_form .mform .fitem .felement label {
margin-right: 1em;
}
/* End of: move horizontal checkbox and radio label closer to corresponding checkboes */
/* Begin of: #manageitems, #sortitems, #managetemplates and #validaterelations tables*/
#page-mod-surveypro-layout_itemlist table#manageitems,
#page-mod-surveypro-layout_itemlist table#sortitems,
#page-mod-surveypro-utemplate_manage table#managetemplates,
#page-mod-surveypro-layout_validation table#validaterelations {
width: 100%;
}
#page-mod-surveypro-layout_itemlist table#manageitems .plugin,
#page-mod-surveypro-layout_itemlist table#sortitems .plugin,
#page-mod-surveypro-layout_validation table#validaterelations .plugin {
padding: 0.5em;
text-align: center;
}
#page-mod-surveypro-layout_itemlist table#manageitems .hide {
display: none;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.plugin,
#page-mod-surveypro-layout_itemlist table#sortitems td.plugin {
width: 90px;
white-space: nowrap;
vertical-align: middle;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.plugin span.pluginicon,
#page-mod-surveypro-layout_itemlist table#sortitems td.plugin span.pluginicon {
padding: .2em;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.sortindex,
#page-mod-surveypro-layout_itemlist table#sortitems td.sortindex,
#page-mod-surveypro-layout_validation table#validaterelations td.sortindex {
min-width: 2.5em;
padding: 0.5em;
text-align: right;
white-space: nowrap;
vertical-align: middle;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.parentitem,
#page-mod-surveypro-layout_itemlist table#sortitems td.parentitem,
#page-mod-surveypro-layout_validation table#validaterelations td.parentitem {
margin: 0;
padding: 0.5em;
text-align: left;
white-space: nowrap;
vertical-align: middle;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.parentitem span.branch .icon,
#page-mod-surveypro-layout_itemlist table#sortitems td.parentitem span.branch .icon {
padding-left: .2em;
padding-right: .2em;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.customnumber,
#page-mod-surveypro-layout_itemlist table#sortitems td.customnumber {
padding: 0.5em;
white-space: nowrap;
vertical-align: middle;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.content,
#page-mod-surveypro-layout_itemlist table#sortitems td.content,
#page-mod-surveypro-layout_validation table#validaterelations td.content {
padding: 0.5em;
vertical-align: middle;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.formpage,
#page-mod-surveypro-layout_itemlist table#sortitems td.formpage {
padding: 0.5em;
text-align: center;
white-space: nowrap;
vertical-align: middle;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.availability,
#page-mod-surveypro-layout_itemlist table#sortitems td.availability {
padding: 0.5em;
text-align: center;
white-space: nowrap;
vertical-align: middle;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.availability img.icon,
#page-mod-surveypro-layout_itemlist table#manageitems td.availability i.icon,
#page-mod-surveypro-layout_itemlist table#sortitems td.availability img.icon,
#page-mod-surveypro-layout_itemlist table#sortitems td.availability i.icon {
width: 16px;
height: 16px;
/*margin: 0 0 0 0.45em;*/
padding: 0;
vertical-align: middle;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.actions,
#page-mod-surveypro-layout_itemlist table#sortitems td.actions,
#page-mod-surveypro-layout_validation table#validaterelations td.actions,
#page-mod-surveypro-view table#submissions td.actions,
#page-mod-surveypro-utemplate_manage table#managetemplates td.actions {
padding: 0.5em;
white-space: nowrap;
vertical-align: middle;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.actions img.icon,
#page-mod-surveypro-layout_itemlist table#manageitems td.actions i.icon,
#page-mod-surveypro-layout_itemlist table#sortitems td.actions img.icon,
#page-mod-surveypro-layout_itemlist table#sortitems td.actions i.icon {
width: 16px;
height: 16px;
padding: 0;
}
#page-mod-surveypro-layout_itemlist table#manageitems td.actions span.reorder,
#page-mod-surveypro-layout_itemlist table#sortitems td.actions span.reorder {
padding: .2em;
}
#page-mod-surveypro-layout_itemlist table#manageitems span.noactionicon,
#page-mod-surveypro-layout_itemlist table#sortitems span.noactionicon {
padding: .2em;
}
#page-mod-surveypro-layout_itemlist table#sortitems td.plugin img.placeholder {
height: 16px;
width: 80px;
}
#page-mod-surveypro-layout_itemlist table#manageitems .header,
#page-mod-surveypro-layout_itemlist table#sortitems .header {
text-align: center;
}
#page-mod-surveypro-layout_itemlist table#manageitems .dimmed,
#page-mod-surveypro-layout_itemlist table#sortitems .dimmed,
#page-mod-surveypro-layout_validation table#validaterelations .dimmed {
color: #cdcdcd;
}
#page-mod-surveypro-layout_validation table#validaterelations td.parentconstraints {
padding: 0.5em;
text-align: left;
white-space: nowrap;
}
#page-mod-surveypro-layout_validation table#validaterelations td.status {
padding: 0.5em;
white-space: nowrap;
}
#page-mod-surveypro-layout_validation table#validaterelations td.status .warningmessage {
color: yellow;
}
#page-mod-surveypro-layout_validation table#validaterelations td.status .errormessage {
color: red;
}
#page-mod-surveypro-layout_validation table#validaterelations .header {
text-align: center;
}
/* End of: #manageitems, #sortitems, #managetemplates and #validaterelations tables*/
/* Begin of: submissions table */
#page-mod-surveypro-view table#submissions {
width: 100%;
}
#page-mod-surveypro-view table#submissions .cell {
vertical-align: middle;
}
#page-mod-surveypro-view table#submissions .picture {
padding: 0.5em;
width: 1.2em;
}
#page-mod-surveypro-view table#submissions .actions img.icon,
#page-mod-surveypro-view table#submissions .actions i.icon {
width: 16px;
height: 16px;
margin: 0 0 0 0.45em;
padding-right: 0;
vertical-align: middle;
}
/* End of: submissions table */
/* Begin of: Page break and fieldset presentation in the items table and during deletion confirmation */
/* taken from: http://www.techrepublic.com/blog/web-designer/customize-horizontal-rules-to-add-some-flair/ */
#page-mod-surveypro-layout_itemlist hr.pagebreakcontent,
#page-mod-surveypro-layout_validation hr.pagebreakcontent {
border-radius: 45px;
border-style: ridge;
border-width: 3px 0 0 0;
height: 18px;
margin: 10px 10px -10px 10px;
}
#page-mod-surveypro-layout_itemlist .dimmed hr.pagebreakcontent,
#page-mod-surveypro-layout_validation .dimmed hr.pagebreakcontent {
border-width: 2px 0 0 0;
color: white;
}
#page-mod-surveypro-layout_itemlist hr.pagebreakcontent:before,
#page-mod-surveypro-layout_validation hr.pagebreakcontent:before {
border-radius: 45px;
border-style: ridge;
border-width: 0 0 2px 0;
content: "";
display: block;
height: 20px;
margin-top: -25px;
}
#page-mod-surveypro-layout_itemlist hr.fieldsetendcontent,
#page-mod-surveypro-layout_validation hr.fieldsetendcontent {
border: 2px dotted #000;
border-style: none none dotted;
width: 90%;
}
/* End of: Page break and fieldset presentation in the items table and during deletion confirmation */
/* Begin of: selectors for the static field explaining the format needed by each plugin in parentcontent field */
#page-mod-surveypro-layout_itemsetup table.exampletable {
padding: 0;
margin: 0 0 0 20px;
width: auto;
}
#page-mod-surveypro-layout_itemsetup td.pluginname {
padding: 0 20px 0 0;
vertical-align: top;
/* width: 60%; */
}
#page-mod-surveypro-layout_itemsetup td.inputformat {
padding: 0;
vertical-align: top;
/* width: 40%; */
}
#page-mod-surveypro-layout_itemsetup .felement.fstatic ul {
line-height: 1.2em;
}
/* End of: selectors for the static field explaining the format needed by each plugin in parentcontent field */
/* the first class selector is for the form in R/W mode, the second is for the RO mode */
#page-mod-surveypro-layout_preview #userentry .fitem .felement .indent-0,
#page-mod-surveypro-layout_preview .mform .fitem .felement .indent-0,
#page-mod-surveypro-view_form #userentry .fitem .felement .indent-0,
#page-mod-surveypro-view_form .mform .fitem .felement .indent-0 {
margin-left: 0;
}
#page-mod-surveypro-layout_preview #userentry .fitem .felement .indent-1,
#page-mod-surveypro-layout_preview .mform .fitem .felement .indent-1,
#page-mod-surveypro-view_form #userentry .fitem .felement .indent-1,
#page-mod-surveypro-view_form .mform .fitem .felement .indent-1 {
margin-left: 1.5em;
}
#page-mod-surveypro-layout_preview #userentry .fitem .felement .indent-2,
#page-mod-surveypro-layout_preview .mform .fitem .felement .indent-2,
#page-mod-surveypro-view_form #userentry .fitem .felement .indent-2,
#page-mod-surveypro-view_form .mform .fitem .felement .indent-2 {
margin-left: 3em;
}
#page-mod-surveypro-layout_preview #userentry .fitem .felement .indent-3,
#page-mod-surveypro-layout_preview .mform .fitem .felement .indent-3,
#page-mod-surveypro-view_form #userentry .fitem .felement .indent-3,
#page-mod-surveypro-view_form .mform .fitem .felement .indent-3 {
margin-left: 4.5em;
}
#page-mod-surveypro-layout_preview #userentry .fitem .felement .indent-4,
#page-mod-surveypro-layout_preview .mform .fitem .felement .indent-4,
#page-mod-surveypro-view_form #userentry .fitem .felement .indent-4,
#page-mod-surveypro-view_form .mform .fitem .felement .indent-4 {
margin-left: 6em;
}
#page-mod-surveypro-layout_preview #userentry .fitem .felement .indent-5,
#page-mod-surveypro-layout_preview .mform .fitem .felement .indent-5,
#page-mod-surveypro-view_form #userentry .fitem .felement .indent-5,
#page-mod-surveypro-view_form .mform .fitem .felement .indent-5 {
margin-left: 7.5em;
}
#page-mod-surveypro-layout_preview #userentry .fitem .felement .indent-6,
#page-mod-surveypro-layout_preview .mform .fitem .felement .indent-6,
#page-mod-surveypro-view_form #userentry .fitem .felement .indent-6,
#page-mod-surveypro-view_form .mform .fitem .felement .indent-6 {
margin-left: 9em;
}
#page-mod-surveypro-layout_preview #userentry .fitem .felement .indent-7,
#page-mod-surveypro-layout_preview .mform .fitem .felement .indent-7,
#page-mod-surveypro-view_form #userentry .fitem .felement .indent-7,
#page-mod-surveypro-view_form .mform .fitem .felement .indent-7 {
margin-left: 10.5em;
}
#page-mod-surveypro-layout_preview #userentry .fitem .felement .indent-8,
#page-mod-surveypro-layout_preview .mform .fitem .felement .indent-8,
#page-mod-surveypro-view_form #userentry .fitem .felement .indent-8,
#page-mod-surveypro-view_form .mform .fitem .felement .indent-8 {
margin-left: 12em;
}
#page-mod-surveypro-layout_preview #userentry .fitem .felement .indent-9,
#page-mod-surveypro-layout_preview .mform .fitem .felement .indent-9,
#page-mod-surveypro-view_form #userentry .fitem .felement .indent-9,
#page-mod-surveypro-view_form .mform .fitem .felement .indent-9 {
margin-left: 13.5em;
}
/* Begin of: for long edit fields in itemsetup form */
#page-mod-surveypro-layout_itemsetup .mform .fitem .felement .longfield {
width: 25em;
}
/* End of: for long edit fields in itemsetup form */
/* Begin of: fix to owful alignment of fielset legends in the cover */
#page-mod-surveypro-view_cover .coverinfolegend {
margin-bottom: 0;
margin-top: 20px;
}
/* End of: fix to owful alignment of fielset legends in the cover */
/* table with list of surveypro in index.php */
#page-mod-surveypro-index table.mod_index .col1,
#page-mod-surveypro-index table.mod_index .col2,
#page-mod-surveypro-index table.mod_index .col3,
#page-mod-surveypro-index table.mod_index .col4,
#page-mod-surveypro-index table.mod_index .col5 {
text-align: left;
}
#page-mod-surveypro-index table.mod_index .col1 {
white-space: nowrap;
}
#page-mod-surveypro-index table.mod_index td span.dimmed {
color: #999;
}
/* End of: table with list of surveypro in index.php */
/* to correct vertical alignment in read only mode */
#page-mod-surveypro-view_form .mform .fitem .felement.fgroup,
#page-mod-surveypro-view_form .mform .fitem .felement.feditor,
#page-mod-surveypro-view_form .mform .fitem .felement.fselect,
#page-mod-surveypro-view_form .mform .fitem .felement.fcheckbox,
#page-mod-surveypro-view_form .mform .fitem .felement.fstatic {
padding-top: 5px;
}
/* End of: to correct vertical alignment in read only mode */
/* vertical distance between top margin of a row and input elements is too small */
#page-mod-surveypro-layout_preview .mform .fitem,
#page-mod-surveypro-view_form .mform .fitem,
#page-mod-surveypro-view_search .mform .fitem {
padding-top: 0.7em;
}
/* End of: vertical distance between top margin of a row and input elements is too small */
/* makeup to autofill input to make it look like a label */
/* DON'T INCLUDE THE SEARCH FORM because at search time autofill has to look like a regular field */
#page-mod-surveypro-layout_preview .mform input.autofill_text,
#page-mod-surveypro-view_form .mform input.autofill_text {
background-color: transparent;
border: 0 transparent none;
box-shadow: none;
}
/* End: make up to autofill input to let it look like a static text */
/* vertical distance between select in rate is too much */
#page-mod-surveypro-layout_preview .mform select.rate_select,
#page-mod-surveypro-view_form .mform select.rate_select,
#page-mod-surveypro-view_search .mform select.rate_select {
margin-bottom: 0.2em;
margin-top: 0.2em;
}
/* End of: vertical distance between select in rate is too much */
/* these are a div selector */
/* padding top for div opening to rate elements */
#page-mod-surveypro-layout_preview .mform div.rate_select,
#page-mod-surveypro-view_form .mform div.rate_select,
#page-mod-surveypro-view_search .mform div.rate_select {
padding-top: 0;
}
/* End of: padding top for div opening to rate elements */
/* padding bottom for noanswer checkbox in a dedicated row, like, for instence, in rate elements */
#page-mod-surveypro-layout_preview .mform div.rate_check,
#page-mod-surveypro-view_form .mform div.rate_check,
#page-mod-surveypro-view_search .mform div.rate_check {
padding-bottom: 0.5em;
padding-top: 0;
}
/* End of: padding bottom for noanswer checkbox in a dedicated row, like, for instence, in rate elements */
/* padding bottom for noanswer checkbox in a dedicated row, like, for instence, in rate elements */
#page-mod-surveypro-layout_preview .mform div.fitem_fstatic,
#page-mod-surveypro-view_form .mform div.fitem_fstatic,
#page-mod-surveypro-view_search .mform div.fitem_fstatic {
padding-top: 0;
}
/* End of: padding bottom for noanswer checkbox in a dedicated row, like, for instence, in rate elements */
/* End of: these are a div selector */