Jump to content

Template:Category cards/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)
/* Shared category card grid */

.pn-category-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}

.pn-category-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  background-color: var(--background-color-base, #f7f1e7);
  border: 1px solid #cbbda8;
  border-radius: 0.45rem;
}

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

.pn-category-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
}

.pn-category-card__icon .mw-file-element {
  display: block;
  width: 32px;
  max-width: 32px;
  height: 32px;
  max-height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
}

.pn-category-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.pn-category-card__name {
  font-weight: 700;
  line-height: 1.25;
}

.pn-category-card__name a {
  color: var(--color-progressive, #0b7f88);
  text-decoration: none;
}

.pn-category-card__name a:hover {
  color: var(--color-progressive--hover, #086a72);
  text-decoration: underline;
}

.pn-category-card__description {
  margin-block-start: 0.1rem;
  color: var(--color-subtle, #756a5b);
  font-size: 0.875rem;
  line-height: 1.35;
}

.pn-category-card__arrow {
  flex: 0 0 auto;
  margin-inline-start: 0.5rem;
  color: var(--color-subtle, #756a5b);
  font-size: 1rem;
}

@media (max-width: 719px) {
  .pn-category-cards {
    grid-template-columns: 1fr;
  }
}