« 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 78 : Ligne 78 :
color: #fff;
color: #fff;
border-radius:0.2em;
border-radius:0.2em;
border:1px solid;
cursor:pointer;
cursor:pointer;
display:inline-block;
display:inline-block;

Version du 6 mai 2021 à 15:21

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