Subversion Repositories wimsdev

Rev

Rev 18685 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18685 Rev 18686
Line 5... Line 5...
5
 * check with css.pl when it is changed -> createxo help
5
 * check with css.pl when it is changed -> createxo help
6
 */
6
 */
7
 
7
 
8
/* @text-right, align to the right */
8
/* @text-right, align to the right */
9
.text-right{text-align: right;}
9
.text-right{text-align: right;}
-
 
10
 
10
/* @text-left, align to the left */
11
/* @text-left, align to the left */
11
.text-left {text-align: left;}
12
.text-left {text-align: left;}
12
 
13
 
13
/* @center, center content */
14
/* @center, center content */
14
.center, .wimscenter{text-align: center;}
15
.center, .wimscenter{text-align: center;}
-
 
16
 
15
/* @wimscenter, center with margins */
17
/* @wimscenter, center with margins */
16
div.wimscenter{ margin: .8em .5em .8em .5em; }
18
div.wimscenter{ margin: .8em .5em; }
17
/* */
19
 
18
.wimscenter>.ggbapplet,.wimscenter>[id^="jmolApplet"],
20
.wimscenter>.ggbapplet,.wimscenter>[id^="jmolApplet"],
19
.wimscenter table{margin: 0 auto;}
21
.wimscenter table{margin: 0 auto;}
-
 
22
 
20
/* @blockcenter, center a block as a table */
23
/* @blockcenter, center a block as a table */
21
.blockcenter{
24
.blockcenter {
22
  margin-right:auto;
25
  margin-right:auto;
23
  margin-left: auto;
26
  margin-left: auto;
24
}
27
}
25
 
28
 
26
img.wimscenter {
29
img.wimscenter {
Line 38... Line 41...
38
.float_left{ float:left;}
41
.float_left{ float:left;}
39
 
42
 
40
/* @clearall, use it to stop float for example with br */
43
/* @clearall, use it to stop float for example with br */
41
.clearall{ clear: both;}
44
.clearall{ clear: both;}
42
 
45
 
43
/* @clearfix, use it to contain floats without altering what's next.*/
46
/* @clearfix, use it to contain floats without altering what's next. */
44
.clearfix::after {
47
.clearfix::after {
45
  content: "";
48
  content: "";
46
  clear: both;
49
  clear: both;
47
  display: table;
50
  display: table;
48
}
51
}
Line 58... Line 61...
58
 
61
 
59
/* @larger, text larger */
62
/* @larger, text larger */
60
.larger { font-size: 120%;}
63
.larger { font-size: 120%;}
61
 
64
 
62
/* @wims_emph, emphasis some part of the text */
65
/* @wims_emph, emphasis some part of the text */
-
 
66
.wims_emph {
-
 
67
  font-style: italic;
-
 
68
  font-weight: bold;
-
 
69
}
-
 
70
 
63
.wims_emph {font-style:italic;font-weight:bold;}
71
.wims_checkbox li {list-style-type: square}
-
 
72
 
-
 
73
.wims_radio li, .wims_menu li, .wims_click li {list-style-type: circle}
-
 
74
 
64
 
75
 
65
/* @inline, text in line (if you put inline directly on li, there will be no margin) (div, li) */
76
/* @inline, text in line (if you put inline directly on li, there will be no margin) (div, li) */
-
 
77
div.inline,
66
/*.inline{ }*/
78
li.inline {
-
 
79
  /* zoom:1; */
67
div.inline, li.inline {/*zoom:1;*/display:inline-block;min-width: 1em}
80
  display: inline-block;
-
 
81
  min-width: 1em
-
 
82
}
68
 
83
 
69
/* @inline, Inline general lists (ol, ul) */
84
/* @inline, Inline general lists (ol, ul) */
70
.inline>li{margin-right:2em;}
85
.inline>li{margin-right:2em;}
71
 
86
 
72
/* @inline, Inline Ordered Lists */
87
/* @inline, Inline Ordered Lists */
73
ol.inline{overflow: auto;}
88
ol.inline{overflow: auto;}
74
ol.inline>li {float:left;}
89
ol.inline>li {float:left;}
75
ol.inline::after {clear: both;}
90
ol.inline::after {clear: both;}
76
 
91
 
77
/* @inline, Inline Unordered Lists */
92
/* @inline, Inline Unordered Lists */
78
ul.inline>li{display:inline-block;}
93
ul.inline>li{display:inline-block;}
79
 
94
 
80
/* @wims_nopuce, list without puce (ul) */
95
/* @wims_nopuce, list without puce (ul) */
81
.wims_nopuce {list-style-type:none}
96
.wims_nopuce {list-style-type:none}
82
.wims_nopuce ul{list-style-type:disc}
97
.wims_nopuce ul{list-style-type:disc}
83
.wims_nopuce ul ul{list-style-type:circle}
98
.wims_nopuce ul ul{list-style-type:circle}
84
.wims_nopuce ul ul ul{list-style-type:square}
99
.wims_nopuce ul ul ul{list-style-type:square}
Line 86... Line 101...
86
/* @spacer, use spacer on div to add extra spaces */
101
/* @spacer, use spacer on div to add extra spaces */
87
.spacer {
102
.spacer {
88
  content: " ";
103
  content: " ";
89
  display: block;
104
  display: block;
90
  padding-top: .6em;
105
  padding-top: .6em;
-
 
106
 
91
  /* on Mozilla, only margin is taken on <br> (not padding) */
107
  /* on Mozilla, only margin is taken on <br> (not padding) */
92
  margin-top: .6em;
108
  margin-top: .6em;
93
  margin-bottom: .6em;
109
  margin-bottom: .6em;
94
}
110
}
-
 
111
 
95
/* @spacer, add extra spaces (use on ul/ol to add spaces on all li) (div, ul, ol) */
112
/* @spacer, add extra spaces (use on ul/ol to add spaces on all li) (div, ul, ol) */
96
ul.spacer>li,ol.spacer>li {
113
ul.spacer>li,ol.spacer>li {
97
  margin-bottom: .6em;
114
  margin-bottom: .6em;
98
}
115
}
99
 
116
 
100
/* @unbreakable, use unbreakable on a div surrounding a large text element that must not be wrapped (like a long math formula). But be aware of small screens! */
117
/* @unbreakable, use unbreakable on a div surrounding a large text element that must not be wrapped (like a long math formula). But be aware of small screens! */
101
.unbreakable {
118
.unbreakable {
102
  display:block;
119
  display:block;
103
  overflow-x:auto;
120
  overflow-x:auto;
104
  white-space: nowrap;
121
  white-space: nowrap;
105
}
122
}
-
 
123
 
106
/* @wims_scrollable, use for non responsive contents that cannot be shrinked on small screens */
124
/* @wims_scrollable, use for non responsive contents that cannot be shrinked on small screens */
107
.wims_scrollable{
125
.wims_scrollable{
108
  overflow-x: auto;
126
  overflow-x: auto;
109
  max-width: 100%;
127
  max-width: 100%;
110
}
128
}
111
 
129
 
112
/* @wims_video, default for HTML5 video player */
130
/* @wims_video, default for HTML5 video player */
113
.wims_video {
131
.wims_video {
114
  box-sizing: border-box;
132
  box-sizing: border-box;
115
  max-width:100%;
133
  max-width:100%;
116
  margin:0;
134
  margin:0;
117
  background-color:#000;
135
  background-color:#000;
118
  box-shadow:2px 2px 2px gray;
136
  box-shadow:2px 2px 2px gray;
119
  white-space: nowrap;
137
  white-space: nowrap;
120
}
138
}
121
 
139
 
122
/* @wims_audio, default for audio */
140
/* @wims_audio, default for audio */
-
 
141
.wims_audio{
-
 
142
  min-width:87px;
-
 
143
  white-space: nowrap;
-
 
144
}
-
 
145
 
123
.wims_audio:not(.minimal_size) {
146
.wims_audio:not(.minimal_size) {
124
  /** each browser has its own audio player look.*/
147
  /** each browser has its own audio player look. */
-
 
148
 
125
  /* audio width can't be below 87px */
149
  /* audio width can't be below 87px */
126
  width:50%;
150
  width:50%;
127
  margin:10px 0;
151
  margin:10px 0;
128
  padding:0 5px;
152
  padding:0 5px;
129
}
153
}
130
.wims_audio{
-
 
131
  min-width:87px;
-
 
132
  white-space: nowrap;
-
 
133
}
154
 
134
audio.minimal_size{
155
audio.minimal_size{
135
  margin:2px;
156
  margin:2px;
-
 
157
 
136
  /* With Chrome, audio height is always 54px and can't be changed */
158
  /* With Chrome, audio height is always 54px and can't be changed */
-
 
159
 
137
  /*height:1.2em;*/
160
  /* height:1.2em; */
138
  vertical-align:middle;
161
  vertical-align:middle;
139
}
162
}
140
 
163
 
141
/* @feedback, style for feedback in oef exercise */
164
/* @feedback, style for feedback in oef exercise */
142
.feedback {
165
.feedback {
143
    background-color: #FFF;
166
    background-color: #FFF;
144
    border-color:#EEE;
167
    border-color:#EEE;
145
    border-color: rgba(0, 0, 0, .1);
168
    border-color: rgb(0 0 0 / 10%);
146
    border: 1px solid;
169
    border: 1px solid;
147
    border-radius: 5px;
170
    border-radius: 5px;
148
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset;
171
    box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset;
149
    margin-right: 15em;
172
    margin-right: 15em;
150
    padding: .5em;
173
    padding: .5em;
151
}
174
}
152
 
175
 
153
/* styles for emphasing results of the student */
176
/* styles for emphasing results of the student */
Line 162... Line 185...
162
  --oef_indpartial: *-*oef_indpartial;
185
  --oef_indpartial: *-*oef_indpartial;
163
  --oef_indprec: *-*oef_indprec;
186
  --oef_indprec: *-*oef_indprec;
164
}
187
}
165
 
188
 
166
/* @oef_indgood, emphasing results of the student: good answer */
189
/* @oef_indgood, emphasing results of the student: good answer */
-
 
190
.oef_indgood {
167
.oef_indgood { color: *-*oef_indgood; font-weight: bold;}
191
  color: var(--oef_indgood);
-
 
192
  font-weight: bold;
-
 
193
}
168
 
194
 
169
/* @oef_condgood, emphasing results of the student: good condition */
195
/* @oef_condgood, emphasing results of the student: good condition */
-
 
196
.oef_condgood {
170
.oef_condgood{ color: *-*oef_condgood; font-weight: bold;}
197
  color: var(--oef_condgood);
-
 
198
  font-weight: bold;
-
 
199
}
171
 
200
 
172
/* @oef_indbad, emphasing results of the student: bad answer */
201
/* @oef_indbad, emphasing results of the student: bad answer */
-
 
202
.oef_indbad {
173
.oef_indbad { color: *-*oef_indbad; font-weight: bold;}
203
  color: var(--oef_indbad);
-
 
204
  font-weight: bold;
-
 
205
}
174
 
206
 
175
/* @oef_condbad, emphasing results of the student: bad condition */
207
/* @oef_condbad, emphasing results of the student: bad condition */
-
 
208
.oef_condbad {
176
.oef_condbad { color: *-*oef_condbad; font-weight: bold;}
209
  color: var(--oef_condbad);
-
 
210
  font-weight: bold;
-
 
211
}
177
 
212
 
178
/* @oef_indforget, emphasing results of the student: forgotten item in the answer */
213
/* @oef_indforget, emphasing results of the student: forgotten item in the answer */
-
 
214
.oef_indforget {
179
.oef_indforget { color: *-*oef_indforget; font-weight: bold;}
215
  color: var(--oef_indforget);
-
 
216
  font-weight: bold;
-
 
217
}
180
 
218
 
181
/* @oef_indpartial, emphasing results of the student: partial answer */
219
/* @oef_indpartial, emphasing results of the student: partial answer */
-
 
220
.oef_indpartial {
182
.oef_indpartial{ color: *-*oef_indpartial; font-weight: bold;}
221
  color: var(--oef_indpartial);
-
 
222
  font-weight: bold;
-
 
223
}
183
 
224
 
184
/* @oef_indprec, emphasing results of the student: poor precision */
225
/* @oef_indprec, emphasing results of the student: poor precision */
-
 
226
.oef_indprec {
185
.oef_indprec   { color: *-*oef_indprec; font-weight: bold;}
227
  color: var(--oef_indprec);
-
 
228
  font-weight: bold;
-
 
229
}
186
 
230
 
187
/* @oef_indneutral, emphasing results of the student, with no tip of answer status */
231
/* @oef_indneutral, emphasing results of the student, with no tip of answer status */
-
 
232
.oef_indneutral {
-
 
233
  color: initial;
188
.oef_indneutral{ color: initial; font-weight: bold;}
234
  font-weight: bold;
-
 
235
}
189
 
236
 
190
/* @jxgbox, style for including a jsxgraph figure */
237
/* @jxgbox, style for including a jsxgraph figure */
191
.wims_form .jxgbox {margin: .5rem auto}
238
.wims_form .jxgbox {margin: .5rem auto}
-
 
239
 
-
 
240
div[class^="oef_ind"] .jxgbox {
-
 
241
  margin: 0 auto;
-
 
242
  float: none;
-
 
243
}
192
 
244
 
193
/* */
245
/* */
194
.jsxgraph_button {text-align: center;}
246
.jsxgraph_button {text-align: center;}
195
 
247
 
196
/* */
248
/* */
-
 
249
.jxgboxchild {
-
 
250
  margin-left: auto;
197
.jxgboxchild {margin-left: auto; margin-right: auto;}
251
  margin-right: auto;
-
 
252
}
198
 
253
 
199
/* @wims_contribute, contributor citation or credits */
254
/* @wims_contribute, contributor citation or credits */
200
 
255
 
201
/* @wims_credits, contributor citation or credits */
256
/* @wims_credits, contributor citation or credits */
202
.wims_contribute, .wims_credits  {
257
.wims_contribute, .wims_credits  {
Line 213... Line 268...
213
/* @wims_smallhelp, small help */
268
/* @wims_smallhelp, small help */
214
 
269
 
215
/* @wims_difficultylevel, Difficulty level of the exercise or any other hint on the level */
270
/* @wims_difficultylevel, Difficulty level of the exercise or any other hint on the level */
216
.wims_instruction, .wims_smallhelp, .wims_difficultylevel {
271
.wims_instruction, .wims_smallhelp, .wims_difficultylevel {
217
  font-style: italic;
272
  font-style: italic;
218
  color: rgb(100 100 100);
273
  color: rgb(100,100,100);
219
  background-color: rgba(230,230,230,.3);
274
  background-color: rgb(230 230 230 / 30%);
220
  border: 1px solid silver;
275
  border: 1px solid silver;
221
}
276
}
222
 
277
 
223
.wims_instruction {
278
.wims_instruction {
224
  padding: 1rem;
279
  padding: 1rem;
225
  margin: 0 auto 1rem auto;
280
  margin: 0 auto 1rem;
226
}
281
}
227
 
282
 
228
.wims_smallhelp {
283
.wims_smallhelp {
229
  font-size: small;
284
  font-size: small;
230
  padding: 0 5px 1em;
285
  padding: 0 5px 1em;
231
  margin: 1.5rem .5rem .2rem .5rem;
286
  margin: 1.5rem .5rem .2rem;
232
}
287
}
233
 
288
 
234
.wims_instruction>h2,.wims_smallhelp>h2 {
289
.wims_instruction>h2,.wims_smallhelp>h2 {
235
  display: inline-block;
290
  display: inline-block;
236
  font-size: .8em;
291
  font-size: .8em;
237
  padding: .4rem;
292
  padding: .4rem;
238
  margin : -.3rem .5em .3em 0;
293
  margin : -.3rem .5em .3em 0;
239
  color: rgb(80 80 80);
294
  color: rgb(80,80,80);
240
  background-color: silver;
295
  background-color: silver;
241
}
296
}
242
 
297
 
243
.wims_difficultylevel {
298
.wims_difficultylevel {
244
  font-size: small;
299
  font-size: small;
245
  padding: .1em 1px .1em;
300
  padding: .1em 1px;
246
}
301
}
247
 
302
 
248
/* @wims_smallremark, remark in small */
303
/* @wims_smallremark, remark in small */
249
.wims_smallremark {font-size: small;}
304
.wims_smallremark {font-size: small;}
250
 
305
 
Line 252... Line 307...
252
.tt {
307
.tt {
253
  font-family: monospace, "Courier New";
308
  font-family: monospace, "Courier New";
254
  border-left-width: 3px;
309
  border-left-width: 3px;
255
  margin: 0;
310
  margin: 0;
256
  padding: 0 3px;
311
  padding: 0 3px;
257
}
312
}
258
 
313
 
259
/* @unselectable, Prevent text selection */
314
/* @unselectable, Prevent text selection */
260
.unselectable{
315
.unselectable{
261
  user-select: none;
316
  user-select: none;
262
  -webkit-user-select: none;
317
  -webkit-user-select: none;
263
}
318
}
264
 
319
 
265
/* @wims_question, use wims_color1 */
320
/* @wims_question, use wims_color1 */
266
.wims_question {
321
.wims_question {
267
  border: 1px solid #CCC;
322
  border: 1px solid #CCC;
268
  border-left-color: var(--wims_ref_bgcolor);
323
  border-left-color: var(--wims_ref_bgcolor);
269
  border-left-width: .2em;
324
  border-left-width: .2em;
270
  margin: 2%;
325
  margin: 2%;
271
  padding: 1em;
326
  padding: 1em;
272
}
327
}
273
 
328
 
274
/* for print version, to replace input radio or checkbox, it is a try ...*/
329
/* for print version, to replace input radio or checkbox, it is a try... */
275
ul.wims_list {
330
ul.wims_list {
276
  border: 1px solid var(--wims_ref_bgcolor);
331
  border: 1px solid var(--wims_ref_bgcolor);
277
  padding-left:1em;
332
  padding-left:1em;
278
  padding-right:2em
333
  padding-right:2em
279
}
334
}
Line 281... Line 336...
281
ul.wims_list li {
336
ul.wims_list li {
282
  padding: 8px 16px;
337
  padding: 8px 16px;
283
  border-bottom: 1px solid var(--wims_ref_bgcolor);
338
  border-bottom: 1px solid var(--wims_ref_bgcolor);
284
  text-align:left;
339
  text-align:left;
285
}
340
}
286
 
-
 
287
.wims_checkbox li {list-style-type: square}
-
 
288
 
-
 
289
.wims_radio li, .wims_menu li, .wims_click li {list-style-type: circle}
-