MediaWiki:Common.css: differenze tra le versioni
Pagina dell'interfaccia di MediaWiki
Altre azioni
Creata pagina con "→Gli stili CSS inseriti qui si applicano a tutti i temi: →InfoBox: .infobox{border:1px solid #a2a9b1;background:#f8f9fa;border-collapse:collapse;width:28em;max-width:100%;float:right;margin:0 0 1em 1em;font-size:95%} .infobox-title{background:#eaecf0;font-size:120%;text-align:center;padding:.6em .8em} .infobox th,.infobox td{border-top:1px solid #a2a9b1;vertical-align:top;padding:.4em .6em} .infobox th{text-align:left;width:40%} .infobox-image{text-align:center;pad..." |
Nessun oggetto della modifica |
||
| Riga 1: | Riga 1: | ||
/* Gli stili CSS inseriti qui si applicano a tutti i temi */ | /* Gli stili CSS inseriti qui si applicano a tutti i temi */ | ||
/*InfoBox*/ | /*InfoBox*/ | ||
.infobox{border: | /* ===== Infobox (light + dark) ===== */ | ||
.infobox-title{background: | .mw-parser-output .infobox { | ||
.infobox th,.infobox td{border-top:1px solid | --bg: #f8f9fa; | ||
.infobox th{text-align:left;width: | --border: #a2a9b1; | ||
.infobox-image{text-align:center;padding:. | --head-bg: #eaecf0; | ||
.infobox-img{max-width:100%;height:auto} | --sub-bg: #dce1e7; | ||
.infobox-caption{font-size:90%;color: | --text: #202122; | ||
@media (max-width:720px){.infobox{float:none;margin:0 | --muted: #54595d; | ||
background: var(--bg); | |||
color: var(--text); | |||
border: 1px solid var(--border); | |||
border-collapse: collapse; | |||
width: 28em; | |||
max-width: 100%; | |||
float: right; | |||
clear: right; /* “attacca” in alto a dx */ | |||
margin: 0 0 1em 1em; | |||
font-size: 95%; | |||
} | |||
@media (prefers-color-scheme: dark) { | |||
.mw-parser-output .infobox { | |||
--bg: #1f2227; | |||
--border: #353a42; | |||
--head-bg: #2a2f36; | |||
--sub-bg: #303641; | |||
--text: #e7e9ec; | |||
--muted: #a7adb6; | |||
} | |||
} | |||
.mw-parser-output .infobox-title { | |||
background: var(--head-bg); | |||
font-weight: 700; | |||
font-size: 120%; | |||
text-align: center; | |||
padding: .6em .8em; | |||
} | |||
.mw-parser-output .infobox-subtitle { | |||
background: var(--sub-bg); | |||
text-align: center; | |||
font-weight: 600; | |||
padding: .4em .8em; | |||
} | |||
.mw-parser-output .infobox th, | |||
.mw-parser-output .infobox td { | |||
border-top: 1px solid var(--border); | |||
vertical-align: top; | |||
padding: .45em .6em; | |||
} | |||
.mw-parser-output .infobox th { | |||
text-align: left; | |||
width: 42%; | |||
white-space: nowrap; | |||
} | |||
.mw-parser-output .infobox-image { | |||
text-align: center; | |||
padding: .5em .5em .3em; | |||
} | |||
.mw-parser-output .infobox-img { | |||
max-width: 100%; | |||
height: auto; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output .infobox-caption { | |||
font-size: 90%; | |||
color: var(--muted); | |||
margin-top: .25em; | |||
} | |||
/* “sezione” per separatori opzionali */ | |||
.mw-parser-output .infobox-section { | |||
background: var(--head-bg); | |||
font-weight: 600; | |||
text-align: center; | |||
padding: .35em .5em; | |||
} | |||
/* mobile: piena larghezza, niente float */ | |||
@media (max-width: 720px) { | |||
.mw-parser-output .infobox { | |||
float: none; | |||
margin: 0 0 1em 0; | |||
width: 100%; | |||
} | |||
} | |||
Versione delle 18:40, 1 set 2025
/* Gli stili CSS inseriti qui si applicano a tutti i temi */
/*InfoBox*/
/* ===== Infobox (light + dark) ===== */
.mw-parser-output .infobox {
--bg: #f8f9fa;
--border: #a2a9b1;
--head-bg: #eaecf0;
--sub-bg: #dce1e7;
--text: #202122;
--muted: #54595d;
background: var(--bg);
color: var(--text);
border: 1px solid var(--border);
border-collapse: collapse;
width: 28em;
max-width: 100%;
float: right;
clear: right; /* “attacca” in alto a dx */
margin: 0 0 1em 1em;
font-size: 95%;
}
@media (prefers-color-scheme: dark) {
.mw-parser-output .infobox {
--bg: #1f2227;
--border: #353a42;
--head-bg: #2a2f36;
--sub-bg: #303641;
--text: #e7e9ec;
--muted: #a7adb6;
}
}
.mw-parser-output .infobox-title {
background: var(--head-bg);
font-weight: 700;
font-size: 120%;
text-align: center;
padding: .6em .8em;
}
.mw-parser-output .infobox-subtitle {
background: var(--sub-bg);
text-align: center;
font-weight: 600;
padding: .4em .8em;
}
.mw-parser-output .infobox th,
.mw-parser-output .infobox td {
border-top: 1px solid var(--border);
vertical-align: top;
padding: .45em .6em;
}
.mw-parser-output .infobox th {
text-align: left;
width: 42%;
white-space: nowrap;
}
.mw-parser-output .infobox-image {
text-align: center;
padding: .5em .5em .3em;
}
.mw-parser-output .infobox-img {
max-width: 100%;
height: auto;
border-radius: 2px;
}
.mw-parser-output .infobox-caption {
font-size: 90%;
color: var(--muted);
margin-top: .25em;
}
/* “sezione” per separatori opzionali */
.mw-parser-output .infobox-section {
background: var(--head-bg);
font-weight: 600;
text-align: center;
padding: .35em .5em;
}
/* mobile: piena larghezza, niente float */
@media (max-width: 720px) {
.mw-parser-output .infobox {
float: none;
margin: 0 0 1em 0;
width: 100%;
}
}