Jump to content

MediaWiki:Common.css: Difference between revisions

From greyhawk
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
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 (Updated for perfect font match) ------- */
/* --- 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; /* Light parchment color */
    background-color: #FAF4E7 !important;  
    border: 1px solid #583f2e;  /* Dark brown/black border */
    border: 1px solid #583f2e;  
    padding: 5px;               /* Small internal padding */
    padding: 5px;                
    box-shadow: 2px 2px 5px #888888; /* Optional: A very subtle shadow */
    box-shadow: 2px 2px 5px #888888;  
}
}


Line 107: Line 107:
.wotc-statblock-bg p,
.wotc-statblock-bg p,
.wotc-statblock-bg div,
.wotc-statblock-bg div,
.wotc-statblock-bg td {
.wotc-statblock-bg td,
.wotc-statblock-bg span {  
     font-family: "Bookinsanity", serif;
     font-family: "Bookinsanity", serif;
     font-size: 1em; /* Ensures normal text size */
     font-size: 1em; /* Base font size */
}
}


/* 1. Monster Name (The H1 inside the block) */
/* 1. Monster Name (The H1 inside the block) */
.wotc-statblock-bg h1 {
.wotc-statblock-bg h1 {
     font-family: "Mr Eaves Small Caps", serif;
     font-family: "Mr Eaves Small Caps", serif !important;  
     font-variant: normal; /* Font file handles the small caps */
     font-variant: normal;  
     font-size: 2.5em; /* Adjusted slightly to look like the books */
     font-size: 2.5em;  
     line-height: 1.1;
     line-height: 1.1;
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
    color: #000 !important;
    border-bottom: none !important;
}
}


/* 2. Monster Type/Alignment (Often H2 inside the block) */
/* 2. Monster Type/Alignment (The H2 inside the block - now the second line) */
.wotc-statblock-bg h2 {
.wotc-statblock-bg h2 {
     font-family: "Bookinsanity", serif; /* Use a standard body font */
     font-family: "Bookinsanity", serif !important;  
     font-size: 1.1em;
     font-size: 1.1em;
     font-style: italic;
     font-style: italic;
Line 131: Line 134:
     margin: 0 0 5px 0;
     margin: 0 0 5px 0;
     padding: 0;
     padding: 0;
    color: #000 !important;
    border-bottom: none !important;
}
/* 3. Trait/Action Headers (The H3 inside the block) */
.wotc-statblock-bg h3 {
    font-family: "Scaly Sans Caps", sans-serif !important;
    font-size: 1.2em;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    margin: 10px 0 5px 0;
    padding: 0;
    text-decoration: none !important; /* Remove generic wiki underline */
    color: #000 !important;
    border-bottom: none !important;
}
}


Line 138: Line 157:
    margin: 5px 0 !important;
    margin: 5px 0 !important;
    border-radius: 2px !important;
    border-radius: 2px !important;
    /* Resetting default <hr> styles */
    border: none;
    border: none;
    height: 0;
    height: 0;
Line 149: Line 167:
}
}


/* Styles the Ability Score Table Headers (STR, DEX, etc.) */
/* FIX: Styles the Ability Score Table Headers (STR, DEX, etc.) */
.wotc-ability-table th {
.wotc-statblock-bg .wotc-ability-table th {  
    /* Apply the specific table heading font */
    color: #58160e !important;
    font-family: "Scaly Sans Caps", sans-serif !important;
    font-family: "Scaly Sans Caps", sans-serif !important;
    color: #58160e !important;
     font-weight: bold;
     font-weight: bold;
     text-align: center;
     text-align: center;
     padding: 0;
     padding: 0;
    border-bottom: none !important;
}
}


Line 165: Line 183:


/* Defines the color for the ability scores and any specific text in the template */
/* Defines the color for the ability scores and any specific text in the template */
.wotc-ability-color {
.wotc-statblock-bg .wotc-ability-color {
    color: #58160e !important;
    color: #58160e !important;
}
}




/* NEW RULE: Remove background/borders from nested tables/cells for transparency */
/* 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 194:
     background-color: transparent !important;
     background-color: transparent !important;
     border: none !important;
     border: none !important;
    /* Resetting unnecessary spacing that wikis often add */
     padding: 0;
     padding: 0;
     margin: 0;
     margin: 0;
}
}

Latest revision as of 02:42, 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 !important; 
    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 { 
    font-family: "Bookinsanity", serif;
    font-size: 1em; /* Base font size */
}

/* 1. Monster Name (The H1 inside the block) */
.wotc-statblock-bg h1 {
    font-family: "Mr Eaves Small Caps", serif !important; 
    font-variant: normal; 
    font-size: 2.5em; 
    line-height: 1.1;
    margin: 0;
    padding: 0;
    color: #000 !important; 
    border-bottom: none !important; 
}

/* 2. Monster Type/Alignment (The H2 inside the block - now the second line) */
.wotc-statblock-bg h2 {
    font-family: "Bookinsanity", serif !important; 
    font-size: 1.1em;
    font-style: italic;
    font-weight: normal;
    font-variant: normal;
    margin: 0 0 5px 0;
    padding: 0;
    color: #000 !important; 
    border-bottom: none !important; 
}

/* 3. Trait/Action Headers (The H3 inside the block) */
.wotc-statblock-bg h3 {
    font-family: "Scaly Sans Caps", sans-serif !important; 
    font-size: 1.2em;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    margin: 10px 0 5px 0;
    padding: 0;
    text-decoration: none !important; /* Remove generic wiki underline */
    color: #000 !important; 
    border-bottom: none !important; 
}

/* 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-statblock-bg .wotc-ability-table th { 
    color: #58160e !important; 
    font-family: "Scaly Sans Caps", sans-serif !important;
    font-weight: bold;
    text-align: center;
    padding: 0;
    border-bottom: none !important; 
}

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