MediaWiki:Common.css: differenze tra le versioni
Pagina dell'interfaccia di MediaWiki
Altre azioni
Nessun oggetto della modifica |
Nessun oggetto della modifica Etichetta: Ripristino manuale |
||
| (15 versioni intermedie di uno stesso utente non sono mostrate) | |||
| Riga 1: | Riga 1: | ||
/* | /* =============================== | ||
Stili globali per l'infobox | |||
=============================== */ | |||
/* Infobox scura, stretta e verticale */ | |||
.infobox { | .infobox { | ||
float: right; | float: right; | ||
| Riga 13: | Riga 17: | ||
line-height: 1.45; | line-height: 1.45; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} /* Titolo */ | } | ||
/* Titolo */ | |||
.infobox .ib-title { | .infobox .ib-title { | ||
background: #151519; | background: #151519; | ||
| Riga 20: | Riga 26: | ||
font-weight: 700; | font-weight: 700; | ||
font-size: 1.05em; | font-size: 1.05em; | ||
} /* Immagine + didascalia */ | } | ||
/* Immagine + didascalia */ | |||
.infobox .ib-image { | .infobox .ib-image { | ||
text-align: center; | text-align: center; | ||
padding: 0.5rem; | padding: 0.5rem; | ||
} | } | ||
.infobox .ib-image img { | .infobox .ib-image img { | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
.infobox .ib-caption { | .infobox .ib-caption { | ||
color: #b6b6b8; | color: #b6b6b8; | ||
| Riga 35: | Riga 45: | ||
font-style: italic; | font-style: italic; | ||
margin: 0.25rem 0.5rem 0.5rem; | margin: 0.25rem 0.5rem 0.5rem; | ||
} /* Righe (flex: etichetta a sinistra, dato a destra) */ | } | ||
/* Righe (flex: etichetta a sinistra, dato a destra) */ | |||
.ib-row { | .ib-row { | ||
display: flex; | display: flex; | ||
} | } | ||
.ib-label, | .ib-label, | ||
.ib-data { | .ib-data { | ||
padding: 0.45rem 0.6rem; | padding: 0.45rem 0.6rem; | ||
} | } | ||
.ib-label { | .ib-label { | ||
width: 42%; | width: 42%; | ||
| Riga 50: | Riga 64: | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
.ib-data { | .ib-data { | ||
width: 58%; | width: 58%; | ||
| Riga 55: | Riga 70: | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
} | } | ||
.ib-row:nth-of-type(even) .ib-data { | .ib-row:nth-of-type(even) .ib-data { | ||
background: #121214; | background: #121214; | ||
} /* Link */ | } | ||
/* Link */ | |||
.infobox a { | .infobox a { | ||
color: #58a6ff; | color: #58a6ff; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.infobox a:hover { | .infobox a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
} /* *** STOP AI BUCHI *** | } | ||
/* | |||
*** STOP AI BUCHI *** | |||
MediaWiki inserisce <p> tra i blocchi → li azzeriamo/eliminiamo. | |||
Manteniamo invece i <p> dentro .ib-data (testo dell'utente). | |||
*/ | |||
.infobox > p { | .infobox > p { | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
display: none !important; | display: none !important; | ||
} /* Mobile: piena larghezza, niente float */ | } | ||
/* Mobile: piena larghezza, niente float */ | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.infobox { | .infobox { | ||
| Riga 79: | Riga 106: | ||
} | } | ||
/* Nasconde il link duplicato aggiunto nel portlet Navigation */ | |||
#n-specialpages { | #n-specialpages { | ||
display: none !important; | display: none !important; | ||
} | } | ||
Versione attuale delle 15:49, 6 set 2025
/* ===============================
Stili globali per l'infobox
=============================== */
/* Infobox scura, stretta e verticale */
.infobox {
float: right;
clear: right;
width: 320px;
max-width: 320px; /* fissa su desktop */
margin: 0 0 1rem 1rem;
background: #0f0f10;
color: #e9e9ea;
border: 1px solid #27272a;
border-radius: 6px;
font-size: 0.95em;
line-height: 1.45;
box-sizing: border-box;
}
/* Titolo */
.infobox .ib-title {
background: #151519;
padding: 0.6rem 0.8rem;
text-align: center;
font-weight: 700;
font-size: 1.05em;
}
/* Immagine + didascalia */
.infobox .ib-image {
text-align: center;
padding: 0.5rem;
}
.infobox .ib-image img {
max-width: 100%;
height: auto;
}
.infobox .ib-caption {
color: #b6b6b8;
font-size: 0.85em;
text-align: center;
font-style: italic;
margin: 0.25rem 0.5rem 0.5rem;
}
/* Righe (flex: etichetta a sinistra, dato a destra) */
.ib-row {
display: flex;
}
.ib-label,
.ib-data {
padding: 0.45rem 0.6rem;
}
.ib-label {
width: 42%;
background: #151519;
text-align: left;
font-weight: 600;
vertical-align: top;
}
.ib-data {
width: 58%;
word-break: break-word;
overflow-wrap: anywhere;
}
.ib-row:nth-of-type(even) .ib-data {
background: #121214;
}
/* Link */
.infobox a {
color: #58a6ff;
text-decoration: none;
}
.infobox a:hover {
text-decoration: underline;
}
/*
*** STOP AI BUCHI ***
MediaWiki inserisce <p> tra i blocchi → li azzeriamo/eliminiamo.
Manteniamo invece i <p> dentro .ib-data (testo dell'utente).
*/
.infobox > p {
margin: 0 !important;
padding: 0 !important;
display: none !important;
}
/* Mobile: piena larghezza, niente float */
@media (max-width: 768px) {
.infobox {
float: none;
width: 100%;
max-width: 100%;
margin: 0.5rem 0 1rem;
}
}
/* Nasconde il link duplicato aggiunto nel portlet Navigation */
#n-specialpages {
display: none !important;
}