MediaWiki:Common.css

From Velthuryn
Revision as of 18:49, 9 December 2025 by Velthuryn (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 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;
    line-height: 1em;
}

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