MediaWiki:Common.css
Appearance
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 */ /* ------------------------------------------------------------------- */ /* --- CUSTOM FONT DEFINITIONS (Keeping your existing + adding D&D) -- */ /* ------------------------------------------------------------------- */ /* Existing Fonts */ @font-face { font-family: "Andada"; src: url("https://www.bonemarch.org/fonts/AndadaPro-Italic-VariableFont_wght.ttf") format("truetype"); } @font-face { font-family: "Andada SC"; src: url("https://www.bonemarch.org/fonts/AndadaPro-VariableFont_wght.ttf") format("truetype"); } @font-face { font-family: "Cormorant-Regular"; src: url("https://www.bonemarch.org/fonts/Cormorant-Regular.ttf") format("truetype"); } @font-face { font-family: "CasablancaAntique"; src: url("https://www.bonemarch.org/fonts/CasablancaAntique.ttf") format("truetype"); } @font-face { font-family: "Century Schoolbook"; src: url("https://www.bonemarch.org/fonts/CENSCBK.TTF") format("truetype"); } /* --- D&D 5e Stat Block Fonts (Community Clones) --- */ /* 1. Body Text (Bookmania / Bookinsanity) */ @font-face { font-family: "Bookinsanity"; src: url("https://www.bonemarch.org/fonts/Bookinsanity.otf") format("opentype"); } /* 2. Headings (Mrs Eaves Small Caps / Mr Eaves Small Caps) */ @font-face { font-family: "Mr Eaves Small Caps"; src: url("https://www.bonemarch.org/fonts/Mr Eaves Small Caps.otf") format("opentype"); } /* 3. Table Headers (Scala Sans Caps / Scaly Sans Caps) */ @font-face { font-family: "Scaly Sans Caps"; src: url("https://www.bonemarch.org/fonts/Scaly Sans Caps.otf") format("opentype"); } /* ------------------------------------------------------------------- */ /* --- GENERAL WIKI STYLING (Kept the same as your original) --------- */ /* ------------------------------------------------------------------- */ body { font-family: "Century Schoolbook", Georgia, serif; font-size: 1.5em; font-weight: normal; } h1 { font-family: "Century Schoolbook"; font-weight: normal; font-style: normal; font-size: 3em; font-variant: small-caps; } h2 { font-family: "CasablancaAntique", "Century Schoolbook", Georgia, serif; font-weight: normal; font-style: normal; font-size: 2.5em; font-variant: small-caps; } h3, h4, h5 { font-family: "Century Schoolbook"; font-weight: normal; font-style: normal; font-size: 2em; font-variant: small-caps; text-decoration: underline; } h6 { font-family: "Century Schoolbook", "CasablancaAntique", Arial, Helvetica, sans-serif; } .wikitable { width: 100%; box-sizing: border-box; } /* ------------------------------------------------------------------- */ /* --- WotC Statblock Styling (Final Version with all fixes) --------- */ /* ------------------------------------------------------------------- */ /* The main container for the stat block */ .wotc-statblock-bg { background-color: #FAF4E7 !important; /* Added !important to ensure background color */ border: 1px solid #583f2e; padding: 5px; box-shadow: 2px 2px 5px #888888; } /* Apply D&D 5e Body Text font to ALL elements inside the stat block */ .wotc-statblock-bg, .wotc-statblock-bg p, .wotc-statblock-bg div, .wotc-statblock-bg td, .wotc-statblock-bg span { /* Added span just in case */ font-family: "Bookinsanity", serif; font-size: 1em; } /* 1. Monster Name (The H1 inside the block) */ .wotc-statblock-bg h1 { font-family: "Mr Eaves Small Caps", serif; font-variant: normal; font-size: 30pt; /* <-- INCREASED FONT SIZE for visibility */ line-height: 1.1; margin: 0; padding: 0; } /* ... (Keep h2 and .wotc-hr the same) ... */ /* Styles the ability score table and its header row */ .wotc-ability-table { width: 100%; margin-bottom: 5px; } /* FIX: Styles the Ability Score Table Headers (STR, DEX, etc.) */ /* Made selector more specific to force color application */ .wotc-statblock-bg .wotc-ability-table th { color: #58160e !important; /* Ensures the reddish-brown color */ font-family: "Scaly Sans Caps", sans-serif !important; font-weight: bold; text-align: center; padding: 0; } /* Styles the bottom border of the ability score table */ .wotc-ability-table-bottom { border-bottom: 2px solid #58160e !important; } /* Defines the color for the ability scores and any specific text in the template */ /* Made selector more specific to force color application */ .wotc-statblock-bg .wotc-ability-color { color: #58160e !important; } /* FIX: Remove background/borders from nested tables/cells for transparency */ .wotc-statblock-bg table, .wotc-statblock-bg th, .wotc-statblock-bg td { background-color: transparent !important; border: none !important; padding: 0; margin: 0; }