MediaWiki:Gadget-autonumber.css

Uwaga: aby zobaczyć zmiany po opublikowaniu, może zajść potrzeba wyczyszczenia pamięci podręcznej przeglądarki.

  • Firefox / Safari: Przytrzymaj Shift podczas klikania Odśwież bieżącą stronę, lub naciśnij klawisze Ctrl+F5, lub Ctrl+R (⌘-R na komputerze Mac)
  • Google Chrome: Naciśnij Ctrl-Shift-R (⌘-Shift-R na komputerze Mac)
  • Internet Explorer / Edge: Przytrzymaj Ctrl, jednocześnie klikając Odśwież, lub naciśnij klawisze Ctrl+F5
  • Opera: Naciśnij klawisze Ctrl+F5.
/*
	Automatyczna numeracja wierszy tabelek .wikitable. Zaczerpnięto z:
	
		https://phabricator.wikimedia.org/T42618#434018
	
	Zastępuje kod z Common.js obsługujący nagłówki th.unsortable.ordinal:
	
		„Kod pozwalający na skonstruowanie niesortującej się kolumny z liczbą
		porządkową w sortowalnych tabelkach.”
		([[Specjalna:Niezmienny link/4459511#L-1159]])
*/

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

table.autonumber.sortable > thead > tr::before,
table.autonumber > tbody > tr:first-child::before {
	content: "lp.";
	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-monobook table.autonumber > tbody > tr + tr::before,
.skin-monobook table.autonumber.sortable > thead + tbody > tr::before {
	background-color: inherit;
}

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

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 #c8ccd1;
}

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

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