MediaWiki talk:Common.css/Archives/2014
Please do not post any new comments on this page. This is a discussion archive first created in 2014, although the comments contained were likely posted before and after this date. See current discussion or the archives index. |
Pie chart
{{edit protected}}
Please add
/* Pie chart test: Transparent borders */ .transborder { border: solid transparent; } * html .transborder { /* IE6 */ border: solid #000001; filter: chroma(color=#000001); }
(taken from en:MediaWiki:Common.css) and necessary to make {{Pie chart}} and Module:Chart work.
Thanks!
Jean-Fred (talk) 16:26, 26 March 2014 (UTC)
- Done, diff. PiRSquared17 (talk) 20:03, 26 March 2014 (UTC)
- Thanks! Jean-Fred (talk) 09:37, 27 March 2014 (UTC)
TOClimit
{{editprotected}} TOC limitation seems a bit flaky here. I noticed a different between the CSS classes used here and the ones on en.wp. Please update the code here to match the one from en.wp in the hope it performs better:
/* Allow limiting of which header levels are shown in a TOC; <div class="toclimit-3">, for instance, will limit to showing ==headings== and ===headings=== but no further (as long as there are no =headings= on the page, which there shouldn't be according to the MoS). */ .toclimit-2 .toclevel-1 ul, .toclimit-3 .toclevel-2 ul, .toclimit-4 .toclevel-3 ul, .toclimit-5 .toclevel-4 ul, .toclimit-6 .toclevel-5 ul, .toclimit-7 .toclevel-6 ul { display: none; }
in replacement of line 345.
Thanks! Jean-Fred (talk) 13:48, 31 March 2014 (UTC)
- Done diff PiRSquared17 (talk) 15:20, 1 April 2014 (UTC)
- Thanks! Jean-Fred (talk) 15:42, 1 April 2014 (UTC)
- (Well it did not solve the problem we had with TOC limitation here but at least we tried ;) Jean-Fred (talk) 10:02, 2 April 2014 (UTC)
Wikitable alternance
{{editprotected}}
Please add the following code to Common.css. It enables a wikitable style where every other row has a different gray color, improving readability. Code was taken from fr.wp Common.css
Extended content |
---|
/* ALTERNANCE */ /** Classes permettant d'alterner les couleurs de ligne * dans les tableaux selon le nombre de lignes d'en-tête : *.alternance si nombre impair *.alternance2 si nombre pair. * *.odd est un be kind to IE<9 qui n'implémente pas * le sélecteur :nth-child, appliquée via Common.js * *.sortable : les tableaux triables nécessitent d'inverser * l'alternance. */ .alternance, .alternance2 { border-collapse: collapse; } table.alternance > * > tr > th, table.alternance2 > * > tr > th { background: #e6e6e6; } .alternance tr, .alternance th[scope="row"] { background: #fcfcfc; } .alternance:not(.sortable) tr:nth-child(odd), .alternance.sortable tr:nth-child(even), .alternance:not(.sortable) tr:nth-child(odd) th[scope="row"], .alternance.sortable tr:nth-child(even) th[scope="row"] { background: #eeeeee; } .alternance .odd, .alternance .odd th[scope="row"] { /* be kind to IE<9 */ background: #eeeeee; } .alternance2 tr, .alternance2 th[scope="row"] { background: #eeeeee; } .alternance2 tr:nth-child(odd), .alternance2 tr:nth-child(odd) th[scope="row"] { background: #fcfcfc; } .alternance2 .odd, .alternance2 .odd th[scope="row"] { /* be kind to IE<9 */ background: #fcfcfc; } |
Thanks! Jean-Fred (talk) 15:42, 1 April 2014 (UTC)
- @Jean-Frédéric: Done. Please check. PiRSquared17 (talk) 15:57, 1 April 2014 (UTC)
- @PiRSquared17: Yes, it works like a charm. Thanks! Jean-Fred (talk) 16:11, 1 April 2014 (UTC)
- (What did not work was the {{ping}} though, for some reason…)