Jump to content

Template:Related panel/styles.css

From PokeNexus Wiki
Revision as of 20:01, 20 October 2026 by WikiSync (talk | contribs) (Sync from repository)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* ==========================================================
   PokeNexus Wiki — Shared related-content panel
   ========================================================== */

.pn-related {
  margin-block: 1.25rem 1.5rem;

  background-color: var(--background-color-neutral-subtle, #eee6d8);

  border: 1px solid #cbbda8;
  border-radius: 0.45rem;

  overflow: hidden;
}

/* ==========================================================
   Header
   ========================================================== */

.pn-related__title {
  margin: 0;
  padding: 0.7rem 0.9rem;

  background-color: var(--background-color-neutral, #e0d6c4);

  color: var(--color-emphasized, #211d19);

  border-bottom: 1px solid #cbbda8;

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ==========================================================
   Items
   ========================================================== */

.pn-related__list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.pn-related__item {
  border-bottom: 1px solid #ddd2c1;
}

.pn-related__item:last-child {
  border-bottom: 0;
}

.pn-related__link {
  display: flex;
  align-items: center;

  gap: 0.7rem;

  padding: 0.7rem 0.9rem;

  text-decoration: none;
}

.pn-related__link:hover {
  background-color: var(--background-color-interactive-subtle, #eee6d8);

  text-decoration: none;
}

/* ==========================================================
   Optional image
   ========================================================== */

.pn-related__media {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 2rem;

  width: 2rem;
  height: 2rem;
}

.pn-related__media .mw-file-element {
  display: block;

  max-width: 100%;
  max-height: 100%;
}

/* ==========================================================
   Text
   ========================================================== */

.pn-related__content {
  flex: 1 1 auto;

  min-width: 0;
}

.pn-related__name {
  color: var(--color-progressive, #0b7f88);

  font-weight: 700;
}

.pn-related__description {
  margin-block-start: 0.1rem;

  color: var(--color-subtle, #756a5b);

  font-size: 0.875rem;
  line-height: 1.35;
}