MediaWiki:Common.css: Difference between revisions

From Heavenly Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
}
}


/* Solid background color for base */
/* 🌄 Apply top-left background image and base color */
html {
html {
     background-color: var(--body-background-color);
     background-color: var(--body-background-color);
}
}


/* Top-left background image */
/* 📸 Top-left image as fixed overlay */
body::before {
html::before {
     content: "";
     content: "";
     position: fixed;
     position: fixed;
Line 31: Line 31:
}
}


/* Smooth gradient fade from image to solid */
/* 🌫️ Gradient fade layer */
body::after {
html::after {
     content: "";
     content: "";
     position: fixed;
     position: fixed;
Line 41: Line 41:
}
}


/* Remove unwanted margin/padding that pushes content down */
/* Reset margin and font */
body {
body {
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
}
/* Optional: hide page base shadows (like OSRS) */
#mw-page-base,
#mw-head-base {
    display: none;
}
/* Font + text baseline */
body,
table,
th,
td,
input,
select,
textarea {
     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: var(--text-color);
     color: var(--text-color);
     background: none;
     background: none;
}
}


/* Lists with styled bullet */
/* Code styling */
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");
}
 
/* Code blocks */
pre,
pre,
code {
code {
Line 83: Line 61:
}
}


/* TOC styling */
/* TOC */
.toc {
.toc {
     background-color: var(--content-background-color);
     background-color: var(--content-background-color);
Line 103: Line 81:
}
}


/* Inputs */
/* Input styling */
input,
input,
textarea,
textarea,
Line 117: Line 95:
     outline: none;
     outline: none;
     border-color: #a48f6f;
     border-color: #a48f6f;
}
/* Lists with OSRS-style 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");
}
}

Revision as of 22:07, 1 May 2025

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

: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;
}

/* 🌄 Apply top-left background image and base color */
html {
    background-color: var(--body-background-color);
}

/* 📸 Top-left image as fixed overlay */
html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 375px;
    width: 1500px;
    background: var(--body-background-image) no-repeat top left;
    background-size: 1500px 375px;
    z-index: -2;
}

/* 🌫️ Gradient fade layer */
html::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(192,168,134,0.0), rgba(192,168,134,1) 300px);
    z-index: -1;
    pointer-events: none;
}

/* Reset margin and font */
body {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    color: var(--text-color);
    background: none;
}

/* Code styling */
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;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 1em;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

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

/* Input styling */
input,
textarea,
select {
    border: 1px solid #c6b28f;
    padding: 4px;
    border-radius: 2px;
}

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

/* Lists with OSRS-style 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");
}