MediaWiki:Vector.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 Vector Skin Styling
--------------------------------------------- */
--------------------------------------------- */


:root {
/* Background image top-left with solid color fill */
     --body-background-image: url("/resources/assets/bg.png");
body {
    --body-background-color: #c0a886;
     background: var(--body-background-image) var(--body-background-color) top left / 1500px 375px no-repeat;
     --content-background-color: #fdf9f3;
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
     --text-color: #2e2e2e;
     color: var(--text-color);
     --link-color: #3366cc;
}
     --body-border: #d4c4a3;
 
     --body-light: #fdfaf4;
/* Optional subtle gradient fade */
     --body-dark: #b89e74;
body::before {
     --body-mid: #e0d5c3;
     content: "";
     --background-link-color: #4c4c4c;
     position: fixed;
     inset: 0;
     background: linear-gradient(to bottom, rgba(192,168,134,0.2), rgba(192,168,134,1) 200px);
     z-index: -1;
     pointer-events: none;
}
}


/* Font + base style */
/* Main article area */
body,
#content,
table,
.mw-body,
th,
.vector-body {
td,
    background-color: var(--content-background-color);
input,
    padding: 1em;
select,
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
textarea {
    border: 1px solid var(--body-border);
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    border-radius: 4px;
     font-size: 0.95em;
}
 
/* Headings */
.firstHeading {
     font-weight: bold;
    color: var(--text-color);
}
 
/* Tabs */
.vector-menu-tabs-legacy,
.vector-menu-tabs-legacy li {
    background: var(--content-background-color);
}
 
.vector-menu-tabs-legacy li a {
    color: var(--background-link-color);
    padding: 1em 0.75em;
     font-weight: bold;
}
 
.vector-menu-tabs-legacy .selected {
    background: var(--body-light);
}
 
.vector-menu-tabs-legacy .selected a {
     color: var(--text-color);
     color: var(--text-color);
    background: none;
}
}


/* Category links */
/* Sidebar */
#catlinks {
.vector-menu-portal .vector-menu-heading {
    font-weight: bold;
    color: var(--text-color);
     background: none;
     background: none;
    border-top: 1px solid var(--body-border);
    margin-top: 2em;
    padding-top: 0.5em;
    text-align: center;
}
}


/* Inputs and forms */
.vector-menu-portal .vector-menu-content li a {
input,
     color: var(--background-link-color);
textarea,
select {
     border: 1px solid #c6b28f;
    padding: 4px;
    border-radius: 2px;
}
}


input:focus,
/* Logo position */
textarea:focus,
#p-logo {
select:focus {
     filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
     outline: none;
     margin-top: -1.5em;
     border-color: #a48f6f;
}
}


/* Pre/code */
/* Table of contents */
pre,
.toc {
code {
     background-color: var(--body-light);
     font-family: Consolas, Monaco, monospace;
    background: #f5f2e7;
     border: 1px solid var(--body-border);
     border: 1px solid var(--body-border);
     padding: 0.6em;
     padding: 0.5em 1em;
     font-size: 0.9em;
     box-shadow: 0 2px 4px rgba(0,0,0,0.05);
     overflow: auto;
}
 
/* Remove redlink list 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:00, 1 May 2025

/* ---------------------------------------------
   OSRS Wiki-Inspired Vector Skin Styling
--------------------------------------------- */

/* Background image top-left with solid color fill */
body {
    background: var(--body-background-image) var(--body-background-color) top left / 1500px 375px no-repeat;
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    color: var(--text-color);
}

/* Optional subtle gradient fade */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(192,168,134,0.2), rgba(192,168,134,1) 200px);
    z-index: -1;
    pointer-events: none;
}

/* Main article area */
#content,
.mw-body,
.vector-body {
    background-color: var(--content-background-color);
    padding: 1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--body-border);
    border-radius: 4px;
}

/* Headings */
.firstHeading {
    font-weight: bold;
    color: var(--text-color);
}

/* Tabs */
.vector-menu-tabs-legacy,
.vector-menu-tabs-legacy li {
    background: var(--content-background-color);
}

.vector-menu-tabs-legacy li a {
    color: var(--background-link-color);
    padding: 1em 0.75em;
    font-weight: bold;
}

.vector-menu-tabs-legacy .selected {
    background: var(--body-light);
}

.vector-menu-tabs-legacy .selected a {
    color: var(--text-color);
}

/* Sidebar */
.vector-menu-portal .vector-menu-heading {
    font-weight: bold;
    color: var(--text-color);
    background: none;
}

.vector-menu-portal .vector-menu-content li a {
    color: var(--background-link-color);
}

/* Logo position */
#p-logo {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
    margin-top: -1.5em;
}

/* Table of contents */
.toc {
    background-color: var(--body-light);
    border: 1px solid var(--body-border);
    padding: 0.5em 1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Remove redlink list 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");
}