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
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* =========================
   DOSSIER / AKTE – Layout
   ========================= */

.dossier {
  max-width: 980px;
  margin: 1em 0;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.55);
}

/* Header */
.dossier-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1em;
  align-items: center;
  padding: 1em 1.1em;
  background: rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.dossier-kicker {
  font-size: 0.85em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.25em;
}

.dossier-name {
  font-size: 1.9em;
  font-weight: 900;
  line-height: 1.05;
}

/* Stempel (Status) */
.dossier-stamp {
  padding: 0.45em 0.8em;
  border: 2px solid rgba(0,0,0,0.35);
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  transform: rotate(-3deg);
  background: rgba(255,255,255,0.35);
  white-space: nowrap;
}

/* Body Layout */
.dossier-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1em;
  padding: 1em 1.1em;
}

/* Linke Spalte (Bild & Tags) */
.dossier-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  display: block;
  background: rgba(0,0,0,0.02);
}

.dossier-tags {
  margin-top: 0.9em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
}

/* Tag-Design */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.28em 0.65em;
  border-radius: 999px;
  font-size: 0.92em;
  white-space: nowrap;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.12);
}

.tag a, .tag a:visited {
  color: inherit;
  text-decoration: none;
}
.tag a:hover {
  text-decoration: underline;
}

/* Tag-Farben */
.tag-guild   { background-color: rgba(70, 130, 180, 0.12); }
.tag-class   { background-color: rgba(178, 34, 34, 0.12); }
.tag-species { background-color: rgba(46, 139, 87, 0.12); }
.tag-location { background-color: rgba(138, 43, 226, 0.10); }

/* Rechte Spalte (Boxen) */
.dossier-section {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 0.95em 1em;
  background: rgba(255,255,255,0.45);
  margin-bottom: 0.9em;
}

.dossier-section-title {
  font-weight: 900;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.7em;
}

/* Daten-Gitter */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75em;
}

.field {
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 0.7em 0.8em;
  background: rgba(0,0,0,0.02);
}

.field-label {
  font-size: 0.85em;
  font-weight: 800;
  opacity: 0.7;
  margin-bottom: 0.25em;
}

.field-value {
  font-size: 1.05em;
  font-weight: 800;
}

/* Notiz-Box */
.dossier-note {
  border-left: 4px solid rgba(0,0,0,0.18);
  padding-left: 0.8em;
  line-height: 1.5;
  opacity: 0.95;
}

/* Mobile Ansicht */
@media (max-width: 760px) {
  .dossier-body {
    grid-template-columns: 1fr;
  }
  .dossier-name {
    text-align: center;
  }
  .dossier-stamp {
    justify-self: center;
  }
  .dossier-tags {
    justify-content: center;
  }
  .dossier-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SPIELER-BANNER (Horizontal)
   ========================= */

.player-banner {
  display: flex;
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%); /* Dunkler Hintergrund */
  color: #ecf0f1; /* Helle Schrift */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  margin: 1em 0;
  border-left: 6px solid #c0392b; /* Roter Akzent-Streifen links */
}

/* Bild-Bereich links */
.pb-image {
  flex: 0 0 220px; /* Feste Breite */
  position: relative;
  background: #000;
  min-height: 220px;
}

.pb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt Bereich, schneidet Ränder ab */
  display: block;
  opacity: 0.9;
}

/* Inhalt rechts */
.pb-content {
  flex: 1;
  padding: 1.2em 1.5em;
  display: flex;
  flex-direction: column;
}

/* Kopfzeile: Name & Status */
.pb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.6em;
  margin-bottom: 0.8em;
}

.pb-name {
  font-size: 2em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.pb-status {
  background: rgba(255,255,255,0.15);
  padding: 0.3em 0.8em;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

/* Infos & Tags */
.pb-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  margin-bottom: 1em;
}

.pb-tag {
  background: rgba(0,0,0,0.3);
  padding: 0.4em 0.8em;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid rgba(255,255,255,0.1);
}
.pb-tag a { color: #fff; font-weight: bold; }

/* Grid für Daten unten */
.pb-stats {
  margin-top: auto; /* Drückt Bereich nach unten */
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.5em;
  background: rgba(0,0,0,0.2);
  padding: 0.8em;
  border-radius: 6px;
}

.stat-box { display: flex; flex-direction: column; }
.stat-label { font-size: 0.7em; text-transform: uppercase; opacity: 0.6; }
.stat-value { font-size: 1.1em; font-weight: bold; }

/* Zitat / Notiz */
.pb-quote {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 1em;
  font-family: serif;
}

/* Mobile Ansicht */
@media (max-width: 700px) {
  .player-banner { flex-direction: column; }
  .pb-image { height: 250px; flex: auto; width: 100%; }
  .pb-stats { grid-template-columns: 1fr; }
}