MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus Interstellar Rift Wiki
Zur Navigation springenZur Suche springen
Richte Infoboxen wie im Original-Wiki rechts aus
 
Verhindere Überlappungen von Infoboxen und Artikeltext
Zeile 2: Zeile 2:
   float: right;
   float: right;
   clear: right;
   clear: right;
  box-sizing: border-box;
  max-width: calc(100% - 1em);
   margin: 0 0 1em 1em;
   margin: 0 0 1em 1em;
}
/* Artikelabschnitte starten nach einer Infobox unterhalb der Box. */
.mw-parser-output .infobox + h2,
.mw-parser-output .infobox + h3,
.mw-parser-output .infobox + h4 {
  clear: right;
}
}


Zeile 9: Zeile 18:
     float: none;
     float: none;
     margin: 0 auto 1em;
     margin: 0 auto 1em;
    max-width: 100%;
   }
   }
}
}

Version vom 29. September 2026, 23:57 Uhr

.mw-parser-output .infobox {
  float: right;
  clear: right;
  box-sizing: border-box;
  max-width: calc(100% - 1em);
  margin: 0 0 1em 1em;
}

/* Artikelabschnitte starten nach einer Infobox unterhalb der Box. */
.mw-parser-output .infobox + h2,
.mw-parser-output .infobox + h3,
.mw-parser-output .infobox + h4 {
  clear: right;
}

@media screen and (max-width: 640px) {
  .mw-parser-output .infobox {
    float: none;
    margin: 0 auto 1em;
    max-width: 100%;
  }
}