« MediaWiki:Common.css » : différence entre les versions

De EduTech Wiki
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 90 : Ligne 90 :
vertical-align: middle;
vertical-align: middle;
border-radius:0.2em;
border-radius:0.2em;
box-shadow: 0px 0px 0.2em rgba(0, 0, 0, 0.25);
}
}



Version du 6 mai 2021 à 20:31

  1 /** Le CSS placé ici sera appliqué à toutes les apparences. */
  2 
  3 /*
  4 <pre>
  5 */
  6 
  7 /* Mediawiki generic color https://www.mediawiki.org/wiki/Design/Archive/Wikimedia_Foundation_Design/Color_usage*/
  8 
  9 .background-blue{background:#3366BB}
 10 .text-blue{color:#3366BB}
 11 
 12 
 13 .background-green{background:#008640}
 14 .text-green{color:#008640}
 15 
 16 
 17 .background-red{background:#CB0000}
 18 .text-red{color:#CB0000}
 19 
 20 
 21 .background-yellow{background:#ffa700}
 22 .text-yellow{color:#ffa700}
 23 
 24 
 25 .background-grey{background:#808083}
 26 .text-grey{color:#808083}
 27 
 28 /* Simple tableform style */
 29 
 30 table.formtable th {background:rgba(0,0,0,0.1);padding:0.5em;}
 31 table.formtable td {padding:0.5em;}
 32 
 33 
 34 /*Fix a bug with leaflet map... (otherwise map appears over every elements even info windows, popups, input dropdowns etc.) */
 35 
 36 .pfLeafletInput{
 37 position:relative;
 38 z-index: 0;
 39 }
 40 
 41 /*css for template {{toggle}}*/
 42 
 43 .toggle-template .mw-collapsible::before, .toggle-template .mw-collapsed::before{
 44 content:"▲";
 45 text-align: right;
 46 margin-top: -2em;
 47 display: block;
 48 width: auto;
 49 padding: 0 1em;
 50 white-space: pre;
 51 line-height: 2em;
 52 border-radius: 0em 0.2em 0 0;
 53 z-index: 2;
 54 position: relative;
 55 float:right;
 56 color:#fff;
 57 background:#808083;
 58 pointer-events:none;
 59 }
 60 
 61 /*css for template {{felxGrid}}*/
 62 
 63 .flexGrid p{margin:0;}
 64 .flexGrid img{
 65 width: 100%;
 66 height: auto;
 67 max-width: 500px;
 68 }
 69 
 70 
 71 /*css for template {{printonly}}*/
 72 
 73 .hidden{
 74 display:none;
 75 }
 76 
 77 
 78 
 79 /*css for template {{button}}*/
 80 
 81 .modele-button{
 82 color: #fff;
 83 cursor:pointer;
 84 display:inline-block;
 85 font-weight:600;
 86 margin:2px auto;
 87 padding:0 0.5em;
 88 box-sizing:border-box;
 89 white-space: nowrap;
 90 vertical-align: middle;
 91 border-radius:0.2em;
 92 box-shadow: 0px 0px 0.2em rgba(0, 0, 0, 0.25);
 93 }
 94 
 95 .modele-button:hover{
 96 box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.2);
 97 }
 98 
 99 .modele-button:active{
100 border:1px solid rgba(0,0,0,0.4);
101 }
102 
103 
104 .modele-button a{
105 text-decoration:none !important;
106 display:inline-block;
107 color:inherit !important;
108 }
109 
110 
111 .modele-button.small a{
112 font-size:0.85em;
113 }
114 .modele-button.medium a{
115 font-size:0.92em;
116 padding-top:0.15em;
117 padding-bottom:0.15em;
118 }
119 .modele-button.large a,.modele-button.full a{
120 font-size:1em;
121 padding-top:0.45em;
122 padding-bottom:0.45em;
123 }
124 .modele-button.full a{
125 width: calc(100% + 1em);
126 }
127 
128 
129 /* Badges */
130 
131 div.appear {
132     width: 184px; 
133     border: red 2px solid;
134     background:#F8F8F8;
135     position: absolute;
136     top: 10px;
137     left:-6px;
138     display:none;go
139     padding: 0 3px 3px 3px;
140     z-index: 1000000;
141 }
142 
143 div.appear_left {
144     width: 184px; 
145     border: red 2px solid;
146     background:#F8F8F8;
147     position: absolute;
148     top: 10px;
149     left:-50%;
150     display:none;
151     padding: 0 3px 3px 3px;
152     z-index: 1000000;
153 }
154 
155 div.badge {
156     cursor:pointer;
157     position: relative;
158     display: inline-block;
159     border: green 1px solid;
160     width: 130px;
161     margin-bottom: 3px;
162     text-align: center;
163 }
164 
165 div.badge:hover div.appear, div.badge:hover div.appear_left{
166     display:block;
167 }
168 
169 /*front page */
170 
171 [class*="front-"] {width: 100%}
172 
173 @media only screen and (min-width: 768px){
174 #front_left {padding:3px; float:left; width:57%; border:1px solid #006699; background: #EAF5FB;}
175 #front_right {float:left; width:40%; background: #FAF9EC; border:1px solid #996600; margin-left: 4px; padding: 3px;}
176 div.front_title {background:#E2C4E8; font-size:large; border-bottom:1px solid #996600;border-top:1px solid #996600;}
177 }
178  
179 @media print{
180 #front_left {}
181 #front_right {}
182 }
183 
184 /* Cours bases */
185 .PageFormsRadioButton {display:block;}
186 
187 /* collection extension */
188 
189 .onlyinprint {display: none}
190 
191 /* Space out main section titles */
192 h1 {font-weight:bold;}
193 h2 {margin-top:3ex;font-weight:bold;}
194 h3 {margin-top:1ex;}
195 
196 table.wikitable,
197 table.prettytable,
198 table.datatable {
199   margin: 1em 1em 1em 0;
200   background: #f9f9f9;
201   border: 1px #aaaaaa solid;
202   border-collapse: collapse;
203 }
204  
205 table.datatable {
206 		font-size:70%
207 		}
208 
209 table.wikitable th, table.wikitable td,
210 table.prettytable th, table.prettytable td {
211   border: 1px #aaaaaa solid;
212   padding: 0.2em;
213 }
214 
215 table.datatable th, table.datatable td {
216   border: 1px #aaaaaa solid;
217   font-size:70%	
218   padding: 0em;
219 }
220  
221 table.wikitable th,
222 table.datatable th,
223 table.prettytable th {
224   background: #f2f2f2;
225   text-align: center;
226 }
227  
228 table.wikitable caption,
229 table.datatable caption,
230 table.prettytable caption {
231   margin-left: inherit;
232   margin-right: inherit;
233 }
234 
235 /* Removes useless links from printout */
236 @media print {
237     .portlet, #privacy, #about, #disclaimer {display:none;}
238 }
239 
240 
241 /* Banner Styles used in EduTech wiki 
242  - use class names like Banner_xxxx
243  */
244 
245 .Banner_incomplete {
246   float:right;
247   clear:right;
248   width:200px;
249   border:1px solid orange;
250   background-color:#FFFACD;
251   padding:7px; 
252   margin-bottom: 10px;
253   margin-left: 1em;
254 }
255 
256 /* See http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/PageBy/README */
257 ul.pageby {
258     border:1px solid #60606F;
259     background-color:#E0E0EF;
260     font-size: 80%;
261     margin:1ex;
262     padding:1ex;
263     list-style-type:none;
264   }
265 
266 .Banner_tutorial {
267   float:right;
268   clear:right;
269   width:200px;
270   border:1px solid blue;
271   background-color:#F8C9E4;
272   padding:7px; 
273   margin-bottom: 10px;
274   margin-left: 1em;
275 }
276 
277 .tut_goals{
278   background-color:#F8C9E4;
279   padding:7px; 
280   margin-bottom: 10px;
281   border:1px solid #AAAAAA;
282 }
283 
284 .Banner_copyright{
285   background-color:#d0f0c0;
286   padding:7px; 
287   margin-bottom: 10px;
288   border:1px solid #AAAAAA;
289 }
290 
291 .tagcloud {
292 	width: 95%;
293 	text-align: center;
294 	background-color: #FDFDFD;
295 	border: 1px solid #EEEEEE;
296 	padding: 15px 10px 15px 10px;
297  }
298 .tagcloud a {
299 	color: #0052CB;
300 	margin-left: 10px;
301 	margin-right: 10px;
302 	font-weight: bold;
303  }
304 
305 code {
306   border: 1px solid #ddd;
307   padding: 1px 4px;
308   border-radius: 2px;
309 }
310 
311 /* category tree - first is just for portlet - second for all trees */
312 /* 
313 #p-categorytree-portlet {font-size: 80% } 
314 */
315 .CategoryTreeTag {font-size: 90%; }
316 
317 
318 /* Syntaxhighlight geshi */
319 div.mw-geshi {
320   border: 1px dotted grey;
321   padding: 2px; 
322   margin-left:1em;
323   font-size: 120%;
324   margin-top:2px;
325   margin-right:2px;
326   margin-bottom:2px
327  }
328 
329 
330 .sidebar_banner {
331  margin-top: 5px;
332  margin-bottom: 5px;
333 }
334 
335 h3 .editsection { font-size: 76%; font-weight: normal; }
336 h4 .editsection { font-size: 86%; font-weight: normal; }
337 h5 .editsection { font-weight: normal; }
338 h6 .editsection { font-size: 125%; font-weight: normal; }
339 
340 /* Contribution Scores */
341 .contributionscores-wrapper {  font-size: 80%; }
342 .contributionscores-title   { margin-left: 0; padding-left: 0em; margin-bottom: 0;}
343 .contributionscores .header { border-bottom: 1px solid #999999; font-weight: bold; }
344 .contributionscores .odd     { background-color: #eeeeee; }
345 .contributionscores .header td   { padding-left: .2em; padding-right: .2em; }
346 .contributionscores .content   { padding-left: .2em; padding-right: .2em; }
347 
348 .GoBlock{
349 background: rgb(207,234,153);
350 border-radius: 3px;
351 display:inline-block;
352 color:#333333;
353 font-family:arial;
354 font-size:0.9em;
355 box-sizing: border-box;
356 padding:0 13px;
357 text-align:center;
358 border: 1px solid rgba(0,0,0,0.05);
359 line-height:1.5em;
360 }
361 
362 .StopBlock{
363 -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
364 -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
365 box-shadow:inset 0px 1px 0px 0px #ffffff;
366 background:rgb(200, 230, 140);
367 background-image: linear-gradient(rgb(248, 228, 158), rgb(220, 200, 130));
368 background-image: -webkit-linear-gradient(rgb(248, 228, 158), rgb(220, 200, 130));
369 -webkit-border-radius: 6px;
370 -moz-border-radius: 6px;
371 border-radius: 6px;
372 text-indent:0;
373 border:1px solid rgb(155,185,95);
374 display:inline-block;
375 color:#333333;
376 font-family:arial;
377 font-size:13px;
378 font-style:normal;
379 text-decoration:none;
380 -webkit-box-sizing: border-box;
381 -moz-box-sizing: border-box;
382 box-sizing: border-box;
383 padding:0px 8px;
384 text-align:center;
385 line-height:2.5em;
386 }
387 
388 .tableBlue{
389 margin:auto;
390 background: #f9f9f9;
391 border-collapse: collapse;
392 width:98%;
393 text-align:center;
394 }
395 
396 .tableBlue td{
397 border: 1px #aaaaaa solid;
398 padding:8px !important;
399 }
400 
401 .tableBlue th{
402 background: rgb(200,220,240);
403 text-align: center;
404 font-weight:bold;
405 color:rgb(120,140,180);
406 padding: 8px 15px 8px 15px;
407 border: 1px #aaaaaa solid;
408 }
409 
410 .tableBlue tr.row-odd{background:white;}
411 .tableBlue tr.row-even{background:rgb(235,245,255);}
412 
413 /* Leyla formulaires STIC III/IV */
414 
415 .annee.radioButtonItem {
416   width: 10%;
417   display: block;
418   float:left;
419 }
420 
421 .technologie.checkboxLabel {
422   width: 25%;
423   display: block;
424   float:left;
425 }
426 
427 .type.checkboxLabel {
428   width: 25%;
429   display: block;
430   float:left;
431 }
432 
433 .domaine_enseignement.checkboxLabel {
434   width: 25%;
435   display: block;
436   float:left;
437 }
438 
439 .niveau_enseignement.checkboxLabel {
440   width: 33.3%;
441   display: block;
442   float:left;
443 }
444 
445 .public_cible.checkboxLabel {
446   width: 20%;
447   display: block;
448   float:left;
449 }
450 .public_age.checkboxLabel {
451   width: 20%;
452   display: block;
453   float:left;
454 }
455 
456 /* for smartphone display*/
457 pre{
458 word-break: break-word;
459 }
460 
461 /*
462 </pre>
463 */