MediaWiki:Gadget-AutonumberTable.css

Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.

  • Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
  • Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
  • Internet Explorer/Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
  • Opera: Presiona Ctrl+F5.
/*
	Genera la primera columna de una tabla con la numeración de las filas,
	rellenándola automáticamente. Soporta tablas con la clase "sortable".
	Importado de [[wikt:pl:MediaWiki:Gadget-autonumbers.css]].
*/

table.autonumber > tbody {
	counter-reset: autonumbering;
}

table.autonumber.sortable > thead > tr::before,
table.autonumber > tbody > tr:first-child::before {
	content: "Pos.";
	font-weight: bold;
	background-color: #eaecf0;
}

table.autonumber > tbody > tr + tr::before,
table.autonumber.sortable > thead + tbody > tr::before {
	counter-increment: autonumbering;
	content: counter(autonumbering);
	font-weight: normal;
	background-color: #f8f9fa;
}

.skin-timeless table.autonumber > tbody > tr + tr::before,
.skin-timeless table.autonumber.sortable > thead + tbody > tr::before {
	background-color: #fcfcfc;
}

table.autonumber.sortable > thead > tr::before,
table.autonumber > tbody > tr::before,
table.autonumber.sortable > tfoot > tr::before {
	display: table-cell;
	padding: 0.2em 0.4em;
	border: 1px solid #a2a9b1;
	vertical-align: middle;
	text-align: center;
}

.skin-timeless table.autonumber.sortable > thead > tr::before,
.skin-timeless table.autonumber > tbody > tr::before,
.skin-timeless table.autonumber.sortable > tfoot > tr::before {
	border: 1px solid #eee;
}

table.autonumber.sortable > tbody > tr.sortbottom::before,
table.autonumber.sortable > tfoot > tr.sortbottom::before {
	content: "";
}