MediaWiki:Common.css: Difference between revisions

From Heavenly Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* ---------------------------------------------
/* ---------------------------------------------
   OSRS Wiki-Inspired Global Styles & Variables
   OSRS Wiki-Inspired Background + Content Layout
--------------------------------------------- */
--------------------------------------------- */


/* 🌄 Background image + solid color */
:root {
:root {
     --body-background-image: url("/resources/assets/bg.png");
     --body-background-image: url("/resources/assets/bg.png");
     --body-background-color: #c0a886;
     --body-background-color: #c0a886;
    --content-background-color: #fdf9f3;
    --text-color: #2e2e2e;
    --link-color: #3366cc;
    --body-border: #d4c4a3;
    --body-light: #fdfaf4;
    --body-dark: #b89e74;
    --body-mid: #e0d5c3;
    --background-link-color: #4c4c4c;
}
}


/* Font + base style */
/* 🧱 Apply the background the OSRS way */
body,
body {
table,
    background-color: var(--body-background-color);
th,
    background-image: var(--body-background-image);
td,
    background-position: top left;
input,
    background-repeat: no-repeat;
select,
    background-size: 1500px 375px;
textarea {
    background-attachment: scroll;
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
     font-size: 0.95em;
     color: #2e2e2e;
     color: var(--text-color);
    margin: 0;
}
 
/* 🌫️ Optional soft gradient overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(192,168,134,0.0) 0%, rgba(192,168,134,1) 300px);
     z-index: -1;
    pointer-events: none;
}
 
/* 📄 Content & tab container (matching OSRS) */
#content,
.vector-body,
#mw-content-text {
    background-color: #fdfaf4;
    border: 1px solid #d5c2a4;
    padding: 1em;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}
 
/* 🗂️ Tabs and nav bar unified on same background */
.vector-menu-tabs-legacy,
.vector-menu-tabs-legacy li,
.vector-menu-tabs-legacy .selected {
    background-color: #fdfaf4 !important;
}
 
.vector-menu-tabs-legacy li a {
    color: #3d3d3d;
    padding: 1em 0.75em;
    font-weight: bold;
}
 
.vector-menu-tabs-legacy .selected a {
    color: #000;
}
 
/* 🧭 Sidebar section headers */
.vector-menu-portal .vector-menu-heading {
    font-weight: bold;
    color: #2e2e2e;
     background: none;
     background: none;
}
}


/* Category links */
/* 🧾 Lists with custom dot */
#catlinks {
ul {
     background: none;
     list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='13'%3E%3Ccircle cx='2.5' cy='9' r='2.5' fill='%23000'/%3E%3C/svg%3E");
    border-top: 1px solid var(--body-border);
}
     margin-top: 2em;
 
     padding-top: 0.5em;
/* 📦 Tables */
     text-align: center;
table.wikitable {
     background: #fffdf9;
     border: 1px solid #d4c4a3;
     border-collapse: collapse;
}
}


/* Inputs and forms */
.wikitable th,
input,
.wikitable td {
textarea,
     border: 1px solid #d4c4a3;
select {
     padding: 0.4em 0.6em;
     border: 1px solid #c6b28f;
     padding: 4px;
    border-radius: 2px;
}
}


input:focus,
.wikitable th {
textarea:focus,
    background-color: #eee1c9;
select:focus {
     font-weight: bold;
     outline: none;
     text-align: center;
     border-color: #a48f6f;
}
}


/* Pre/code */
/* 📎 Code blocks */
pre,
pre,
code {
code {
    background-color: #f5f2e7;
    border: 1px solid #d4c4a3;
    padding: 0.6em;
     font-family: Consolas, Monaco, monospace;
     font-family: Consolas, Monaco, monospace;
    background: #f5f2e7;
    border: 1px solid var(--body-border);
    padding: 0.6em;
     font-size: 0.9em;
     font-size: 0.9em;
     overflow: auto;
     overflow: auto;
}
/* 📚 TOC */
.toc {
    background-color: #fdfaf4;
    border: 1px solid #d4c4a3;
    padding: 0.5em 1em;
    margin-top: 1em;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}
}

Revision as of 22:01, 1 May 2025

/* ---------------------------------------------
   OSRS Wiki-Inspired Background + Content Layout
--------------------------------------------- */

/* 🌄 Background image + solid color */
:root {
    --body-background-image: url("/resources/assets/bg.png");
    --body-background-color: #c0a886;
}

/* 🧱 Apply the background the OSRS way */
body {
    background-color: var(--body-background-color);
    background-image: var(--body-background-image);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 1500px 375px;
    background-attachment: scroll;
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    color: #2e2e2e;
    margin: 0;
}

/* 🌫️ Optional soft gradient overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(192,168,134,0.0) 0%, rgba(192,168,134,1) 300px);
    z-index: -1;
    pointer-events: none;
}

/* 📄 Content & tab container (matching OSRS) */
#content,
.vector-body,
#mw-content-text {
    background-color: #fdfaf4;
    border: 1px solid #d5c2a4;
    padding: 1em;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}

/* 🗂️ Tabs and nav bar unified on same background */
.vector-menu-tabs-legacy,
.vector-menu-tabs-legacy li,
.vector-menu-tabs-legacy .selected {
    background-color: #fdfaf4 !important;
}

.vector-menu-tabs-legacy li a {
    color: #3d3d3d;
    padding: 1em 0.75em;
    font-weight: bold;
}

.vector-menu-tabs-legacy .selected a {
    color: #000;
}

/* 🧭 Sidebar section headers */
.vector-menu-portal .vector-menu-heading {
    font-weight: bold;
    color: #2e2e2e;
    background: none;
}

/* 🧾 Lists with custom dot */
ul {
    list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='13'%3E%3Ccircle cx='2.5' cy='9' r='2.5' fill='%23000'/%3E%3C/svg%3E");
}

/* 📦 Tables */
table.wikitable {
    background: #fffdf9;
    border: 1px solid #d4c4a3;
    border-collapse: collapse;
}

.wikitable th,
.wikitable td {
    border: 1px solid #d4c4a3;
    padding: 0.4em 0.6em;
}

.wikitable th {
    background-color: #eee1c9;
    font-weight: bold;
    text-align: center;
}

/* 📎 Code blocks */
pre,
code {
    background-color: #f5f2e7;
    border: 1px solid #d4c4a3;
    padding: 0.6em;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
    overflow: auto;
}

/* 📚 TOC */
.toc {
    background-color: #fdfaf4;
    border: 1px solid #d4c4a3;
    padding: 0.5em 1em;
    margin-top: 1em;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}