-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathstyles.css
157 lines (144 loc) · 4.04 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
/* Styles for the initial layout of the question. */
/* Ensure container covers the draggable items. */
.que.ordering div.answer.ordering {
overflow: auto;
}
.que.ordering .sortablelist {
float: left;
list-style-type: none;
margin: 0 0 0 8px;
}
.que.ordering .sortablelist.active {
border: 1px dotted #333;
border-radius: 4px;
}
.que.ordering .sortablelist li {
background-color: #fff;
border: 1px solid #000;
border-radius: 4px;
list-style-type: none;
margin: 4px;
padding: 6px 12px;
}
.que.ordering .sortablelist li.sortableitem {
position: relative;
cursor: move;
margin-left: 26px; /* The margin is needed for the list-style-type in numberingxxx classes */
}
.que.ordering .sortablelist li.sortableitem:focus {
border-color: #0a0;
box-shadow: 0 0 5px 5px rgba(255, 255, 150, 1);
}
.que.ordering .sortablelist.numbering123 li,
.que.ordering .sortablelist.numberingabc li,
.que.ordering .sortablelist.numberingABCD li,
.que.ordering .sortablelist.numberingiii li,
.que.ordering .sortablelist.numberingIIII li {
margin-left: 26px; /* The margin is needed for the list-style-type in numberingxxx classes */
}
.que.ordering .sortablelist.numberingnone li {
list-style-type: none;
margin-left: 0;
}
.que.ordering .sortablelist.numbering123 li {
list-style-type: decimal;
}
.que.ordering .sortablelist.numberingabc li {
list-style-type: lower-alpha;
}
.que.ordering .sortablelist.numberingABCD li {
list-style-type: upper-alpha;
}
.que.ordering .sortablelist.numberingiii li {
list-style-type: lower-roman;
}
.que.ordering .sortablelist.numberingIIII li {
list-style-type: upper-roman;
}
.que.ordering .sortablelist.horizontal {
display: flex;
flex-wrap: wrap;
}
/* Better define 'row' of item for horizontal list. */
.que.ordering .sortablelist.horizontal {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
}
.que.ordering .sortablelist.vertical li {
min-height: 18px;
}
/* Styles for when things are being dragged. */
.que.ordering.dragproxy {
margin: 0;
padding: 0;
border: 0 none;
}
.que.ordering.dragproxy .sortablelist {
margin: 0;
padding: 0;
float: none;
}
.que.ordering.dragproxy .sortablelist li {
margin: 0;
padding: 6px 0 6px 12px;
width: 100%;
}
.que.ordering.dragproxy .sortablelist li.horizontal {
float: none;
}
.item-moving {
box-shadow: 3px 3px 4px #000;
}
.current-drop {
visibility: hidden;
}
/* Styles for feedback. */
.que.ordering .sortablelist.notactive li.correct {
background-color: #dff4d8; /* light green */
border-color: #9f6; /* gentle green */
}
.que.ordering .sortablelist.notactive li.partial66 {
background-color: #dff4d8; /* light green */
border-color: #f90; /* dark orange */
}
.que.ordering .sortablelist.notactive li.partial33 {
background-color: #ffebcc; /* light orange */
border-color: #f90; /* dark orange */
}
.que.ordering .sortablelist.notactive li.partial00 {
background-color: #fdd; /* light red */
border-color: #f90; /* dark orange */
}
.que.ordering .sortablelist.notactive li.incorrect {
background-color: #fdd; /* light red */
border-color: #ff7373; /* gentle red */
}
/*
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 {
padding-inline-start: 16px;
}
.que.ordering div.rightanswer ol.correctorder.horizontal {
display: flex;
flex-wrap: wrap;
align-items: baseline;
}
.que.ordering div.rightanswer ol.correctorder li.horizontal {
margin-left: 24px;
margin-right: 24px;
}
.que.ordering div.rightanswer ol.correctorder li.vertical {
margin-left: 24px;
}
/* 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;
}