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
--------------------------------------------- */
:root {
:root {
     --body-background-image: url('resources/assets/bg.png'); /* small decorative image */
     --body-background-image: url("/resources/assets/bg.png");
     --body-background-color: #c0a886; /* solid gold-beige base color */
     --body-background-color: #c0a886;
     --content-background-color: #fdf9f3; /* article background */
     --content-background-color: #fdf9f3;
     --text-color: #2e2e2e;
     --text-color: #2e2e2e;
     --link-color: #3366cc;
     --link-color: #3366cc;
Line 12: Line 16:
}
}


/* Set small image in top-left with background color fill */
/* Font + base style */
body {
body,
    background: var(--body-background-image) var(--body-background-color) top left / 1500px 375px no-repeat;
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);
     margin: 0;
     background: none;
}
}


/* Optional: subtle fade from transparent to solid */
/* Category links */
body::before {
#catlinks {
    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 content area styling */
#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 & navigation bar */
.vector-menu-tabs-legacy {
    background-color: var(--content-background-color);
}
 
.vector-menu-tabs-legacy li {
    background: var(--content-background-color);
    box-shadow: inset 0 -7px 7px -7px rgba(0, 0, 0, 0.15);
}
 
.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 headings */
.vector-menu-portal .vector-menu-heading {
    color: var(--text-color);
    font-weight: bold;
     background: none;
     background: none;
    border-top: 1px solid var(--body-border);
    margin-top: 2em;
    padding-top: 0.5em;
    text-align: center;
}
}


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


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


/* Code blocks */
/* Pre/code */
pre,
pre,
code,
code {
.mw-code {
     font-family: Consolas, Monaco, monospace;
    background-color: #f5f2e7;
     background: #f5f2e7;
    border: 1px solid var(--body-border);
    padding: 0.5em;
     font-family: monospace;
}
 
/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}
 
a:hover {
    text-decoration: underline;
}
 
/* Table of contents */
.toc {
     background-color: var(--body-light);
     border: 1px solid var(--body-border);
     border: 1px solid var(--body-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
     padding: 0.6em;
     padding: 0.5em 1em;
     font-size: 0.9em;
}
     overflow: auto;
 
/* Remove redlink bullets */
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");
}
 
/* Hide edit section brackets */
.client-js .mw-editsection-bracket,
.mw-editsection-divider {
     display: none;
}
}

Revision as of 22:00, 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: #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 */
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;
}

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

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

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

/* Pre/code */
pre,
code {
    font-family: Consolas, Monaco, monospace;
    background: #f5f2e7;
    border: 1px solid var(--body-border);
    padding: 0.6em;
    font-size: 0.9em;
    overflow: auto;
}