MediaWiki:Common.css: differenze tra le versioni
Pagina dell'interfaccia di MediaWiki
Altre azioni
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
| Riga 2: | Riga 2: | ||
/* ===== Infobox (light + dark) ===== */ | /* ===== Infobox (light + dark) ===== */ | ||
/* | /* ========= Infobox – tema scuro + responsive ========= */ | ||
:root{ | |||
--ib-bg:#0f0f10; | |||
--ib-fg:#e9e9ea; | |||
--ib-muted:#b6b6b8; | |||
--ib-border:#27272a; | |||
--ib-accent:#58a6ff; | |||
--ib-section:#151519; | |||
--ib-zebra:#121214; | |||
} | |||
table.infobox{ | |||
float:inline-end; | |||
.infobox { | clear:inline-end; | ||
.infobox | margin:0 0 1rem 1rem; | ||
width:min(100%, 340px); | |||
background:var(--ib-bg); | |||
color:var(--ib-fg); | |||
border:1px solid var(--ib-border); | |||
border-radius:6px; | |||
border-collapse:separate; | |||
overflow:hidden; | |||
font-size:.95em; | |||
line-height:1.45; | |||
} | |||
.infobox .ib-title{ | |||
background:var(--ib-section); | |||
padding:.6rem .8rem; | |||
text-align:center; | |||
font-weight:700; | |||
font-size:1.1em; | |||
} | |||
.infobox .ib-image{ text-align:center; padding:.5rem; } | |||
.infobox .ib-caption{ color:var(--ib-muted); font-size:.85em; margin-top:.25rem; } | |||
.infobox .ib-label{ | |||
width:42%; | |||
padding:.45rem .6rem; | |||
background:var(--ib-section); | |||
text-align:start; | |||
vertical-align:top; | |||
} | |||
.infobox .ib-data{ padding:.45rem .6rem; } | |||
.infobox tr:nth-child(even) .ib-data{ background:var(--ib-zebra); } | |||
.infobox a{ color:var(--ib-accent); text-decoration:none; } | |||
.infobox a:hover{ text-decoration:underline; } | |||
.infobox img{ max-width:100%; height:auto; } | |||
/* responsive */ | |||
@media (max-width: 768px){ | |||
table.infobox{ float:none; margin:.5rem 0 1rem 0; width:100%; } | |||
} | } | ||
Versione delle 18:59, 1 set 2025
/* Gli stili CSS inseriti qui si applicano a tutti i temi */
/* ===== Infobox (light + dark) ===== */
/* ========= Infobox – tema scuro + responsive ========= */
:root{
--ib-bg:#0f0f10;
--ib-fg:#e9e9ea;
--ib-muted:#b6b6b8;
--ib-border:#27272a;
--ib-accent:#58a6ff;
--ib-section:#151519;
--ib-zebra:#121214;
}
table.infobox{
float:inline-end;
clear:inline-end;
margin:0 0 1rem 1rem;
width:min(100%, 340px);
background:var(--ib-bg);
color:var(--ib-fg);
border:1px solid var(--ib-border);
border-radius:6px;
border-collapse:separate;
overflow:hidden;
font-size:.95em;
line-height:1.45;
}
.infobox .ib-title{
background:var(--ib-section);
padding:.6rem .8rem;
text-align:center;
font-weight:700;
font-size:1.1em;
}
.infobox .ib-image{ text-align:center; padding:.5rem; }
.infobox .ib-caption{ color:var(--ib-muted); font-size:.85em; margin-top:.25rem; }
.infobox .ib-label{
width:42%;
padding:.45rem .6rem;
background:var(--ib-section);
text-align:start;
vertical-align:top;
}
.infobox .ib-data{ padding:.45rem .6rem; }
.infobox tr:nth-child(even) .ib-data{ background:var(--ib-zebra); }
.infobox a{ color:var(--ib-accent); text-decoration:none; }
.infobox a:hover{ text-decoration:underline; }
.infobox img{ max-width:100%; height:auto; }
/* responsive */
@media (max-width: 768px){
table.infobox{ float:none; margin:.5rem 0 1rem 0; width:100%; }
}