MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus SWPedia
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* =================================
/* =================================
   CHARACTER PROFILE - STYLE "LIGHT / PAPER"
   CHARACTER PROFILE - STYLE "PAPER & DECOR"
   ================================= */
   ================================= */


/* Container für die Karte */
.char-card {
.char-card {
    position: relative; /* Wichtig für das Zierelement */
     display: flex;
     display: flex;
     gap: 20px;
     gap: 20px;
     background-color: #fcfcfc; /* Fast Weißes Papier */
     background-color: #fcfcfc; /* Papier-Weiß */
     padding: 20px;
     padding: 25px; /* Etwas mehr Platz für die Deko */
     border-radius: 4px;
     border-radius: 4px;
     border: 1px solid #ccc;   /* Zarter grauer Rahmen */
     border: 1px solid #ccc;
     color: #333;              /* Dunkle Schrift für gute Lesbarkeit */
     color: #333;
    font-family: 'Segoe UI', Tahoma, sans-serif;
     max-width: 1100px;
     max-width: 1100px;
     margin: 1em 0;
     margin: 1em 0;
     box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Sehr weicher Schatten */
     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;
}
}


Zeile 23: Zeile 64:
     flex-direction: column;
     flex-direction: column;
     gap: 15px;
     gap: 15px;
    z-index: 2; /* Liegt über der Deko */
}
}


/* Bild-Container */
.cc-image-box {
.cc-image-box {
     border: none;
     border: none;
Zeile 31: Zeile 72:
     overflow: hidden;
     overflow: hidden;
     line-height: 0;
     line-height: 0;
     background: #eee; /* Platzhalter-Grau falls Bild lädt */
     background: #eee;
     box-shadow: 0 2px 5px rgba(0,0,0,0.15);
     box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
}
Zeile 41: Zeile 82:
}
}


/* Namens-Schild (Heller Kasten) */
.cc-name-badge {
.cc-name-badge {
     background: #f0f0f0; /* Helles Grau */
     background: #f4f4f4;
     border: 1px solid #dcdcdc;
     border: 1px solid #ddd;
     border-radius: 4px;
     border-radius: 4px;
     padding: 15px;
     padding: 15px;
Zeile 51: Zeile 91:


.cc-name {
.cc-name {
     font-size: 1.6em;
     font-size: 1.6em !important; /* Priorität für Größe */
     font-weight: 800;
     font-weight: 800 !important;
     color: #222;         /* Fast Schwarz */
     color: #222;
     text-transform: uppercase;
     text-transform: uppercase;
     letter-spacing: 1px;
     letter-spacing: 1px;
Zeile 61: Zeile 101:


.cc-subtitle {
.cc-subtitle {
     font-size: 0.9em;
     font-size: 0.9em !important;
     color: #666;         /* Mittelgrau */
     color: #666;
     font-style: italic;
     font-style: italic;
     border-top: 1px solid #ccc;
     border-top: 1px solid #ccc;
Zeile 75: Zeile 115:
     flex-direction: column;
     flex-direction: column;
     gap: 8px;
     gap: 8px;
    z-index: 2; /* Liegt über der Deko */
}
}


/* Daten-Riegel (Helles Design) */
.cc-data-row {
.cc-data-row {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     background: #fff;     /* Weißer Hintergrund */
     background: #fff;
     border: 1px solid #ddd;
     border: 1px solid #ddd;
     border-radius: 4px;
     border-radius: 4px;
Zeile 90: Zeile 130:
.cc-label {
.cc-label {
     flex: 0 0 140px;
     flex: 0 0 140px;
     background: #eef2f5; /* Sehr helles Blau-Grau für Labels */
     background: #eef2f5;
     color: #555;         /* Dunkelgraue Schrift */
     color: #555;
     font-weight: 700;
     font-weight: 700 !important;
     text-transform: uppercase;
     text-transform: uppercase;
     font-size: 0.8em;
     font-size: 0.8em !important;
     padding: 8px 15px;
     padding: 8px 15px;
     display: flex;
     display: flex;
Zeile 104: Zeile 144:
.cc-value {
.cc-value {
     padding: 8px 15px;
     padding: 8px 15px;
     font-weight: 600;
     font-weight: 600 !important;
     color: #000;         /* Schwarz für den Wert */
     color: #000;
     flex: 1;
     flex: 1;
     font-size: 0.95em;
     font-size: 0.95em !important;
}
}


Zeile 114: Zeile 154:
     margin-top: 25px;
     margin-top: 25px;
     margin-bottom: 10px;
     margin-bottom: 10px;
     font-size: 1.1em;
     font-size: 1.1em !important;
     font-weight: 700;
     font-weight: 700 !important;
     color: #b8860b;       /* Dunkles Gold/Bronze (gut lesbar auf Weiß) */
     color: #b8860b; /* Bronze */
     border-bottom: 1px dashed #bbb;
     border-bottom: 1px dashed #bbb;
     padding-bottom: 5px;
     padding-bottom: 5px;
Zeile 123: Zeile 163:
}
}


/* Text-Block (Papier-Stil) */
.cc-text {
.cc-text {
     line-height: 1.6;
     line-height: 1.6;
     color: #333;
     color: #333;
     background: #f9f9f9; /* Minimal abgedunkeltes Weiß */
     background: #f9f9f9;
     padding: 15px;
     padding: 15px;
     border: 1px solid #eee; /* Zarter Rand */
     border: 1px solid #eee;
     border-radius: 4px;
     border-radius: 4px;
     text-align: justify;
     text-align: justify;
Zeile 135: Zeile 174:
}
}


/* --- LINK FARBEN (Angepasst für hellen Hintergrund) --- */
/* --- LINK FARBEN --- */
 
/* Normale Links -> Dunkles Gold/Bronze */
.char-card a,
.char-card a,
.char-card a:visited,
.char-card a:visited,
.char-card a.mw-redirect {
.char-card a.mw-redirect {
     color: #b8860b !important; /* Dark Goldenrod */
     color: #b8860b !important; /* Bronze */
     text-decoration: none;
     text-decoration: none;
     font-weight: bold;
     font-weight: bold !important;
     transition: color 0.2s;
     transition: color 0.2s;
}
}


/* Hover -> Dunkelgrau/Schwarz */
.char-card a:hover {
.char-card a:hover {
     color: #000000 !important;
     color: #000000 !important;
     text-decoration: underline;
     text-decoration: underline;
     background-color: rgba(184, 134, 11, 0.1); /* Zarter Gold-Hintergrund bei Hover */
     background-color: rgba(184, 134, 11, 0.1);
}
}


/* Fehlende Seiten (Redlink) -> Standard Rot */
.char-card a.new,
.char-card a.new,
.char-card a.new:visited {
.char-card a.new:visited {
Zeile 160: Zeile 195:
}
}


/* --- MOBILE RESPONSIVE --- */
/* --- MOBILE --- */
@media (max-width: 800px) {
@media (max-width: 800px) {
     .char-card {
     .char-card {
Zeile 170: Zeile 205:
         width: 100%;
         width: 100%;
     }
     }
     .cc-label {
    /* Deko im Mobile etwas kleiner machen */
        flex: 0 0 110px;
     .char-card::after { width: 40px; height: 40px; }
        font-size: 0.75em;
    .char-card::before { width: 20px; height: 20px; }
        padding: 8px 10px;
    }
}
}

Version vom 5. Januar 2026, 14:36 Uhr

/* =================================
   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; }
}