Jump to content

Template:Magic/styles.css

From Erindal Wiki
/* =========================================================
   ERINDAL MAGIC PAGES
   Magic-only additions to the shared WikiArticle system.
   MediaWiki 1.43 TemplateStyles-safe.
   ========================================================= */

/* Arcane record illustrations behave like compact wiki thumbnails rather
   than character portraits or full-bleed hero art. */
.wiki-record.wiki-record--magic .wiki-record__image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 230px !important;
  min-height: 230px !important;
  max-height: 230px !important;
  padding: 0.7rem !important;
  overflow: hidden !important;
  border-bottom: 1px solid var(--wiki-line, var(--ew-border));
  border-bottom: 1px solid var(--ew-component-border, var(--wiki-line));
  background-color: var(--wiki-paper, var(--ew-paper-light));
  background-color: var(--ew-component-surface, var(--wiki-paper));
  background-image: radial-gradient(
    circle at 50% 45%,
    var(--ew-component-sheen, rgba(255, 255, 255, 0.24)),
    transparent 72%
  );
}

/* MediaWiki can place one or more spans around the file link. */
.wiki-record.wiki-record--magic .wiki-record__image > span,
.wiki-record.wiki-record--magic .wiki-record__image .mw-file-description {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wiki-record.wiki-record--magic .wiki-record__image .mw-file-element,
.wiki-record.wiki-record--magic .wiki-record__image img {
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: 205px !important;
  margin: auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}