MediaWiki:Common.css

Versione del 2 giu 2025 alle 21:46 di LeoAdmin (discussione | contributi) (Creata pagina con "Gli stili CSS inseriti qui si applicano a tutti i temi: Change the external link icon to a PDF icon for all PDF files: .mw-parser-output a[href$=".pdf"], .mw-parser-output a[href*=".pdf?"], .mw-parser-output a[href*=".pdf#"], .mw-parser-output a[href$=".PDF"], .mw-parser-output a[href*=".PDF?"], .mw-parser-output a[href*=".PDF#"] { background: url("https://upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right; @noflip: p...")
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)

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.
/* Gli stili CSS inseriti qui si applicano a tutti i temi */
/* Change the external link icon to a PDF icon for all PDF files */
.mw-parser-output a[href$=".pdf"],
.mw-parser-output a[href*=".pdf?"],
.mw-parser-output a[href*=".pdf#"],
.mw-parser-output a[href$=".PDF"],
.mw-parser-output a[href*=".PDF?"],
.mw-parser-output a[href*=".PDF#"] {
  background: url("https://upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png")
    no-repeat right;
  /* @noflip */
  padding: 8px 18px 8px 0;
}