MediaWiki:Common.css

Da WikiAppunti.
Jump to navigation Jump to search

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

  • Firefox / Safari: tenere premuto il tasto delle maiuscole Shift e fare clic su Ricarica, oppure premere Ctrl-F5 o Ctrl-R (⌘-R su Mac)
  • Google Chrome: premere Ctrl-Shift-R (⌘-Shift-R su un Mac)
  • Internet Explorer: tenere premuto il tasto Ctrl e fare clic su Aggiorna, oppure premere Ctrl-F5
  • Opera: Vai nel Menu → Impostazioni (Opera → Preferenze su un Mac) e poi in Privacy & sicurezza → Pulisci dati del browser → Immagini e file nella cache.
/************************
 * DA WIKIPEDIA IN ITALIANO *
 ************************/

/***** Sezione immagini thumbnail */

/* Larghezza minima thumb [[Special:diff/44094478]] */
figure[typeof~='mw:File/Thumb'],
figure[typeof~='mw:File/Frame'],
.thumbinner {
    min-width: 100px;
}

/***** Classi per template sinottici */

.sinottico {
	background-color: #f8f9fa;
	border: 1px solid #c8ccd1;
	border-spacing: 0;
	clear: right;
	float: right;
	font-size: 95%;
	line-height: 1.4em;
	margin: 0 0 1em 1.5em;
	width: 280px;
}

.sinottico caption {
	font-weight: bold;
}

.sinottico > tbody > tr > th:not(:only-child),
.sinottico_annidata > tbody > tr > th:not(:only-child) {
	background-color: #f3f3f3;
	border-right: 1px solid #e5e5e8;
	text-align: left;
	vertical-align: top;
}

.sinottico > tbody > tr:not(:last-child) > td,
.sinottico > tbody > tr:not(:last-child) > th,
.sinottico_annidata > tbody > tr > td,
.sinottico_annidata > tbody > tr > th {
	border-bottom: 1px solid #e0e0e0;
}

/* da questo padding dipendono margin e width della classe sinottico_annidata */
.sinottico > tbody > tr > td,
.sinottico > tbody > tr > th:not(:only-child),
.sinottico_annidata > tbody > tr > td,
.sinottico_annidata > tbody > tr > th:not(:only-child) {
	padding: .25em .4em; 
}

.sinottico > tbody > tr > td,
.sinottico_annidata > tbody > tr > td {
	vertical-align: middle;
}

/* retrocompatibilità con gli stili precedenti al 2022, vedi ad es. t:Carica pubblica */
.sinottico > tbody > tr > td > hr:only-child {
	margin: 0.4em 0.2em;
}

/* elenchi più compatti all'interno dei sinottici */
.sinottico ul {
	margin: 0 0 0 1em;
	padding: 0;
}

/* margin e width dipendono dal padding delle celle */
.sinottico_annidata {
	border-spacing: 0;
	margin: 0 -.4em;
	width: calc(100% + calc(.4em * 2));
}

/* il margine dipende dal padding delle celle */
.sinottico_annidata:last-child {
	margin-bottom: -.2em;
}

.sinottico_annidata:last-child > tbody > tr:last-child > td,
.sinottico_annidata:last-child > tbody > tr:last-child > th {
	border-bottom: none;
}

/* mantiene leggero stacco degli stili precedenti al 2022, vedi ad es. t:Carica pubblica */
.sinottico_divisione + .sinottico_divisione > th,
.sinottico_testata + .sinottico_divisione > th {
	border-top: 2px solid #f8f9fa;
}

.sinottico_divisione th {
    background-color: #eeeeee;
    padding: .15em .4em;
    text-align: center;
}

.sinottico_piede {
    text-align: center;
    font-size: 90%;
    background: #EFEFEF;
}

/* secondo piede con i collegamenti fissi a wikidata/man */
.sinottico_piede2 {
	background-color: white;
	font-size: xx-small;
	padding-bottom: 0;
	text-align: right;
}

.sinottico_sottotitolo {
    font-size: 80%;
}

.sinottico_testata th {
    background-color: #dedede;
    font-size: 116%;
    padding: .2em .4em;
    text-align: center;
}

.sinottico_testo_centrale {
    text-align: center;
}

/***** Stili del template Avviso */
table.avviso {
  margin: 0 10%;                           /* Non si sovrappone ad altri elementi */
  border-collapse: collapse; 
  background: #fbfbfb; 
  border: 1px solid #aaa; 
  margin-top:5px;
  margin-bottom:5px;
}
.avviso-testo {                            /* Corpo del messaggio */
  padding: 0.25em 0.5em;
  width: 100%;                             /* Rende tutti i template della stessa lunghezza nonostante il testo interno */
}
.avviso-immagine {                         /* Stile dell'immagine a sinistra */
  padding: 2px 0px 2px 0.5em;
  text-align: center; 
}
.avviso-immaginedestra {                   /* Stile dell'immagine a destra */
  padding: 2px 4px 2px 0px;
  text-align: center; 
}
table.avviso-informazioni {
  border-left: 10px solid #1e90ff;         /* Blu */
}
table.avviso-cancella,
table.avviso-importante {
  border-left: 10px solid #b22222;         /* Rosso */
}
table.avviso-contenuto {
  border-left: 10px solid #f28500;         /* Arancio */
}
table.avviso-stile {
  border-left: 10px solid #f4c430;         /* Giallo */
}
table.avviso-statico {
  border-left: 10px solid limegreen;       /* Verde */
}
table.avviso-struttura {
  border-left: 10px solid #9932cc;         /* Viola */
}
table.avviso-generico {
  border-left: 10px solid #bba;            /* Grigio */
}

/***** Stili per template vari */

.itwiki_template_toc {
    border: 1px solid #aaaaaa;
    background-color: #f9f9f9;
    padding: 0px;
    font-size: 95%;
}

/***** classi per arrotondare i bordi dei div e delle tabelle */
.radius {
    border-radius: 1em;
    -moz-border-radius: 1em;
}
.radius_top {
    border-top-right-radius: 1em;
    border-top-left-radius: 1em;
    -moz-border-radius-topright: 1em;
    -moz-border-radius-topleft: 1em;
}
.radius_bottom {
    border-bottom-right-radius: 1em;
    border-bottom-left-radius: 1em;
    -moz-border-radius-bottomright: 1em;
    -moz-border-radius-bottomleft: 1em;
}
.rad {
    border-radius: .5em;
    -moz-border-radius: .5em;
}

/***** Per elementi che non vanno stampati */
@media print {
    .noprint { display: none }
}

/***** Evita che i link vadano a capo */
.nowraplinks a {
    white-space: nowrap;
}

/***** Note <references/> */

/* evidenziazione */
ol.references > li:target {
 background-color: #DEF;
}

sup.reference:target {
 background-color: #DEF;
}

/* rimpicciolimento */
ol.references {
   font-size: 90%;
}

/* {{references}} multicolonna e {{div col}} */
.note_colonne, .colonne {
  -moz-column-width:30em;
  -webkit-column-width:30em;
  column-width:30em;
}
.note_colonne_strette, .colonne_strette {
  -moz-column-width:20em;
  -webkit-column-width:20em;
  column-width:20em;
}

/***** evita di grassettare/ingrandire i numeri delle note quando si trovano in un titolo */
.reference {font-weight: normal; font-size: 0.7rem; font-family: sans-serif;}

/* evita di andare a capo ([[Template:Tutto attaccato]] */
.nowrap {
	white-space: nowrap;
}


/************************
 * PERSONALIZZAZIONI DI WIKIAPPUNTI *
 ************************/

/* Pagina principale */
td.pulsantePaginaPrincipale {
   border: 1px solid silver;
   height: 33px;
   width: 20%;
   padding: 1em;
   vertical-align: middle;
   color: white;
}

/* Mette in grassetto la categoria radice nei categorytree */
div.CategoryTreeTag { font-weight: bold; }
div.CategoryTreeChildren { font-weight: normal; }

/* Colorano le freccette nelle pagine di categorie (da en.wiki: http://en.wikipedia.org/w/index.php?title=MediaWiki%3ACommon.css&diff=570164162&oldid=568483446 ) */
.CategoryTreeToggle {
    color: #0645AD;
}
.CategoryTreeEmptyBullet {
    color: #C0C0C0;
}

div.mw-geshi, span.mw-geshi {
   padding: 0;
   border-style: none;
   background-color: transparent;
}

/* La caption prende la larghezza non della tabella ma della pagina */
table caption {
   caption-side: top-outside;
}

/* Rende il tag <code> visivamente uguale al tag <tt> */
code {
  color: #252525;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

 
/* Elenco puntato nel template Template:Pro */
div.pro li:before,
li.pro:before {
  color: green;
  content: "+ ";
  font-weight: bold;
}
div.pro li::before,
li.pro::before {
  color: green;
  content: "+ ";
  font-weight: bold;
}
 
/* Elenco puntato nel template Template:Contro */
div.contro li:before,
li.contro:before {
  color: red;
  content: "+ ";
  font-weight: bold;
}
div.contro li::before,
li.contro::before {
  color: red;
  content: "− ";
  font-weight: bold;
}
 
div.pro li,
div.contro li,
li.pro,
li.contro {
  list-style-type: none;
  list-style-image: none;
}

/* Template:Esempio template */
div.esempio_template_pre pre {
  white-space: pre-wrap;
  background-color: transparent;
  border-style: none;
  padding: 0;
}

/* Nasconde varie cose */
#staf { display: none; }
div#globalNotice { display: none; }

/* https://it.wikipedia.org/wiki/Speciale:Diff/100174419 */
/***** classi legate al template Navbox */
table.navbox {
  border:1px solid #aaa;
  width:100%; 
  margin:auto;
  clear:both;
  text-align:center;
  padding:1px;
}
table.navbox + table.navbox {
  margin-top:-1px;    /* bordo ridotto tra navbox adiacenti (non funziona in IE6, ma non fa danni) */
}
.navbox-title, .navbox-abovebelow, table.navbox th {
  text-align:center;
  padding-left:1em;
  padding-right:1em;
}
.navbox-group {
  white-space:nowrap;
  text-align:right;
  font-weight:bold;
  padding-left:1em;
  padding-right:1em;
}
.navbox, .navbox-subgroup {
  background:#fdfdfd;
}
.navbox-list {
  border-color:#fdfdfd;   /* deve corrispondere a background */
}
.navbox-title, table.navbox th {
  background:#ccccff;     /* Colore livello 1 */
}
.navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title {
  background:#ddddff;     /* Colore livello 2 */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
  background:#e6e6ff;     /* Colore livello 3 */
}
.navbox-even {
  background:#f7f7f7;     /* Colore righe pari */
}
.navbox-odd {
  background:transparent; /* Colore righe dispari */
}

/***** Imposta l'aspetto dei link mostra/nascondi
    con le table mw-collapsible dei navbox */
table.navbox .mw-collapsible-toggle {
    font-weight: normal;
    text-align: right;
    width: 7em;
}