MediaWiki:Gadget-StiliTabelle.css

Da Test Wiki 1.43.8.
Vai alla navigazione Vai alla ricerca

Nota: dopo aver pubblicato, potrebbe essere necessario pulire la cache del proprio browser per vedere i cambiamenti.

  • Firefox / Safari: tieni premuto il tasto delle maiuscole Shift e fai clic su Ricarica, oppure premi Ctrl-F5 o Ctrl-R (⌘-R su Mac)
  • Google Chrome: premi Ctrl-Shift-R (⌘-Shift-R su un Mac)
  • Edge: tieni premuto il tasto Ctrl e fai clic su Aggiorna, oppure premi Ctrl-F5.
/* Stile personalizzato delle tabelle */

/* Link banner */
.wikitable > * > tr > th:only-child a:not(.new),
.navtable > * > tr > th:only-child a:not(.new) {
	color: inherit !important;
}

/* Navtable solo */
.navtable > * > tr > th,
.navtable > * > tr > td {
	border-radius: 6px;
}

.navtable > tr > th, 
.navtable > tr > td, 
.navtable > * > tr > th, 
.navtable > * > tr > td {
    padding: 0.2em 0.4em;
}

.navtable {
	border: 2px solid var(--bordercolor); 
	border-radius:10px;
}

.navtable tfoot:empty {
    display: none;
}

/* Colorazione  */
.wikitable, .navtable {
	color: var(--color);
}
.wikitable,
.wikitable > * > tr,
.wikitable > * > tr > :is(td, th) {
	border-color: var(--border);
}

.wikitable > * > tr > th:only-child,
.navtable > * > tr > th:only-child {
	color: var(--bannercolor);
	background-color: var(--bannerbg);
}

.wikitable > * > tr.banner > th, .wikitable > * > tr > th.banner,
.wikitable > * > :is(tr:first-child, tr:not(:has(> [rowspan])) + tr):not(.subbanner, .header, .subheader) > th[colspan]:only-child:not(.subbanner, .header, .subheader),
.navtable > * > tr.banner > th, .navtable > * > tr > th.banner,
.navtable > * > :is(tr:first-child, tr:not(:has(> [rowspan])) + tr):not(.subbanner, .header, .subheader) > th[colspan]:only-child:not(.subbanner, .header, .subheader) {
	color: var(--bannercolor);
	background-color: var(--bannerbg);
}
.wikitable > * > tr.subbanner > th, .wikitable > * > tr > th.subbanner {
	color: var(--subbannercolor);
	background-color: var(--subbannerbg);
}

.wikitable > * > tr > th,
.navtable > * > tr > th {
	color: var(--headercolor);
	background-color: var(--headerbg);
}
.wikitable > * > tr.subheader > th, .wikitable > * > tr > th.subheader {
	color: var(--subheadercolor);
	background-color: var(--subheaderbg);
}

.wikitable > * > tr:not([bgcolor]):nth-child(2n),
.wikitable > * > tr:not([bgcolor]):nth-child(2n+1).swap,
.navtable > * > tr:not([bgcolor]):nth-child(2n) > td,
.navtable > * > tr:not([bgcolor]):nth-child(2n+1).swap > td {
	background: var(--bg);
}

.wikitable > * > tr:not([bgcolor]):nth-child(2n+1),
.wikitable > * > tr:not([bgcolor]):nth-child(2n).swap,
.navtable > * > tr:not([bgcolor]):nth-child(2n+1) > td,
.navtable > * > tr:not([bgcolor]):nth-child(2n).swap > td {
	background: var(--altbg);
}

/* Lista giochi */
.navtable.ligiochi > tbody > tr:nth-child(2n) > th {
	background: var(--evenbannerbg);
}
.navtable.ligiochi > tbody > tr:nth-child(2n+1) > th {
	background: var(--oddbannerbg); 
}

.ligiochi {
	line-height: 20px !important;
}

/* Predefinito */
.wikitable, .navtable {
	--color: #000;
	--border: #A2A9B1;
	--bordercolor: #222;
	--bannercolor: #FFF;
	--bannerbg: #999;
	--subbannercolor: var(--bannercolor);
	--subbannerbg: #9F9F9F;
	--headercolor: inherit;
	--headerbg: #EAECF0;
	--subheadercolor: #000;
	--subheaderbg: #DDD;
	--evenbg: var(--bg);
	--oddbg: var(--bg);
	--bg: #F8F9FA;
	--altbg: #F1F2F3;
}