forked from gbateson/moodle-qtype_ordering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
93 lines (90 loc) · 3 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
/* ensure container covers the draggable items */
.que.ordering div.answer.ordering { overflow: auto; }
.que.ordering ul.sortablelist {
border : 1px solid #ccc;
float : left;
font-family : Arial, sans-serif;
font-size : 13px;
list-style-type : none;
margin : 0px;
margin-left : 5px;
padding : 4px 4px 0 4px;
width : 80%;
}
.que.ordering ul.sortablelist,
.que.ordering ul.sortablelist li {
-webkit-border-radius: 6px; /* Safari and Chrome */
-moz-border-radius: 6px; /* Firefox */
-o-border-radius: 6px; /* Opera */
border-radius: 6px; /* CSS3 */
}
.que.ordering ul.sortablelist li {
background-color : #eeeeee;
border : 1px solid #cccccc;
border-image : initial;
list-style-type : none;
margin : 4px;
padding : 6px 12px;
}
.que.ordering ul.sortablelist li.sortableitem {
position : relative;
cursor : move;
}
.que.ordering ul.sortablelist li.horizontal {
float : left;
}
.que.ordering ul.sortablelist li.vertical {
min-height : 18px;
}
.que.ordering ul.sortablelist li.correct {
background-color : #dff4d8; /* light green */
border-color : #99ff66; /* gentle green */
}
.que.ordering ul.sortablelist li.partial66 {
background-color : #dff4d8; /* light green */
border-color : #ff9900; /* dark orange */
}
.que.ordering ul.sortablelist li.partial33 {
background-color : #ffebcc; /* light orange */
border-color : #ff9900; /* dark orange */
}
.que.ordering ul.sortablelist li.partial00 {
background-color : #ffdddd; /* light red */
border-color : #ff9900; /* dark orange */
}
.que.ordering ul.sortablelist li.incorrect {
background-color : #ffdddd; /* light red */
border-color : #ff7373; /* gentle red */
}
.que.ordering ul.sortablelist li.correct,
.que.ordering ul.sortablelist li.partial66,
.que.ordering ul.sortablelist li.partial33,
.que.ordering ul.sortablelist li.partial00,
.que.ordering ul.sortablelist li.incorrect,
.que.ordering ul.sortablelist li.unscored {
border-style : solid;
border-width : 4px;
margin-bottom : 4px;
margin-top : 4px;
}
/*
force containing DIV to cover the floating LI elements
Note: if you add "overflow:auto; to "ol.correctorder"
then the numbers for the <LI> elements disappear !!
*/
.que.ordering div.rightanswer {
overflow: auto;
}
.que.ordering div.rightanswer ol.correctorder li.horizontal {
float : left;
margin-left : 24px;
margin-right : 24px;
}
.que.ordering div.rightanswer ol.correctorder li.horizontal:first-child {
margin-left : 0px;
}
.que.ordering div.rightanswer ol.correctorder li.vertical {
}
/* the width restriction can be limited to editors for draggable items
by inserting "fieldset:nth-child(n+4)" before "div.feditor" */
#page-question-type-ordering form.mform fieldset:nth-child(n+4) div.feditor { max-width: 480px; }