MediaWiki:Common.css: Difference between revisions
Appearance
Adventurer (talk | contribs) mNo edit summary |
Adventurer (talk | contribs) mNo edit summary |
||
| Line 27: | Line 27: | ||
} | } | ||
/* --- D&D 5e Stat Block Fonts --- */ | /* --- D&D 5e Stat Block Fonts (Community Clones) --- */ | ||
/* 1. Body Text (Bookmania / Bookinsanity) */ | /* 1. Body Text (Bookmania / Bookinsanity) */ | ||
| Line 92: | Line 92: | ||
/* ------------------------------------------------------------------- */ | /* ------------------------------------------------------------------- */ | ||
/* --- WotC Statblock Styling ( | /* --- WotC Statblock Styling (Final Version with all fixes) --------- */ | ||
/* ------------------------------------------------------------------- */ | /* ------------------------------------------------------------------- */ | ||
/* The main container for the stat block */ | /* The main container for the stat block */ | ||
.wotc-statblock-bg { | .wotc-statblock-bg { | ||
background-color: #FAF4E7; | background-color: #FAF4E7; | ||
border: 1px solid #583f2e; | border: 1px solid #583f2e; | ||
padding: 5px; | padding: 5px; | ||
box-shadow: 2px 2px 5px #888888; | box-shadow: 2px 2px 5px #888888; | ||
} | } | ||
| Line 109: | Line 109: | ||
.wotc-statblock-bg td { | .wotc-statblock-bg td { | ||
font-family: "Bookinsanity", serif; | font-family: "Bookinsanity", serif; | ||
font-size: 1em; | font-size: 1em; | ||
} | } | ||
| Line 115: | Line 115: | ||
.wotc-statblock-bg h1 { | .wotc-statblock-bg h1 { | ||
font-family: "Mr Eaves Small Caps", serif; | font-family: "Mr Eaves Small Caps", serif; | ||
font-variant: normal; | font-variant: normal; | ||
font-size: 2.5em; | font-size: 2.5em; | ||
line-height: 1.1; | line-height: 1.1; | ||
margin: 0; | margin: 0; | ||
| Line 124: | Line 124: | ||
/* 2. Monster Type/Alignment (Often H2 inside the block) */ | /* 2. Monster Type/Alignment (Often H2 inside the block) */ | ||
.wotc-statblock-bg h2 { | .wotc-statblock-bg h2 { | ||
font-family: "Bookinsanity", serif; | font-family: "Bookinsanity", serif; | ||
font-size: 1.1em; | font-size: 1.1em; | ||
font-style: italic; | font-style: italic; | ||
| Line 138: | Line 138: | ||
margin: 5px 0 !important; | margin: 5px 0 !important; | ||
border-radius: 2px !important; | border-radius: 2px !important; | ||
border: none; | border: none; | ||
height: 0; | height: 0; | ||
| Line 149: | Line 148: | ||
} | } | ||
/* Styles the Ability Score Table Headers (STR, DEX, etc.) */ | /* FIX: Styles the Ability Score Table Headers (STR, DEX, etc.) */ | ||
.wotc-ability-table th { | .wotc-ability-table th { | ||
/* | color: #58160e !important; /* Ensures the reddish-brown color */ | ||
font-family: "Scaly Sans Caps", sans-serif !important; | font-family: "Scaly Sans Caps", sans-serif !important; | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
| Line 170: | Line 168: | ||
/* | /* FIX: Remove background/borders from nested tables/cells for transparency */ | ||
.wotc-statblock-bg table, | .wotc-statblock-bg table, | ||
.wotc-statblock-bg th, | .wotc-statblock-bg th, | ||
| Line 176: | Line 174: | ||
background-color: transparent !important; | background-color: transparent !important; | ||
border: none !important; | border: none !important; | ||
padding: 0; | padding: 0; | ||
margin: 0; | margin: 0; | ||
} | } | ||
Revision as of 02:15, 13 October 2025
/* 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;
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 {
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: 2.5em;
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;
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;
border: none;
height: 0;
}
/* 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.) */
.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 */
.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;
}