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 --- */ /* 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 (Updated for perfect font match) ------- */ /* ------------------------------------------------------------------- */ /* The main container for the stat block */ .wotc-statblock-bg { background-color: #FAF4E7; /* Light parchment color */ border: 1px solid #583f2e; /* Dark brown/black border */ padding: 5px; /* Small internal padding */ box-shadow: 2px 2px 5px #888888; /* Optional: A very subtle shadow */ } /* 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 { font-family: "Bookinsanity", serif; font-size: 1em; /* Ensures normal text size */ } /* 1. Monster Name (The H1 inside the block) */ .wotc-statblock-bg h1 { font-family: "Mr Eaves Small Caps", serif; font-variant: normal; /* Font file handles the small caps */ font-size: 2.5em; /* Adjusted slightly to look like the books */ line-height: 1.1; margin: 0; padding: 0; } /* 2. Monster Type/Alignment (Often H2 inside the block) */ .wotc-statblock-bg h2 { font-family: "Bookinsanity", serif; /* Use a standard body font */ font-size: 1.1em; font-style: italic; font-weight: normal; font-variant: normal; margin: 0 0 5px 0; padding: 0; } /* Defines the style for the reddish-brown separator line */ .wotc-hr { border-top: 2px solid #58160e !important; margin: 5px 0 !important; border-radius: 2px !important; /* Resetting default <hr> styles */ border: none; height: 0; } /* Styles the ability score table and its header row */ .wotc-ability-table { width: 100%; margin-bottom: 5px; } /* Styles the Ability Score Table Headers (STR, DEX, etc.) */ .wotc-ability-table th { /* Apply the specific table heading font */ font-family: "Scaly Sans Caps", sans-serif !important; color: #58160e !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 */ .wotc-ability-color { color: #58160e !important; } /* NEW RULE: 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; /* Resetting unnecessary spacing that wikis often add */ padding: 0; margin: 0; }