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:
/* Define color and background image */
:root {
:root {
  --body-main:           #e2dbc8;
    --body-background-color: #f5eddd;
  --body-light:          #d8ccb4;
    --body-background-image: url("resources/assets/bg.png");
  --body-mid:           #d0bd97;    /* needed by your .vectorTabs > li > a */
    --content-background-color: #fdf9f3;
  --body-border:        #94866d;    /* needed by your borders */
    --text-color: #2a2a2a;
  --background-link-color: #52351e; /* needed for your tab text color */
  --ooui-normal-border: #b8a282;
}
}


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


#mw-head {
/* Soft gradient overlay for image taper */
  position: relative;
body::before {
  overflow: hidden;
    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%
    );
}
}
#mw-head::before {
 
  content: "";
/* Optional vignette effect (fade to dark corners) */
  position: absolute;
body::after {
  top: 0; left: 0; right: 0; height: 250px;
    content: "";
  background: linear-gradient(
    position: fixed;
    to bottom,
    inset: 0;
    rgba(226,219,200,0.95) 0%,
    z-index: -2;
    rgba(226,219,200,0)   100%
    pointer-events: none;
  );
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
}
}
#mw-head .mw-head-logo,
 
#mw-head .vector-menu {
/* Unified content background box */
  position: relative;
#content,
  z-index: 2;
.mw-body,
.vector-body {
    background-color: var(--content-background-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    padding: 1em;
}
}


.vectorTabs {
/* Tabs and navigation bar matching content box */
  background: var(--body-main);
.vector-menu-tabs,
  border-bottom: none;
.vector-menu-tabs li,
  margin-bottom: 0;
.vector-menu-tabs li a,
  padding: 0 0.5em;
.vector-menu-tabs .selected,
  border-radius: 0.5em 0.5em 0 0;
.vector-menu-tabs .selected a {
}
    background-color: var(--content-background-color) !important;
.vectorTabs > li > a {
    color: var(--text-color) !important;
  background: var(--body-mid);
    box-shadow: inset 0 -7px 7px -7px rgba(0, 0, 0, 0.15);
  color:     var(--background-link-color);
  border:   1px solid var(--body-border);
  border-bottom: none;
  border-radius: 0.5em 0.5em 0 0;
  margin-right: -1px;
  padding:      0.5em 1em;
}
.vectorTabs > li.tabselected > a {
  background: #fff;
  border-bottom: 1px solid #fff;
}
}


#content,
/* Adjust tab hover effect */
#bodyContent {
.vector-menu-tabs li:not(.selected):hover {
  background: #fff;
    background-color: #e8e1d5;
  border:    1px solid var(--body-border);
  border-radius: 0 0 0.5em 0.5em;
  padding:       1em;
  margin-top:   -1px;
}
}

Revision as of 21:50, 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;
}