-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathglobal.css
More file actions
342 lines (281 loc) · 6.95 KB
/
global.css
File metadata and controls
342 lines (281 loc) · 6.95 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
/* This file contains CSS rules that extend/overwrite the default rules set in the ximeraServer
*
* As of 2024-11
* - this works only on the new (KULeuven-adapted) ximeraServer
* - this file (re-)translates labels into English
*
* In the (near?) future, this file should
* - be renamed xmHtmlStyle.css (to sync with xmPreamble.tex and xmPrintStyle.sty)
* - become (almost) empty by default, because the ximeraServer default settings will becom English again
*/
/* Fixes for expandables (hints/solution/...) */
.btn-reveal-hint {
float: none;
clear: none;
margin-top: 0em;
display: block;
margin-left: auto;
z-index: 1;
position: relative;
}
.xmhint, .xmoplossing, .xmuitkomst {
background-color: #1D8DB0;
color: white;
font-family: sans-serif;
font-weight: normal;
font-size: smaller;
margin: 1px !important;
margin-left: auto !important;
display: block;
/* max-width: max-content; */
max-width: 10em !important;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: middle;
user-select: none;
border: 1px solid transparent;
padding: 0px !important;
font-size: 1rem;
transition: all 0.2s ease-in-out;
counter-increment: hint_number;
}
/* increase specificity with double classes ;) */
div.xmhint-content.ui-accordion-content {
background-color: #00000000; /* transparent; overwrites .ui-widget-content ... */
border: 1px solid #005000;
border-top: 1px solid #005000 !important;
border-left: 3px solid #005000;
color: #005000;
margin-top: 0rem;
padding: 2px 3rem;
overflow: visible; /* set to auto for .ui-accordion .ui-accordion-content in <style> */
}
div.xmhint-content::before {
content: "Hint: ";
font-weight: bold;
margin-left: -3rem; /* Hack, see padding above ... */
}
div.xmoplossing-content.ui-accordion-content, div.xmuitkomst-content.ui-accordion-content {
background-color: #00000000; /* transparent; overwrites .ui-widget-content ... */
background-color: white;
border: 1px solid black;
border-left: 3px solid black;
color: black;
margin-top: 0rem;
padding: 5px;
}
/*
@counter-style notfirst {
system: alphabetic;
symbols: " " "2" "3" "4" "5" "6" "7" "8" "9" "0";
}
.example, .exercise, .question {
counter-reset: hint_number;
}
*/
/* Fixes for language ?? */
.xmhint::before {
content: "Show hint" counter(hint_number, notfirst);
}
.xmhint.ui-state-active::before {
content: "Hide hint " counter(hint_number, notfirst);
}
.xmoplossing::before {
content: "Show solution";
}
.xmoplossing.ui-state-active::before {
content: "Hide solution";
}
.xmoplossing-content::before {
content: "Solution: ";
font-weight: bold;
}
.xmuitkomst::before {
content: "Show answer";
}
.xmuitkomst.ui-state-active::before {
content: "Hide answer";
}
.xmuitkomst-content::before {
content: "Answer: ";
font-weight: bold;
}
.exercise::before {
content: "exercise" attr(probnum) ".";
}
.definition::before {
content: "definition" attr(numbered) ".";
}
.remark::before {
content: "remark" attr(numbered) ".";
}
.proposition::before {
content: "proposition" attr(numbered) ".";
}
.example::before {
content: "example" attr(numbered) ".";
}
.warning::before {
content: "warning" attr(numbered) ".";
}
.theorem::before {
content: "theorem" attr(numbered) ".";
}
.explanation::before {
content: "explanation" attr(numbered) ".";
}
.exploration::before {
content: "exploration" attr(probnum) ".";
}
.formula::before {
content: "formula" attr(numbered) ".";
}
.problem::before {
content: "problem" attr(probnum) ".";
}
.notation::before {
content: "notation" attr(numbered) ".";
}
/* Overwrite labels */
span.hint-text {
display: none;
}
button.btn-reveal-hint::after {
content: "Show hint";
}
button.btn-reveal-hint.oplossing::after {
content: "Show solution";
}
.xmerase a span.xmhidden-small {
display: none;
}
.xmerase a::after {
content: "Clear";
}
span.show-check-text {
display: none !important;
}
button.btn-ximera-check::after {
content: "Check answer";
}
span.show-answer-text {
display: none !important;
}
span.show-answer-large button.btn-ximera-show-answer::after {
content: "Reveal answer";
}
#math-edit-button span {
display: none;
}
button#math-edit-button::before {
content: "Math Editor";
}
/* Vorige/volgende */
a.next-activity::before {
content: "Next";
}
span#next-activity-label {
display: none;
}
a.prev-activity::after {
content: "Previous";
}
span#prev-activity-label {
display: none;
}
.en-text {
display: initial;
}
.nl-text {
display: none;
}
/* Multi-Lingual Formatting */
.multiple-choice[titletext]::before {
/* Numbered everything in CSS is causing trouble. TeX should decide the numbering. */
/* content:"${nameOfClass} " counter($counterToIncrement) ". ";*/
content:attr(titletext);
}
/*
We setup the problem-environment(s) default display/title text next.
*/
/* Set the problem-environment default(s):
Note that, because there are a number of types, we need a "default" for each type - I don't know how to do this other than hard-code.
Also note: We may want to decide, as a team, what the default text should *actually* be, e.g. capitalize or not, spacing, etc.
*/
.problem::before {
content:"problem" attr(probnum) ".";
}
.exploration::before {
content:"exploration" attr(probnum) ".";
}
.exercise::before {
content:"exercise" attr(probnum) ".";
}
.question::before {
content:"question" attr(probnum) ".";
}
/*
If the problem environment(s) have the "titletext" attribute defined, then overwrite the above default with the newly defined default text.
Note: This is used to do automatic translation, but could also be used to change the default text in *any* way we would want,
e.g. use "P1", "Problem 1", "Prob 1", "Exciting Problem 1", etc.
*/
.problem-environment[titletext]::before {
/* Numbered everything in CSS is causing trouble. TeX should decide the numbering. */
/* content:"${nameOfClass} " counter($counterToIncrement) ". ";*/
content:attr(titletext) attr(probnum) ".";
}
.theorem-like[titletext]::before {
content:attr(titletext);
}
.feedback[titletext]::before {
content:attr(titletext) ": ";
}
/* Outcome Formatting */
.outcomeContent {
/* display: none; */
color: rgb(51, 0, 181);
}
.outcomeHead {
text-align: center;
font-weight: bold;
}
/*
.outcomeHead:hover + .outcomeContent {
display: block;
} */
.desmos-placeholder {
max-width: 100%;
overflow: scroll;
display: inline-block;
vertical-align: middle;
resize: both;
}
.xmdesmos img{
max-width: 100%;
overflow: scroll;
display: inline-block;
vertical-align: middle;
}
.img-container {
position: relative;
display: inline-block;
margin: 10px;
}
.img-container img {
display: block;
max-width: 300px;
border: 1px solid #ccc;
}
.img-container button.hide-btn,
.img-container button.show-btn {
position: absolute;
top: 5px;
right: 5px;
font-size: 12px;
padding: 2px 6px;
cursor: pointer;
}
.img-container button.show-btn {
display: none;
}