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 Background + Content Layout
   OSRS Wiki-Inspired Global Styles + Variables
--------------------------------------------- */
--------------------------------------------- */


/* 🌄 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: #fdfaf4;
    --text-color: #2e2e2e;
    --link-color: #3366cc;
    --body-border: #d4c4a3;
    --background-link-color: #3d3d3d;
}
}


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


/* 🌫️ Optional soft gradient overlay */
/* 🌫️ Gradient overlay (fade from image into solid) */
body::before {
html::before {
     content: "";
     content: "";
     position: fixed;
     position: fixed;
Line 32: Line 29:
}
}


/* 📄 Content & tab container (matching OSRS) */
/* 🧱 Base font, layout, and text */
#content,
body,
.vector-body,
table,
#mw-content-text {
th,
    background-color: #fdfaf4;
td,
    border: 1px solid #d5c2a4;
input,
    padding: 1em;
select,
    border-radius: 4px;
textarea {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
}
     font-size: 0.95em;
 
     color: var(--text-color);
/* 🗂️ 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;
    margin: 0;
}
}


Line 72: Line 49:
}
}


/* 📦 Tables */
/* 📎 Tables */
table.wikitable {
table.wikitable {
     background: #fffdf9;
     background: #fffdf9;
     border: 1px solid #d4c4a3;
     border: 1px solid var(--body-border);
     border-collapse: collapse;
     border-collapse: collapse;
}
}
Line 81: Line 58:
.wikitable th,
.wikitable th,
.wikitable td {
.wikitable td {
     border: 1px solid #d4c4a3;
     border: 1px solid var(--body-border);
     padding: 0.4em 0.6em;
     padding: 0.4em 0.6em;
}
}
Line 91: Line 68:
}
}


/* 📎 Code blocks */
/* 📦 Code blocks */
pre,
pre,
code {
code {
     background-color: #f5f2e7;
     background-color: #f5f2e7;
     border: 1px solid #d4c4a3;
     border: 1px solid var(--body-border);
     padding: 0.6em;
     padding: 0.6em;
     font-family: Consolas, Monaco, monospace;
     font-family: Consolas, Monaco, monospace;
Line 102: Line 79:
}
}


/* 📚 TOC */
/* 🧾 TOC */
.toc {
.toc {
     background-color: #fdfaf4;
     background-color: var(--content-background-color);
     border: 1px solid #d4c4a3;
     border: 1px solid var(--body-border);
     padding: 0.5em 1em;
     padding: 0.5em 1em;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-size: 0.9em;
     margin-top: 1em;
     margin-top: 1em;
     box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}
 
/* 🗃 Category links at the bottom */
#catlinks {
     background: none;
    border-top: 1px solid var(--body-border);
    margin-top: 2em;
    padding-top: 0.5em;
    text-align: center;
}
 
/* 📝 Forms and inputs */
input,
textarea,
select {
    border: 1px solid #c6b28f;
    padding: 4px;
    border-radius: 2px;
}
 
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #a48f6f;
}
}

Revision as of 22:03, 1 May 2025

/* ---------------------------------------------
   OSRS Wiki-Inspired Global Styles + Variables
--------------------------------------------- */

:root {
    --body-background-image: url("/resources/assets/bg.png");
    --body-background-color: #c0a886;
    --content-background-color: #fdfaf4;
    --text-color: #2e2e2e;
    --link-color: #3366cc;
    --body-border: #d4c4a3;
    --background-link-color: #3d3d3d;
}

/* 🎨 Page background behind everything */
html {
    background: var(--body-background-image) var(--body-background-color) top left / 1500px 375px no-repeat;
    background-attachment: scroll;
}

/* 🌫️ Gradient overlay (fade from image into solid) */
html::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;
}

/* 🧱 Base font, layout, and text */
body,
table,
th,
td,
input,
select,
textarea {
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.95em;
    color: var(--text-color);
    background: none;
    margin: 0;
}

/* 🧾 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 var(--body-border);
    border-collapse: collapse;
}

.wikitable th,
.wikitable td {
    border: 1px solid var(--body-border);
    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 var(--body-border);
    padding: 0.6em;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
    overflow: auto;
}

/* 🧾 TOC */
.toc {
    background-color: var(--content-background-color);
    border: 1px solid var(--body-border);
    padding: 0.5em 1em;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 1em;
}

/* 🗃 Category links at the bottom */
#catlinks {
    background: none;
    border-top: 1px solid var(--body-border);
    margin-top: 2em;
    padding-top: 0.5em;
    text-align: center;
}

/* 📝 Forms and inputs */
input,
textarea,
select {
    border: 1px solid #c6b28f;
    padding: 4px;
    border-radius: 2px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #a48f6f;
}