Vorlage:Infobox Eishockeyspieler Modern/styles.css

Aus HuskyWiki
Version vom 20. Mai 2026, 20:20 Uhr von ChatBot (Diskussion | Beiträge) (Lato für Spielernamen im Kopf der modernen Infobox setzen)
/* [[Vorlage:Infobox Eishockeyspieler Modern]] */
.hw-player-infobox-wrap {
  box-sizing: border-box;
  float: right;
  width: 29em;
  max-width: 100%;
  margin: 0 0 1em 1.2em;
  font-size: 90%;
  clear: right;
}
.hw-player-infobox-wrap *,
.hw-player-infobox-wrap *::before,
.hw-player-infobox-wrap *::after { box-sizing: border-box; }
.hw-player-card {
  border: 1px solid #264b7f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15,27,47,.18);
  background: #fff;
  color: #20252b;
}
.hw-player-card + .hw-player-card { margin-top: 10px; }
.hw-player-hero {
  position: relative;
  min-height: 120px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(142,189,250,.25), transparent 26%),
    radial-gradient(circle at 72% 16%, rgba(255,255,255,.12), transparent 22%),
    linear-gradient(180deg,#0f2446 0%, #1b4b84 30%, #2c6cb0 55%, #1c4e8b 78%, #102744 100%);
}
.hw-player-name {
  padding: 26px 16px 58px;
  text-align: center;
  font-family: Lato, Arial, Helvetica, sans-serif;
  font-size: 170%;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .03em;
}
.hw-player-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 14px;
  background: linear-gradient(180deg, transparent 0, transparent 18%, #d7494d 18%, #d7494d 48%, #f3f7fb 48%, #f3f7fb 74%, transparent 74%, transparent 100%);
}
.hw-player-hof {
  background: #183864;
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hw-player-photo {
  margin: 12px;
  border: 1px solid #183864;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  padding: 8px;
  overflow: hidden;
}
.hw-player-photo img {
  max-width: 100% !important;
  height: auto !important;
}
.hw-player-source {
  font-size: 85%;
  color: #0f2446;
  margin-top: 4px;
}
.hw-player-info { padding: 0 12px 12px; }
.hw-player-info > p,
.hw-player-season-grid > p {
  display: none;
  margin: 0;
}
.hw-player-row {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e0e7ef;
  padding: 6px 0;
}
.hw-player-label {
  flex: 0 0 42%;
  color: #183864;
  font-weight: bold;
}
.hw-player-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hw-player-section-title,
.hw-player-card-title {
  background: #183864;
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 10px;
  border-bottom: 3px solid #d7494d;
}
.hw-player-section-title { margin-top: 12px; }
.hw-player-season-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 10px;
}
.hw-player-season-head,
.hw-player-season-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr .65fr .7fr;
  align-items: center;
  text-align: center;
}
.hw-player-season-head > div {
  background: #e8f1f9;
  color: #0f2446;
  padding: 5px;
  font-weight: bold;
  border-top: 1px solid #c8d7e6;
}
.hw-player-season-head > div:first-child { border-top-left-radius: 10px; }
.hw-player-season-head > div:last-child { border-top-right-radius: 10px; }
.hw-player-season-row > div {
  padding: 5px;
  border-top: 1px solid #e0e7ef;
  background: #fff;
}
.hw-player-season-row:nth-of-type(odd) > div { background: #f7f9fb; }
.hw-player-season-total > div {
  background: #e8f1f9 !important;
  color: #0f2446;
  font-weight: bold;
  border-top: 1px solid #c8d7e6;
}
.hw-player-season-total > div:first-child { border-bottom-left-radius: 10px; }
.hw-player-season-total > div:last-child { border-bottom-right-radius: 10px; }
@media screen and (max-width: 720px) {
  .hw-player-infobox-wrap {
    float: none;
    clear: both;
    width: auto;
    max-width: 100%;
    margin: 0 0 1em 0;
    font-size: 88%;
  }
  .hw-player-card { border-radius: 12px; box-shadow: none; }
  .hw-player-name { font-size: 145%; padding-left: 12px; padding-right: 12px; }
  .hw-player-photo { margin: 10px; }
  .hw-player-info { padding: 0 10px 10px; }
  .hw-player-row {
    display: grid;
    grid-template-columns: minmax(8.5em, 42%) minmax(0, 1fr);
    gap: 8px;
  }
  .hw-player-label { min-width: 0; }
  .hw-player-season-grid { overflow-x: auto; }
  .hw-player-season-head,
  .hw-player-season-row {
    min-width: 24em;
    grid-template-columns: 1.05fr .95fr .55fr .7fr;
  }
}
@media screen and (max-width: 360px) {
  .hw-player-row { grid-template-columns: 1fr; gap: 2px; }
  .hw-player-value { padding-left: 0; }
  .hw-player-season-head,
  .hw-player-season-row { min-width: 22em; font-size: 92%; }
}