MediaWiki:Common.css

De EduTech Wiki
Aller à la navigation Aller à la recherche

Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

  • Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
  • Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
  • Internet Explorer / Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
  • Opera : appuyez sur Ctrl + F5.
  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 }
 92 
 93 .modele-button:hover{
 94 box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.2);
 95 }
 96 
 97 .modele-button:active{
 98 border:1px solid rgba(0,0,0,0.4);
 99 }
100 
101 
102 .modele-button a{
103 text-decoration:none !important;
104 display:inline-block;
105 color:inherit !important;
106 }
107 
108 
109 .modele-button.small a{
110 font-size:0.85em;
111 }
112 .modele-button.medium a{
113 font-size:0.92em;
114 padding-top:0.15em;
115 padding-bottom:0.15em;
116 }
117 .modele-button.large a,.modele-button.full a{
118 font-size:1em;
119 padding-top:0.45em;
120 padding-bottom:0.45em;
121 }
122 .modele-button.full a{
123 width: calc(100% + 1em);
124 }
125 
126 
127 /* Badges */
128 
129 div.appear {
130     width: 184px; 
131     border: red 2px solid;
132     background:#F8F8F8;
133     position: absolute;
134     top: 10px;
135     left:-6px;
136     display:none;go
137     padding: 0 3px 3px 3px;
138     z-index: 1000000;
139 }
140 
141 div.appear_left {
142     width: 184px; 
143     border: red 2px solid;
144     background:#F8F8F8;
145     position: absolute;
146     top: 10px;
147     left:-50%;
148     display:none;
149     padding: 0 3px 3px 3px;
150     z-index: 1000000;
151 }
152 
153 div.badge {
154     cursor:pointer;
155     position: relative;
156     display: inline-block;
157     border: green 1px solid;
158     width: 130px;
159     margin-bottom: 3px;
160     text-align: center;
161 }
162 
163 div.badge:hover div.appear, div.badge:hover div.appear_left{
164     display:block;
165 }
166 
167 /*front page */
168 
169 [class*="front-"] {width: 100%}
170 
171 @media only screen and (min-width: 768px){
172 #front_left {padding:3px; float:left; width:57%; border:1px solid #006699; background: #EAF5FB;}
173 #front_right {float:left; width:40%; background: #FAF9EC; border:1px solid #996600; margin-left: 4px; padding: 3px;}
174 div.front_title {background:#E2C4E8; font-size:large; border-bottom:1px solid #996600;border-top:1px solid #996600;}
175 }
176  
177 @media print{
178 #front_left {}
179 #front_right {}
180 }
181 
182 /* Cours bases */
183 .PageFormsRadioButton {display:block;}
184 
185 /* collection extension */
186 
187 .onlyinprint {display: none}
188 
189 /* Space out main section titles */
190 h1 {font-weight:bold;}
191 h2 {margin-top:3ex;font-weight:bold;}
192 h3 {margin-top:1ex;}
193 
194 table.wikitable,
195 table.prettytable,
196 table.datatable {
197   margin: 1em 1em 1em 0;
198   background: #f9f9f9;
199   border: 1px #aaaaaa solid;
200   border-collapse: collapse;
201 }
202  
203 table.datatable {
204 		font-size:70%
205 		}
206 
207 table.wikitable th, table.wikitable td,
208 table.prettytable th, table.prettytable td {
209   border: 1px #aaaaaa solid;
210   padding: 0.2em;
211 }
212 
213 table.datatable th, table.datatable td {
214   border: 1px #aaaaaa solid;
215   font-size:70%	
216   padding: 0em;
217 }
218  
219 table.wikitable th,
220 table.datatable th,
221 table.prettytable th {
222   background: #f2f2f2;
223   text-align: center;
224 }
225  
226 table.wikitable caption,
227 table.datatable caption,
228 table.prettytable caption {
229   margin-left: inherit;
230   margin-right: inherit;
231 }
232 
233 /* Removes useless links from printout */
234 @media print {
235     .portlet, #privacy, #about, #disclaimer {display:none;}
236 }
237 
238 
239 /* Banner Styles used in EduTech wiki 
240  - use class names like Banner_xxxx
241  */
242 
243 .Banner_incomplete {
244   float:right;
245   clear:right;
246   width:200px;
247   border:1px solid orange;
248   background-color:#FFFACD;
249   padding:7px; 
250   margin-bottom: 10px;
251   margin-left: 1em;
252 }
253 
254 /* See http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/PageBy/README */
255 ul.pageby {
256     border:1px solid #60606F;
257     background-color:#E0E0EF;
258     font-size: 80%;
259     margin:1ex;
260     padding:1ex;
261     list-style-type:none;
262   }
263 
264 .Banner_tutorial {
265   float:right;
266   clear:right;
267   width:200px;
268   border:1px solid blue;
269   background-color:#F8C9E4;
270   padding:7px; 
271   margin-bottom: 10px;
272   margin-left: 1em;
273 }
274 
275 .tut_goals{
276   background-color:#F8C9E4;
277   padding:7px; 
278   margin-bottom: 10px;
279   border:1px solid #AAAAAA;
280 }
281 
282 .Banner_copyright{
283   background-color:#d0f0c0;
284   padding:7px; 
285   margin-bottom: 10px;
286   border:1px solid #AAAAAA;
287 }
288 
289 .tagcloud {
290 	width: 95%;
291 	text-align: center;
292 	background-color: #FDFDFD;
293 	border: 1px solid #EEEEEE;
294 	padding: 15px 10px 15px 10px;
295  }
296 .tagcloud a {
297 	color: #0052CB;
298 	margin-left: 10px;
299 	margin-right: 10px;
300 	font-weight: bold;
301  }
302 
303 code {
304   border: 1px solid #ddd;
305   padding: 1px 4px;
306   border-radius: 2px;
307 }
308 
309 /* category tree - first is just for portlet - second for all trees */
310 /* 
311 #p-categorytree-portlet {font-size: 80% } 
312 */
313 .CategoryTreeTag {font-size: 90%; }
314 
315 
316 /* Syntaxhighlight geshi */
317 div.mw-geshi {
318   border: 1px dotted grey;
319   padding: 2px; 
320   margin-left:1em;
321   font-size: 120%;
322   margin-top:2px;
323   margin-right:2px;
324   margin-bottom:2px
325  }
326 
327 
328 .sidebar_banner {
329  margin-top: 5px;
330  margin-bottom: 5px;
331 }
332 
333 h3 .editsection { font-size: 76%; font-weight: normal; }
334 h4 .editsection { font-size: 86%; font-weight: normal; }
335 h5 .editsection { font-weight: normal; }
336 h6 .editsection { font-size: 125%; font-weight: normal; }
337 
338 /* Contribution Scores */
339 .contributionscores-wrapper {  font-size: 80%; }
340 .contributionscores-title   { margin-left: 0; padding-left: 0em; margin-bottom: 0;}
341 .contributionscores .header { border-bottom: 1px solid #999999; font-weight: bold; }
342 .contributionscores .odd     { background-color: #eeeeee; }
343 .contributionscores .header td   { padding-left: .2em; padding-right: .2em; }
344 .contributionscores .content   { padding-left: .2em; padding-right: .2em; }
345 
346 .GoBlock{
347 background: rgb(207,234,153);
348 border-radius: 3px;
349 display:inline-block;
350 color:#333333;
351 font-family:arial;
352 font-size:0.9em;
353 box-sizing: border-box;
354 padding:0 13px;
355 text-align:center;
356 border: 1px solid rgba(0,0,0,0.05);
357 line-height:1.5em;
358 }
359 
360 .StopBlock{
361 -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
362 -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
363 box-shadow:inset 0px 1px 0px 0px #ffffff;
364 background:rgb(200, 230, 140);
365 background-image: linear-gradient(rgb(248, 228, 158), rgb(220, 200, 130));
366 background-image: -webkit-linear-gradient(rgb(248, 228, 158), rgb(220, 200, 130));
367 -webkit-border-radius: 6px;
368 -moz-border-radius: 6px;
369 border-radius: 6px;
370 text-indent:0;
371 border:1px solid rgb(155,185,95);
372 display:inline-block;
373 color:#333333;
374 font-family:arial;
375 font-size:13px;
376 font-style:normal;
377 text-decoration:none;
378 -webkit-box-sizing: border-box;
379 -moz-box-sizing: border-box;
380 box-sizing: border-box;
381 padding:0px 8px;
382 text-align:center;
383 line-height:2.5em;
384 }
385 
386 .tableBlue{
387 margin:auto;
388 background: #f9f9f9;
389 border-collapse: collapse;
390 width:98%;
391 text-align:center;
392 }
393 
394 .tableBlue td{
395 border: 1px #aaaaaa solid;
396 padding:8px !important;
397 }
398 
399 .tableBlue th{
400 background: rgb(200,220,240);
401 text-align: center;
402 font-weight:bold;
403 color:rgb(120,140,180);
404 padding: 8px 15px 8px 15px;
405 border: 1px #aaaaaa solid;
406 }
407 
408 .tableBlue tr.row-odd{background:white;}
409 .tableBlue tr.row-even{background:rgb(235,245,255);}
410 
411 /* Leyla formulaires STIC III/IV */
412 
413 .annee.radioButtonItem {
414   width: 10%;
415   display: block;
416   float:left;
417 }
418 
419 .technologie.checkboxLabel {
420   width: 25%;
421   display: block;
422   float:left;
423 }
424 
425 .type.checkboxLabel {
426   width: 25%;
427   display: block;
428   float:left;
429 }
430 
431 .domaine_enseignement.checkboxLabel {
432   width: 25%;
433   display: block;
434   float:left;
435 }
436 
437 .niveau_enseignement.checkboxLabel {
438   width: 33.3%;
439   display: block;
440   float:left;
441 }
442 
443 .public_cible.checkboxLabel {
444   width: 20%;
445   display: block;
446   float:left;
447 }
448 .public_age.checkboxLabel {
449   width: 20%;
450   display: block;
451   float:left;
452 }
453 
454 /* for smartphone display*/
455 pre{
456 word-break: break-word;
457 }
458 
459 /*
460 </pre>
461 */