Jump to content

Template:Magic/styles.css: Difference between revisions

From Erindal Wiki
Content deleted Content added
 
No edit summary
 
Line 6: Line 6:


/* Arcane record illustrations behave like compact wiki thumbnails rather
/* Arcane record illustrations behave like compact wiki thumbnails rather
than character portraits or full-bleed hero art. Keep the complete image
than character portraits or full-bleed hero art. */
visible while preserving MediaWiki's normal file link. */
.wiki-record.wiki-record--magic .wiki-record__image {
.wiki-record.wiki-record--magic .wiki-record__image {
display: flex !important;
display: flex !important;
Line 20: Line 19:
overflow: hidden !important;
overflow: hidden !important;
border-bottom: 1px solid var(--wiki-line, var(--ew-border));
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(--wiki-paper, var(--ew-paper-light));
background-image: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.24), transparent 72%);
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%
);
}
}



Latest revision as of 23:43, 29 August 2026

/* =========================================================
   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;
}