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

De Baripedia
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 18 : Ligne 18 :
width: 6em;
width: 6em;
marginLeft: -100%;
marginLeft: -100%;
}
/* Classes permettant d'alterner les couleurs de ligne dans les
  tableaux selon le nombre de lignes d'en-tête :
  * .alternance si nombre impair ou .alternance2 si nombre pair.
  * .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: #eee;
}
.alternance2 tr,
.alternance2 th[scope="row"] {
background: #eee;
}
.alternance2 tr:nth-child(odd),
.alternance2 tr:nth-child(odd) th[scope="row"] {
background: #fcfcfc;
}
}

Version du 12 septembre 2015 à 20:22

/* Boîtes déroulantes */
.NavFrame {
	background: #F9F9F9;
	border: 1px #AAA solid;
	padding: 5px;
}
.NavFrame .NavHead {
	background: #EFEFEF;
	border: 1px #AAA solid;
	text-align: center;
	font-weight: bold;
}
.NavFrame .NavContent { padding: 5px 0 }
.collapseButton {
        font-weight: normal;
        float: right;
        textAlign: right;
	width: 6em;
	marginLeft: -100%;
}

/* Classes permettant d'alterner les couleurs de ligne dans les
   tableaux selon le nombre de lignes d'en-tête :
   * .alternance si nombre impair ou .alternance2 si nombre pair.
   * .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: #eee;
}
.alternance2 tr,
.alternance2 th[scope="row"] {
	background: #eee;
}
.alternance2 tr:nth-child(odd),
.alternance2 tr:nth-child(odd) th[scope="row"] {
	background: #fcfcfc;
}