Jump to content

MediaWiki:Common.css: Difference between revisions

From greyhawk
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* 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-face {
    font-family: "Andada";
    font-family: "Cormorant-Regular";
    src: url("https://www.bonemarch.org/fonts/AndadaPro-Italic-VariableFont_wght.ttf") format("truetype");
    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-face {
    font-family: "Andada SC";
    font-family: "Century Schoolbook";
    src: url("https://www.bonemarch.org/fonts/AndadaPro-VariableFont_wght.ttf") format("truetype");
    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-face {
     font-family: "Cormorant-Regular";
     font-family: "Bookinsanity";
     src: url("https://www.bonemarch.org/fonts/Cormorant-Regular.ttf") format("truetype");
     src: url("https://www.bonemarch.org/fonts/Bookinsanity.otf") format("opentype");
}
}


/* 2. Headings (Mrs Eaves Small Caps / Mr Eaves Small Caps) */
@font-face {
@font-face {
     font-family: "CasablancaAntique";
     font-family: "Mr Eaves Small Caps";
     src: url("https://www.bonemarch.org/fonts/CasablancaAntique.ttf") format("truetype");
     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-face {
     font-family: "Century Schoolbook";
     font-family: "Scaly Sans Caps";
     src: url("https://www.bonemarch.org/fonts/CENSCBK.TTF") format("truetype");
     src: url("https://www.bonemarch.org/fonts/Scaly Sans Caps.otf") format("opentype");
}
}
/* ------------------------------------------------------------------- */
/* --- GENERAL WIKI STYLING (Kept the same as your original) --------- */
/* ------------------------------------------------------------------- */


body {
body {
    font-family: "Century Schoolbook", Georgia, serif;
    font-family: "Century Schoolbook", Georgia, serif;
    font-size: 1.5em;
    font-size: 1.5em;
    font-weight: normal;
    font-weight: normal;
}
}


h1 {
h1 {
    font-family: "Century Schoolbook";
    font-family: "Century Schoolbook";
    font-weight: normal;
    font-weight: normal;
    font-style: normal;
    font-style: normal;
    font-size: 3em;
    font-size: 3em;
    font-variant: small-caps;
    font-variant: small-caps;
}
}


h2 {
h2 {
    font-family: "CasablancaAntique", "Century Schoolbook", Georgia, serif;
    font-family: "CasablancaAntique", "Century Schoolbook", Georgia, serif;
    font-weight: normal;
    font-weight: normal;
    font-style: normal;
    font-style: normal;
    font-size: 2.5em;
    font-size: 2.5em;
    font-variant: small-caps;
    font-variant: small-caps;
}
}


h3, h4, h5 {
h3, h4, h5 {
    font-family: "Century Schoolbook";
    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-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-style: normal;
     font-size: 2em;
     font-variant: normal;
     font-variant: small-caps;
     margin: 10px 0 5px 0;
     text-decoration: underline;
    padding: 0;
     text-decoration: none !important; /* Remove generic wiki underline */
    color: #000 !important;
    border-bottom: none !important;  
}
}


h6 {
/* Defines the style for the reddish-brown separator line */
     font-family: "Century Schoolbook", "CasablancaAntique", Arial, Helvetica, sans-serif;
.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;
}
}


.wikitable {
 
     width: 100%;
/* FIX: Remove background/borders from nested tables/cells for transparency */
     box-sizing: border-box;
.wotc-statblock-bg table,
.wotc-statblock-bg th,
.wotc-statblock-bg td {
     background-color: transparent !important;
     border: none !important;
    padding: 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;
}