MediaWiki:Common.css: Difference between revisions

From Velthuryn
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 276: Line 276:




/* For ADversary Card */
/* For Adversary Card */
/* ===============================
/* ===============================
   Velthuryn Adversary Card
   Velthuryn Adversary Card
Line 284: Line 284:
   position: relative;
   position: relative;
   width: 400px;
   width: 400px;
   height: 500px;
   min-height: 500px;
   margin: 10px;
   margin: 10px;
   float: inline-start;
   float: inline-start;
   padding: 1rem;
   padding: 1rem;
  height: 500px;
   background: var(--vh-bg, #ffffff);
   background: var(--vh-bg, #ffffff);
   border: 1px solid var(--vh-border, #e5e7eb);
   border: 1px solid var(--vh-border, #e5e7eb);

Latest revision as of 14:32, 14 January 2026

/* CSS placed here will be applied to all skins */
/* Load Velthuryn fonts – free from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Source+Sans+3:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/*
#page-tools, #p-views > div, #n-specialpages:not(.logged-in) {
	display: none;
}
*/
#mw-footer-container {
	background-color: #fbfaf6;
	color: #536537;
}


/* ===========================
   CAMPAIGN FRAME WRAPPER
   =========================== */

.mw-parser-output .vh-campaign-frame {
    max-width: 960px;
    margin: 2rem auto;
    padding: 2.5rem 3rem;
    background: #f6f0de;
    background-image:
        radial-gradient(circle at top left, rgba(255,255,255,0.4), transparent 60%),
        radial-gradient(circle at bottom right, rgba(0,0,0,0.08), transparent 70%);
    border: 1px solid #c5b48a;
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
    font-family: "Cormorant", "Georgia", serif;
    line-height: 1.4;
    /* Make sure wiki defaults do not override colors */
    color: #222222 !important;
}

/* Darken all text inside the frame (paragraphs, lists, etc.) */
.mw-parser-output .vh-campaign-frame p,
.mw-parser-output .vh-campaign-frame li,
.mw-parser-output .vh-campaign-frame td,
.mw-parser-output .vh-campaign-frame th,
.mw-parser-output .vh-campaign-frame span,
.mw-parser-output .vh-campaign-frame small {
    color: #222222 !important;
}

/* Headings inside the frame use the same serif family */
.mw-parser-output .vh-campaign-frame h1,
.mw-parser-output .vh-campaign-frame h2,
.mw-parser-output .vh-campaign-frame h3,
.mw-parser-output .vh-campaign-frame h4 {
    font-family: "Cormorant", "Georgia", serif;
    color: #1f140b;
}

.mw-parser-output .vh-campaign-frame h4:before {
	content: '■ ';
	position: relative;
	bottom: 0.1em;
	color: #7a3a20;
}
/* ===========================
   HEADER / TITLE AREA
   =========================== */

.mw-parser-output .vh-cf-header {
    padding: 0;
    margin: 0 0 0.1em 0;
    font: inherit;
    vertical-align: baseline;
    border: 0;
    box-sizing: border-box;
    text-transform: uppercase;
    font-style: normal;
    font-family: 'evelethclean_thin', sans-serif;
    font-weight: 300;
    font-size: 3.1em;
    letter-spacing: 0.25px;
    scroll-margin-top: 100px;
    color: #000;
    display: block;
}

/* If you are using a separate title element */
.mw-parser-output .vh-cf-title {
    font-size: 2.8rem;
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mw-parser-output .vh-cf-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 0.25rem;
}

.mw-parser-output .vh-cf-meta {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4a3923; /* darker than the earlier light gray/brown */
}

/* Hook / pitch callout under the title */
.mw-parser-output .vh-cf-hook {
    margin: 1rem 0 1.5rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid #b36b2a;
    background: rgba(255,255,255,0.35);
    font-style: italic;
    font-size: 1.2rem;
    color: #22150d;
}

.mw-parser-output .vh-cf-italics {
    font-style: italic;
}

/* ===========================
   TWO-COLUMN LAYOUT
   =========================== */

/* Main body uses flexbox for a reliable two-column layout */
.mw-parser-output .vh-cf-body {
    display: flex !important;
    flex-wrap: wrap;            /* Allows stacking on narrow screens */
    gap: 2rem;
    align-items: flex-start;
}

/*
   Each column should be equally sized.
   flex: 1 1 0 ensures they share space evenly.
*/
.mw-parser-output .vh-cf-col {
    flex: 1 1 0 !important;
    min-width: 0;
    width: 50% !important;      /* Extra insurance against other width rules */
}

/* If you still want optional variants, keep them but equalize flex */
.mw-parser-output .vh-cf-col-left {
    flex: 1 1 0 !important;
}

.mw-parser-output .vh-cf-col-right {
    flex: 1 1 0 !important;
}

/* Responsive: collapse to single column on small screens */
@media (max-width: 900px) {
    .mw-parser-output .vh-cf-body {
        flex-direction: column;
    }

    .mw-parser-output .vh-cf-col,
    .mw-parser-output .vh-cf-col-left,
    .mw-parser-output .vh-cf-col-right {
        width: 100% !important;
    }
}

/* ===========================
   BODY TEXT & HEADINGS
   =========================== */
.mw-heading {
	margin-top: 0.25rem;
}
.mw-parser-output .vh-cf-text {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

/* Section headings (like Homebrewery chapter headers) */
.mw-parser-output .vh-campaign-frame h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    border-bottom: 1px solid #c5b48a;
    padding-bottom: 0.15rem;
    color: #2b170c;
}

/* Subheadings */
.mw-parser-output .vh-campaign-frame h3 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #3b2613;
}

/* Dropcap for first paragraph of a section */
.mw-parser-output .vh-cf-dropcap:first-letter {
    float: left;
    font-size: 3.2rem;
    line-height: 0.8;
    padding-right: 0.2em;
    padding-top: 0.08em;
    font-weight: 600;
    color: #7a3a20;
}

/* ===========================
   CALLOUT BOXES
   =========================== */

.mw-parser-output .vh-cf-callout {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #b89b64;
    background: rgba(255,255,255,0.6);
    box-shadow: inset 0 0 4px rgba(0,0,0,0.08);
    font-size: 0.95rem;
    color: #222222;
}

.mw-parser-output .vh-cf-callout-title {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid #d3c39c;
    padding-bottom: 0.1rem;
    color: #3b2613;
}

/* Warning / danger callout variant */
.mw-parser-output .vh-cf-callout.warning {
    border-color: #b0543a;
    background: rgba(255,240,230,0.7);
}

/* ===========================
   TWEAK SOME WIKI DEFAULTS INSIDE FRAME
   =========================== */

/* Make sure lists sit nicely in the parchment layout */
.mw-parser-output .vh-campaign-frame ul,
.mw-parser-output .vh-campaign-frame ol {
    margin-top: 0.3rem;
    margin-bottom: 0.9rem;
}

/* Remove extra padding from tables inside the frame if you use them */
.mw-parser-output .vh-campaign-frame table {
    border-collapse: collapse;
}

.mw-parser-output .vh-campaign-frame th,
.mw-parser-output .vh-campaign-frame td {
    padding: 0.2rem 0.4rem;
    border: none;
}

/* Optional: slightly tighten line height in headings */
.mw-parser-output .vh-campaign-frame h2,
.mw-parser-output .vh-campaign-frame h3 {
    line-height: 1.1;
}
.vh-cf-multicol {
	column-count: 2;
	column-gap: 10px;
}
.mw-heading .vh-campaign-frame h1,
.mw-heading .vh-campaign-frame h2,
.mw-heading .vh-campaign-frame h3,
.mw-heading .vh-campaign-frame h4 {
	margin-top: 0.25rem !important;
}


/* For Adversary Card */
/* ===============================
   Velthuryn Adversary Card
   =============================== */

.vh-card.adversary-card {
  position: relative;
  width: 400px;
  min-height: 500px;
  margin: 10px;
  float: inline-start;
  padding: 1rem;
  background: var(--vh-bg, #ffffff);
  border: 1px solid var(--vh-border, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.12);
  color: var(--vh-fg, #111827);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Header ---------- */

.vh-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vh-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vh-card__icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.vh-card__icon-glyph {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.1rem;
  opacity: 0.8;
}

.vh-card__icon-glyph:hover {
  background: rgba(0, 0, 0, 0.06);
  opacity: 1;
}

/* ---------- Meta ---------- */

.vh-card__meta {
  margin-top: 0.5rem;
}

.vh-card__tier {
  font-family: serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
}

.vh-card__tier-num,
.vh-card__tier-type {
  margin-left: 0.35rem;
  font-weight: 800;
}

.vh-card__desc {
  margin-top: 0.15rem;
  font-style: italic;
  font-size: 0.75rem;
  color: #6b7280;
}

.vh-card__motives {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #374151;
}

.vh-card__motives strong {
  color: #111827;
  font-weight: 800;
}

/* ---------- Stats Band ---------- */

.vh-card__stats {
  margin-top: 0.5rem;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem;
}

.vh-card__stats-row {
  padding: 0 0.75rem;
  font-size: 0.75rem;
  color: #374151;
}

.vh-card__stats p {
	margin: 0.2rem;
}

.vh-card__stats-row + .vh-card__stats-row {
  margin-top: 0.25rem;
}

.vh-card__stats strong {
  font-weight: 800;
  color: #111827;
}

.vh-sep {
  display: inline-block;
  width: 1px;
  height: 0.75rem;
  margin: 0 0.6rem;
  background: #d1d5db;
  vertical-align: middle;
}

.vh-card__divider {
  margin: 0.5rem 0;
  border-bottom: 1px dotted #d1d5db;
}

/* ---------- Section Title ---------- */

.vh-card__section-title {
  margin: 1rem 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------- Features ---------- */

.vh-card__features {
  font-size: 0.75rem;
  color: #374151;
}

.vh-card__features ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vh-card__features li {
  margin-bottom: 0.4rem;
  padding-left: 1rem;
  text-indent: -1rem; /* hanging indent */
}

.vh-card__features strong {
  font-weight: 800;
  color: #111827;
}

.vh-card__features em {
  font-style: italic;
}