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:
/* Base background image setup */
/* Define color and background image */
:root {
    --body-background-color: #f5eddd;
    --body-background-image: url("/resources/assets/bg.png");
    --content-background-color: #fdf9f3;
    --text-color: #2a2a2a;
}
 
/* Set the base background with image + color */
body {
body {
     --body-background-image: url("/resources/assets/bg.png");
     background: var(--body-background-image) var(--body-background-color) top center / cover no-repeat;
    background-size: cover;
     background-attachment: fixed;
     background-attachment: fixed;
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    color: var(--text-color);
}
}


/* Soft fade gradient overlay (tapered exposure of the background image) */
/* Soft gradient overlay for image taper */
body::before {
body::before {
     content: '';
     content: "";
     position: fixed;
     position: fixed;
     top: 0;
     inset: 0;
     left: 0;
     z-index: -1;
    width: 100%;
     pointer-events: none;
     height: 100%;
     background: linear-gradient(
     background: linear-gradient(
         to bottom,
         to bottom,
         rgba(245, 237, 221, 0.9) 0%,
         rgba(245, 237, 221, 0.95) 0%,
         rgba(245, 237, 221, 0.96) 15%,
         rgba(245, 237, 221, 0.98) 30%,
         rgba(245, 237, 221, 0.98) 40%,
         rgba(245, 237, 221, 1) 70%,
         rgba(245, 237, 221, 1) 70%
         rgba(245, 237, 221, 1) 100%
     );
     );
    z-index: -1;
    pointer-events: none;
}
}


/* Optional vignette effect to darken corners subtly */
/* Optional vignette effect (fade to dark corners) */
body::after {
body::after {
     content: '';
     content: "";
     position: fixed;
     position: fixed;
     top: 0;
     inset: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.15) 100%);
     z-index: -2;
     z-index: -2;
     pointer-events: none;
     pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.15) 100%);
}
}


/* Match OSRS Wiki-style solid content area */
/* Unified content background box */
.vector-body,
#content,
#content,
#mw-content-text,
.mw-body,
.mw-body,
#mw-head-base {
.vector-body {
     background-color: #f5eddd;
     background-color: var(--content-background-color);
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
     box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
     padding: 1em;
     padding: 1em;
}
}


/* Ensure top navigation and tabs blend into same panel */
/* Tabs and navigation bar matching content box */
.vector-menu-tabs,
.vector-menu-tabs,
.vector-menu-tabs ul,
.vector-menu-tabs li,
.vector-menu-tabs li,
.vector-menu-tabs li a {
.vector-menu-tabs li a,
     background-color: #f5eddd !important;
.vector-menu-tabs .selected,
.vector-menu-tabs .selected a {
     background-color: var(--content-background-color) !important;
    color: var(--text-color) !important;
    box-shadow: inset 0 -7px 7px -7px rgba(0, 0, 0, 0.15);
}
 
/* Adjust tab hover effect */
.vector-menu-tabs li:not(.selected):hover {
    background-color: #e8e1d5;
}
}

Revision as of 21:49, 1 May 2025

/* Define color and background image */
:root {
    --body-background-color: #f5eddd;
    --body-background-image: url("/resources/assets/bg.png");
    --content-background-color: #fdf9f3;
    --text-color: #2a2a2a;
}

/* Set the base background with image + color */
body {
    background: var(--body-background-image) var(--body-background-color) top center / cover no-repeat;
    background-attachment: fixed;
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    color: var(--text-color);
}

/* Soft gradient overlay for image taper */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(245, 237, 221, 0.95) 0%,
        rgba(245, 237, 221, 0.98) 30%,
        rgba(245, 237, 221, 1) 70%,
        rgba(245, 237, 221, 1) 100%
    );
}

/* Optional vignette effect (fade to dark corners) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.15) 100%);
}

/* Unified content background box */
#content,
.mw-body,
.vector-body {
    background-color: var(--content-background-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    padding: 1em;
}

/* Tabs and navigation bar matching content box */
.vector-menu-tabs,
.vector-menu-tabs li,
.vector-menu-tabs li a,
.vector-menu-tabs .selected,
.vector-menu-tabs .selected a {
    background-color: var(--content-background-color) !important;
    color: var(--text-color) !important;
    box-shadow: inset 0 -7px 7px -7px rgba(0, 0, 0, 0.15);
}

/* Adjust tab hover effect */
.vector-menu-tabs li:not(.selected):hover {
    background-color: #e8e1d5;
}