MediaWiki:Common.css: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
 
(7 versioni intermedie di 2 utenti non mostrate)
Riga 17:
font-size:140%;
font-family:serif;
}
 
/***** 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;
}
 
Riga 137 ⟶ 22:
 
.messagebox {
border: 1px solid var( --border-color-base, #aaaa2a9b1 );
background-color: var( --background-color-interactive-subtle, #f9f9f9f8f9fa );
width: 80%;
margin: 0 auto 1em auto;
Riga 145 ⟶ 30:
 
/***** Stili del template Avviso */
table.avviso {
margin: 5px 10%; /* Non si sovrappone ad altri elementi */
border-collapse: collapse;
background: #fbfbfb;
border: 1px solid #aaa;
display: flex;
align-items: center;
box-sizing: border-box; /* Compatibilità con parametro 'stile' per template che si aspettano una tabella */
padding-left: 0.5em;
}
.avviso-testo { /* Corpo del messaggio */
Riga 156 ⟶ 44:
}
.avviso-immagine { /* Stile dell'immagine a sinistra */
padding: 2px 0 2px 0.5em;
text-align: center;
}
Riga 163 ⟶ 51:
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 */
}
Riga 199 ⟶ 87:
 
.itwiki_template_toc {
border: 1px solid var(--border-color-base, #aaaaaaa2a9b1);
background-color: var( --background-color-interactive-subtle, #f9f9f9f8f9fa );
padding: 0;
font-size: 95%;
Riga 261 ⟶ 149:
}
 
/* colorazioneevidenziazione della bibliografia tramitedal l'utilizzolink del"#CITEREF" generato dal template "Cita" e simili" */
cite:target {
background-color: #DDEEFFDEF;
}
 
Riga 293 ⟶ 181:
font-weight: bold;
content: "^ ";
}
.mw-ref > a[data-mw-group=lower-alpha]::after {
content: '[' counter( mw-Ref, lower-alpha ) ']';
}