User:Nelson6e65/common.css
From The Mana World
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/*From: http://meta.wikimedia.org/wiki/MediaWiki:Common.css*/
/* ALTERNANCE */
/** Classes allowing alternating line colors
* in tables according to the number of header lines:
*.alternance if odd number
*.alternance2 if even number.
*
*.odd is to be kind to IE<9 which does not implement
* the selector :nth-child, applied via Common.js (?)
*
*.sortable: sortable tables require reversing
* the 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;
}