MediaWiki:Common.css

Aus SWPedia
Zur Navigation springen Zur Suche springen

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
/* =================================
   CHARACTER PROFILE - STYLE "PAPER & DECOR"
   ================================= */

/* Container für die Karte */
.char-card {
    position: relative; /* Wichtig für das Zierelement */
    display: flex;
    gap: 20px;
    background-color: #fcfcfc; /* Papier-Weiß */
    padding: 25px; /* Etwas mehr Platz für die Deko */
    border-radius: 4px;
    border: 1px solid #ccc;
    color: #333;
    max-width: 1100px;
    margin: 1em 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden; /* Damit Deko nicht übersteht */
}

/* --- SCHRIFT-RESET (Alles gleich) --- */
/* Erzwingt überall die gleiche Schriftart */
.char-card, 
.char-card * {
    font-family: 'Segoe UI', Tahoma, sans-serif !important;
    font-size-adjust: none;
}

/* --- ZIERELEMENT (Ecke rechts unten) --- */
/* Äußerer Winkel */
.char-card::after {
    content: "";
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    border-bottom: 3px solid #b8860b; /* Bronze */
    border-right: 3px solid #b8860b;
    border-bottom-right-radius: 4px;
    opacity: 0.4; /* Dezent transparent */
    pointer-events: none; /* Klicks gehen durch */
}

/* Innerer Winkel (für den "Doppel-Linien"-Look) */
.char-card::before {
    content: "";
    position: absolute;
    bottom: 22px;
    right: 22px;
    width: 35px;
    height: 35px;
    border-bottom: 1px solid #b8860b;
    border-right: 1px solid #b8860b;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* --- LINKE SPALTE (Bild & Name) --- */
.cc-left {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2; /* Liegt über der Deko */
}

.cc-image-box {
    border: none;
    border-radius: 0;
    overflow: hidden;
    line-height: 0;
    background: #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.cc-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.cc-name-badge {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
}

.cc-name {
    font-size: 1.6em !important; /* Priorität für Größe */
    font-weight: 800 !important;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    line-height: 1.1;
}

.cc-subtitle {
    font-size: 0.9em !important;
    color: #666;
    font-style: italic;
    border-top: 1px solid #ccc;
    padding-top: 8px;
    margin-top: 8px;
}

/* --- RECHTE SPALTE (Daten & Text) --- */
.cc-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2; /* Liegt über der Deko */
}

.cc-data-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    min-height: 38px;
}

.cc-label {
    flex: 0 0 140px;
    background: #eef2f5;
    color: #555;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.8em !important;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-right: 1px solid #ddd;
    letter-spacing: 0.5px;
}

.cc-value {
    padding: 8px 15px;
    font-weight: 600 !important;
    color: #000;
    flex: 1;
    font-size: 0.95em !important;
}

/* Überschriften */
.cc-header {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    color: #b8860b; /* Bronze */
    border-bottom: 1px dashed #bbb;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cc-text {
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: justify;
    hyphens: auto;
}

/* --- LINK FARBEN --- */
.char-card a,
.char-card a:visited,
.char-card a.mw-redirect {
    color: #b8860b !important; /* Bronze */
    text-decoration: none;
    font-weight: bold !important;
    transition: color 0.2s;
}

.char-card a:hover {
    color: #000000 !important;
    text-decoration: underline;
    background-color: rgba(184, 134, 11, 0.1);
}

.char-card a.new,
.char-card a.new:visited {
    color: #cc0000 !important;
}

/* --- MOBILE --- */
@media (max-width: 800px) {
    .char-card {
        flex-direction: column;
        padding: 15px;
    }
    .cc-left {
        flex: auto;
        width: 100%;
    }
    /* Deko im Mobile etwas kleiner machen */
    .char-card::after { width: 40px; height: 40px; }
    .char-card::before { width: 20px; height: 20px; }
}