Template:Infobox character player/sandbox/styles.css

From Dune: Awakening Community Wiki
Jump to navigation Jump to search
/* === Infobox Character Styles (hard‐coded colors) === */
.infobox-character {
  /* Entire box: light gray background, medium-weight border, subtle shadow */
  border: 1px solid;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: sans-serif;
  width: 280px;
  margin: 0.5em 0 0 1em;  /* float-right margin (can be overridden by inline style) */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.infobox-character th,
.infobox-character td {
  padding: 6px 8px;
  vertical-align: top;
}

.infobox-character th {
  /*  Row labels: slightly darker text on transparent background */
  text-align: left;
  font-weight: bold;
  background-color: transparent;
  border: none;
}

.infobox-character tr:not(:first-child) {
  /*  Light horizontal separator between rows */
  border-top: 1px solid;
}

.infobox-character .infobox-header-row th {
  /*  Header (name) row: dark charcoal background, white text */
  text-align: center;
  font-size: 1.1em;
  padding: 4px 2px;
}

.infobox-character .infobox-image-row td {
  /*  Image row: same light gray background and slightly smaller padding */
  padding: 4px;
  text-align: center;
}

.infobox-character .infobox-image-row pre {
  padding: 0;
  margin: 0;
}

.infobox-character img {
  /*  Prevent the portrait from overflowing, add subtle rounding */
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Optional: row hover highlight (uncomment to enable) */
/*
.infobox-character tr:hover td {
  background-color: rgba(0,0,0,0.02);
}
*/
/* === End Infobox Character Styles === */