Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
415 lines (367 loc) · 10.9 KB
/
Copy pathstyles.css
File metadata and controls
415 lines (367 loc) · 10.9 KB
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
/* stylelint-disable declaration-no-important */
/**
Coursework.
**/
/* Marking page. */
.path-mod-coursework-actions-feedbacks {
/* Full width container for pdf viewer. */
.full-width {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
max-width: 100vw;
}
/* Don't display drawers on marking pages. */
.drawer-toggles,
.drawer {
display: none !important;
}
#page.drawers.show-drawer-left,
#page.drawers.show-drawer-right {
margin-left: 0;
margin-right: 0;
}
/* Normalise number input fields. */
input[type=number] {
field-sizing: content; /* stylelint-disable-line */
min-width: 4rem;
text-align: right;
}
.showmarkerdesc,
.showstudentdesc {
display: block;
padding: 1rem;
label {
display: block;
font-size: small;
}
}
}
.cm-type-coursework,
.path-mod-coursework {
/* Rubric and advanced grading forms. */
#rubric-rubric.preview,
#advancedgrading-criteria {
display: block;
width: 100%;
&,
& tbody,
& tr,
& td,
table {
/* Remove default table spacing/border and force block display */
display: block;
margin: 0 !important;
padding: 0 .1rem !important;
border: none !important;
width: 100% !important;
max-width: 100%;
text-align: left;
}
/* Remove bg colour for even/odd td. */
.criterion.even,
.criterion.even td {
background-color: transparent;
}
/* Show form labels. */
.remark label {
margin-top: 1rem;
&.hidden {
display: block !important;
margin-top: 0;
}
}
/* Criteria title - faux headings. */
.description,
.criterionshortname {
font-weight: bold;
font-size: 1.2rem;
display: block;
padding-top: 2rem !important;
.review-marks {
font-size: 1rem;
font-weight: normal;
}
}
/* Small for criteria description. */
.criteriondescription,
.criteriondescriptionmarkers {
font-size: small;
width: auto;
}
/* Radio input, definition, and score. */
.level-wrapper {
display: flex;
flex-direction: row;
align-items: start;
width: 100%;
padding: .5rem;
.radio {
display: block !important;
transform: scale(1.5);
margin-right: 0.5rem;
margin-top: 0.2rem;
}
.definition {
padding: 0 1rem;
}
.score {
margin: 0;
margin-left: auto;
padding: 0.25em 0.6em !important;
text-wrap: nowrap; /* stylelint-disable-line */
font-style: normal;
font-size: small;
color: var(--dark);
max-height: 2rem;
border-radius: 10rem;
}
/* Rubric selected level styles. */
&:has(.radio input[type="radio"]:checked) {
background-color: var(--light);
.score {
/* Score rounded pill success styles. */
background-color: var(--success);
color: white;
}
.definition {
font-weight: bold;
}
}
&:has(.radio) {
&:hover {
background-color: var(--light);
cursor: pointer;
}
}
}
/* Comment area. */
textarea,
.markingguideremark {
width: 100%;
box-sizing: border-box;
}
/* Reduce the textarea height and add padding */
textarea {
padding: 0.5rem;
margin-bottom: .5rem;
min-height: 4rem;
field-sizing: content; /* stylelint-disable-line */
}
/* Add frequently use comments button. */
.commentchooser {
display: block;
font-size: small;
margin: .5rem 0;
}
}
/* Marking guide (advanced grading, but not rubric). */
.gradingform_guide table#advancedgrading-criteria {
td.remark {
display: inline-block;
vertical-align: top;
width: 75% !important;
box-sizing: border-box;
}
td.score {
display: inline-block;
width: 25% !important;
text-align: right;
input {
margin-left: auto;
margin-bottom: .5rem;
}
}
}
/* Hide advanced marking form header. */
#coursework-markingform {
#id_advancedgrading_label,
.gradingform_guide-description {
display: none !important;
}
}
/* Marking form and student feedback. */
#coursework-markingform,
.coursework-feedback {
/* Full width cols. */
div.col-md-3,
div.col-md-9 {
max-width: 100%;
flex: 0 0 100%;
}
.col-form-label {
font-weight: bold;
}
/* Grading tables. */
.gradingform_guide,
.gradingform_rubric {
display: block;
width: 100%;
.criterion.even,
.criterion.even td {
background-color: transparent;
}
.criteria {
height: auto;
}
label {
font-weight: normal;
}
.score {
text-align: right;
input:required {
&:user-invalid {
border: 2px solid var(--danger);
padding-right: 1.5rem;
background: url([[pix:i/risk_dataloss]]) no-repeat center right 0.5rem / 1rem 1rem;
}
}
}
}
}
}
.path-mod-coursework {
.bg-cover {
background-size: cover;
background-position: center;
}
/* Hide activity header - date and description displayed differently. */
.activity-header {
display: none !important;
}
/* SHAME - not able to add btn-block in php. */
#coursework-finalise-submission .btn {
display: block !important;
width: 100%;
}
/* Plagiarism links. */
.mod-coursework-submission .core_plagiarism_links {
display: block;
padding: .5rem;
margin-top: .5rem;
background-color: var(--light);
.tii_links_container {
padding: 0;
/* Hide icon. */
img[src*="turnitin-icon"] {
display: none;
}
.turnitin_status {
font-size: small;
}
/* Resubmit - style as link. */
[id^=pp_resubmit] {
color: var(--primary);
&:hover {
text-decoration: underline;
}
}
}
}
.mod-coursework-submissions-table tr.mod-coursework-submissions-row {
/*When URL anchor used, ensure row not obscured by breadcrumb.*/
scroll-margin-top: 60px;
}
/* Actions menu dropdown dividers. */
.mod-coursework-submissions-action-col .dropdown-menu {
/* Hide any hanging dividers. */
.dropdown-divider:last-of-type,
.dropdown-divider + .dropdown-divider {
display: none;
}
}
.coursework-feedback {
/* General bubble styles (same as before, but added a top-left class for clarity) */
.chat-bubble-bordered {
position: relative;
background-color: white;
border: 2px solid var(--dark);
box-shadow: .3em .3em 0 0 var(--dark);
padding: 1rem;
margin-top: 25px; /* Added space at the top for the arrow */
}
/* Specific styles for the top-left arrow */
.chat-bubble-bordered::before {
content: '';
position: absolute;
width: 0;
height: 0;
border-left: 1rem solid transparent; /* Base of the outer triangle */
border-right: 1rem solid transparent; /* Base of the outer triangle */
border-bottom: 1.1rem solid var(--dark); /* Color of the border, pointing up */
top: -18px; /* Position above the bubble, accounting for border and triangle height */
left: 1rem; /* Horizontal position from the left */
z-index: 1;
}
.chat-bubble-bordered::after {
content: '';
position: absolute;
width: 0;
height: 0;
border-left: 1rem solid transparent; /* Slightly smaller base for inner triangle */
border-right: 1rem solid transparent; /* Slightly smaller base for inner triangle */
border-bottom: 1.1rem solid white; /* Match the body background to "cut out" */
top: -15px; /* Position relative to the outer triangle */
left: 1rem; /* Horizontal position, slightly offset to match outer */
z-index: 2;
}
}
&.path-mod-coursework-actions-feedbacks #id_removefeedbackbutton {
color: var(--white);
background-color: var(--danger);
border-color: var(--danger);
}
&#page-mod-coursework-actions-audit #id_submitremove {
color: var(--white);
background-color: var(--danger);
border-color: var(--danger);
}
.container + .container > .alert {
/* Ensure there's space above notifications. */
margin-top: 1em;
}
}
/* Boost style theme with navbar fixed-top. */
body:has(.navbar.fixed-top) .sticky-top {
top: 65px;
}
/* Advanced pdf stuff. */
#page-mod-coursework-actions-feedbacks-viewpdf #page {
padding: 0;
#printButton,
#downloadButton,
#secondaryOpenFile,
#secondaryPrint,
#secondaryDownload,
#presentationMode,
#viewBookmark,
#viewBookmarkSeparator,
#spreadModeButtons {
display: none;
}
}
/* PDF viewer. */
#mod-coursework-pdf-container {
z-index: 1;
/* Submission metadata. */
.mod-coursework-submission {
display: flex;
align-items: flex-start;
.mod-coursework-submission-metadata {
margin-left: auto;
}
}
/* PDF iframe. */
#mod-coursework-pdf-wrapper {
height: 85vh;
iframe {
height: 100%;
width: 100%;
border: none;
border-bottom: 1rem solid;
}
}
}