-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcanvasquiz.css
157 lines (131 loc) · 3.07 KB
/
canvasquiz.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
.student-wrapper {
text-align: center;
margin: auto;
font-size: xx-large;
page-break-after: always;
height: 20cm;
vertical-align: middle;
}
.account-label, .snum-label, .sname-label {
display: block;
}
.account, .snum, .sname {
display: table-cell;
vertical-align: middle;
height: 3cm;
width: 10cm;
border: 1px solid;
/* background: #7f7; */
font-family: cursive;
margin: auto;
}
.sname {
height: 5cm;
width: 15cm;
/* background: #f77; */
}
/* This class is used in text-only questions (explanations, diagrams,
preambles to other questions, etc.)
*/
.text-only-question {
page-break-after: always;
}
/* Question preamble is used before any question. It has no text, but
can be used to break pages in case of absolute positioning. */
.question-preamble {
page-break-after: always;
}
/* Question container will contain both the question and the
answer. Absolute positioning is used to ensure the question will
never be broken into two pages in case of answers that are too
long. Additional CSS headers may be used for the class
question-XXX, where XXX is the question ID. */
.question-container {
page-break-inside: avoid;
position: absolute;
}
/* Question title contains the question ID and name. */
.question-title {
}
/* The question text itself. */
.question {
font-size: x-small;
max-height: 5cm;
overflow: hidden;
background: #ccc;
}
/* Points possible and points assigned by Canvas. */
.points-container {
text-align: center;
}
.points-possible span, .points-canvas span {
display: table-cell;
width: 2cm;
vertical-align: middle;
height: 1cm;
text-align: center;
border: 1px solid;
}
.points-possible::before {
content: "Points possible:";
vertical-align: middle;
display: table-cell;
}
.points-canvas::before {
content: "Canvas autograder points:";
vertical-align: middle;
display: table-cell;
}
/* .points-possible span { */
/* background: cyan; */
/* } */
/* .points-canvas span { */
/* background: yellow; */
/* } */
/* Answer title, may contain number of attempts */
.answer-title {
}
/* Student's answer itself */
.answer {
font-size: x-small;
background: #eee;
}
/* The following classes are used in multiple choice, multiple answers
and true/false questions.
*/
.mc-item {
height: 1cm;
}
.mc-item-space span {
width: 1cm;
height: 1cm;
border: 2px black;
display: inline-block;
text-align: center;
}
.mc-item-space::before {
content: "(";
}
.mc-item-space::after {
content: ")";
}
.mc-item-text {
}
/* The following classes are used in fill-in multiple blanks, multiple
dropdowns and matching questions.
*/
.multiple-blanks-table {
}
.multiple-blanks-token {
text-align: right;
}
.multiple-blanks-answer {
}
/* The following classes are used to list files in file upload questions. */
.file-upload {
}
/* Weasyprint doesn't support the border attribute on tables, this is
a workaround. */
table[border], table[border] td, table[border] th {
border: 1px solid;
}