MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus Dunkelherzen Wiki
DRP (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
DRP (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
| Zeile 44: | Zeile 44: | ||
body.page-Kategorie_FähigkeitenNPC .mw-category-group > h3 { | body.page-Kategorie_FähigkeitenNPC .mw-category-group > h3 { | ||
display: none; | 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*/, ''); | |||
} | |||
}); | |||
} | } | ||
Version vom 7. Dezember 2025, 22:13 Uhr
/* 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*/, '');
}
});
}
