forked from gbateson/moodle-qtype_essayautograde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
187 lines (163 loc) · 4.91 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
/***************************************************************************
Because the "essayautograde" question type extends the "essay" renderer,
the classes of the inner display elements use the original "essay" CSS
class names.
***************************************************************************/
.que.essayautograde .hidesample,
.que.essayautograde .showsample {
font-size: 0.85em;
font-weight: bold;
}
.que.essayautograde .hidesample::before,
.que.essayautograde .showsample::before {
content: " (";
}
.que.essayautograde .hidesample::after,
.que.essayautograde .showsample::after {
content: ")";
}
.que.essayautograde .hidesample {
color: purple;
}
.que.essayautograde .showsample {
color: red;
}
.que.essayautograde textarea.qtype_essay_response {
width: 100%;
}
.que.essayautograde textarea.qtype_essay_response.qtype_essayautograde_plain {
white-space: pre-wrap;
font: inherit;
}
.que.essayautograde textarea.qtype_essay_response.qtype_essayautograde_monospaced {
white-space: pre;
font-family: Andale Mono, Monaco, Courier New, DejaVu Sans Mono, monospace;
}
.que.essayautograde .qtype_essay_response {
min-height: 3em;
}
.que.essayautograde .qtype_essay_response.readonly {
background-color: white;
border-radius: 4px;
padding: 6px 12px;
}
.que.essayautograde div.qtype_essay_response textarea {
width: 100%;
}
.que.essayautograde div.qtype_essay_response select {
margin-bottom: 0px;
}
.que.essayautograde p.itemcount {
margin-top: 6px;
}
.que.essayautograde dl.gradebands {
overflow: auto;
}
.que.essayautograde dl.gradebands dt {
float: left;
clear: left;
margin-right: 8px;
}
.que.essayautograde dl.gradebands dd {
float: left;
margin-bottom: 0px;
margin-top: 2px;
}
.que.essayautograde .fp-restrictions span:first-of-type {
display: none;
}
table.essayautograde.review {
border-collapse: separate;
border-spacing: 0;
color: #7f4614;
}
table.essayautograde.review.stats {
max-width: 360px;
}
table.essayautograde.review.feedback .c0 {
max-width: 200px;
}
table.essayautograde.review tr,
table.essayautograde.review th,
table.essayautograde.review td {
border: none;
}
table.essayautograde.review tr:first-child th,
table.essayautograde.review tr:first-child td {
border-top: solid 1px #a65b1a;
}
table.essayautograde.review tr th:first-child,
table.essayautograde.review tr td:first-child {
border-left: solid 1px #a65b1a;
}
table.essayautograde.review tr th:last-child,
table.essayautograde.review tr td:last-child {
border-right: solid 1px #a65b1a;
}
table.essayautograde.review tr:last-child th,
table.essayautograde.review tr:last-child td {
border-bottom: solid 1px #a65b1a;
}
table.essayautograde.review tr:first-child th:first-child,
table.essayautograde.review tr:first-child td:first-child {
border-top-left-radius: 4px;
}
table.essayautograde.review tr:first-child th:last-child,
table.essayautograde.review tr:first-child td:last-child {
border-top-right-radius: 4px;
}
table.essayautograde.review tr:last-child th:first-child,
table.essayautograde.review tr:last-child td:first-child {
border-bottom-left-radius: 4px;
}
table.essayautograde.review tr:last-child th:last-child,
table.essayautograde.review tr:last-child td:last-child {
border-bottom-right-radius: 4px;
}
table.essayautograde.review tbody tr:nth-of-type(odd) {
background-color: #fafafa;
}
table.essayautograde.review tbody tr:nth-of-type(even) {
background-color: #f0e5cc;
}
table.essayautograde.review ol,
table.essayautograde.review ul {
margin: 0px 0px 0px 16px;
padding: 0px;
}
table.essayautograde.review .error,
table.essayautograde.review .missing,
table.essayautograde.review .partial,
table.essayautograde.review .present {
border-width: 2px;
border-style: solid;
border-radius: 4px;
display: inline-block;
padding: 2px 6px;
min-width: calc(16px + 4.5em);
white-space: nowrap;
}
table.essayautograde.review .error,
table.essayautograde.review .missing {
background-color: #ffdddd; /* light red */
border-color: #ff7373; /* gentle red */
color: #990000; /* dark red */
}
table.essayautograde.review .partial {
background-color : #ffebcc; /* light orange */
border-color : #ff9900; /* gentle orange */
color: #cc6600; /* dark orange */
}
table.essayautograde.review .present {
background-color: #dff4d8; /* light green */
border-color: #99ff66; /* gentle green */
color: #009900; /* dark green */
}
@media (min-width: 768px) {
/** Moodle <= 3.6 **/
[id^=fgroup_id_phrasebehavior_] label,
/** Moodle >= 3.7 **/
[id^=fgroup_id_phrasebehavior_] [id$=_label] {
visibility: hidden;
}
}