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 "SHADOW"
   ================================= */

.char-card {
    display: flex;
    gap: 20px;
    background-color: #1e1e1e; /* Dunkler Hintergrund */
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #333;
    color: #ddd;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    max-width: 1100px;
    margin: 1em 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* --- LINKE SPALTE (Bild & Name) --- */
.cc-left {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Bild-Container (Rahmenlos) */
.cc-image-box {
    border: none;
    border-radius: 0; /* Keine runden Ecken */
    overflow: hidden;
    line-height: 0;
    background: #000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

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

/* Namens-Schild */
.cc-name-badge {
    background: #252525;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cc-name {
    font-size: 1.6em;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    line-height: 1.1;
}

.cc-subtitle {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
    border-top: 1px solid #3a3a3a;
    padding-top: 8px;
    margin-top: 8px;
}

/* --- RECHTE SPALTE (Daten & Text) --- */
.cc-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Abstand zwischen den Riegeln */
}

/* Daten-Riegel */
.cc-data-row {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    overflow: hidden;
    min-height: 38px;
}

.cc-label {
    flex: 0 0 140px; /* Breite der Beschriftung */
    background: #333;
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8em;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-right: 1px solid #3a3a3a;
    letter-spacing: 0.5px;
}

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

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

/* Text-Block (Blocksatz) */
.cc-text {
    line-height: 1.6;
    color: #ccc;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 4px;
    text-align: justify; /* Blocksatz */
    hyphens: auto;
}

/* --- LINK FARBEN (Überschreiben Wiki-Standard) --- */
/* Normale Links -> Gold */
.char-card a,
.char-card a:visited,
.char-card a.mw-redirect {
    color: #d4a017 !important;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

/* Hover -> Weiß */
.char-card a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Fehlende Seiten (Redlink) -> Helles Rot */
.char-card a.new,
.char-card a.new:visited {
    color: #ff6b6b !important;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 800px) {
    .char-card {
        flex-direction: column;
        padding: 15px;
    }
    .cc-left {
        flex: auto;
        width: 100%;
    }
    .cc-label {
        flex: 0 0 110px;
        font-size: 0.75em;
        padding: 8px 10px;
    }
}