MediaWiki:Common.css

Aus Dunkelherzen Wiki

Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.

  • Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
  • Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
  • Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
#p-logo a {
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center center;
    height: 160px; /* gewünschte Höhe */
}

.charakter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 1em;
}

.charakter-card {
  width: 200px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px;
  background-color: #fff;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.charakter-card:hover {
  transform: scale(1.05);
}

.charakter-name {
  font-weight: bold;
  margin-top: 10px;
}
.charakter-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

body.page-Kategorie_FähigkeitenNPC .mw-category-group > h3 {
    display: none;
}
// NPC:-Präfix ausblenden nur in Kategorie:FähigkeitenNPC
if (mw.config.get('wgPageName') === 'Kategorie:FähigkeitenNPC') {
    document.querySelectorAll('.mw-category li a').forEach(a => {
        if (a.textContent.startsWith('NPC: ')) {
            a.textContent = a.textContent.replace(/^NPC:\s*/, '');
        }
    });
}