MediaWiki:Common.css
Nota: dopo aver pubblicato, potrebbe essere necessario pulire la cache del proprio browser per vedere i cambiamenti.
- Firefox / Safari: tieni premuto il tasto delle maiuscole Shift e fai clic su Ricarica, oppure premi Ctrl-F5 o Ctrl-R (⌘-R su Mac)
- Google Chrome: premi Ctrl-Shift-R (⌘-Shift-R su un Mac)
- Edge: tieni premuto il tasto Ctrl e fai clic su Aggiorna, oppure premi Ctrl-F5.
/* ============================================================
* Common.css — Wiki Methode Paret
* ============================================================
* Responsive fixes per Vector-2022 e fallback mobile.
* Se per qualche motivo l'utente mobile finisce su Vector,
* almeno il contenuto è leggibile.
* ============================================================ */
/* TABELLE: scroll orizzontale su mobile invece di rompere il layout */
@media screen and (max-width: 768px) {
/* Wrap forzato per tabelle larghe */
.mw-parser-output table {
display: block !important;
overflow-x: auto !important;
max-width: 100% !important;
-webkit-overflow-scrolling: touch;
}
/* Tabelle navigation-style: stack verticale */
.mw-parser-output table.wikitable td {
max-width: 100% !important;
word-wrap: break-word !important;
}
/* Heading più compatti */
.mw-parser-output h1 { font-size: 1.5em !important; }
.mw-parser-output h2 { font-size: 1.3em !important; }
.mw-parser-output h3 { font-size: 1.15em !important; }
/* Body font più leggibile */
body { font-size: 16px !important; }
.mw-parser-output p { line-height: 1.5 !important; }
/* Sidebar nascosta su mobile se per qualche motivo è renderizzata */
#mw-panel,
.mw-sidebar-action,
.vector-sticky-pinned-container {
display: none !important;
}
/* Content prende tutta la larghezza */
.mw-body,
#content,
.mw-content-container,
main {
margin-left: 0 !important;
margin-right: 0 !important;
padding: 10px !important;
max-width: 100% !important;
}
/* Disable hover sidebars */
.vector-toc { display: none !important; }
/* Container width 100% */
.mw-page-container {
max-width: 100% !important;
padding: 0 !important;
}
}
/* Immagini sempre responsive */
.mw-parser-output img {
max-width: 100% !important;
height: auto !important;
}
/* Pre/code: scroll, no overflow */
.mw-parser-output pre,
.mw-parser-output code {
max-width: 100% !important;
overflow-x: auto !important;
white-space: pre-wrap;
word-wrap: break-word;
}
/* NavBox (usata in pagine come Donato): responsive */
.navbox {
max-width: 100% !important;
}
@media screen and (max-width: 600px) {
.navbox td {
display: block !important;
width: 100% !important;
}
}