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:
/* === Top-left image background (decorative) === */
/* 1) Page background */
body {
body {
    background:
  background: #f2e8cc url('resources/assets/bg.png') no-repeat center top fixed;
        url("/resources/assets/bg.png") top left no-repeat,
  background-size: cover;
        #2e1a12; /* Solid fallback color behind rest of page */
    background-size: auto 150px; /* keep image small and top-aligned */
    background-attachment: scroll;
    color: #f0e6d2;
    font-family: 'Georgia', serif;
}
}


/* === Page content panel styling === */
/* 2) Header gradient overlay */
#content, .mw-body, .mw-body-content {
.skin-vector #mw-head {
    background-color: #fdf5e6; /* parchment-like */
  position: relative;
    color: #2d1c0b;
  overflow: hidden;
    padding: 1.5em;
    border-radius: 12px;
    margin: 2em auto;
    max-width: 1100px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}
}
 
.skin-vector #mw-head::before {
/* === Sidebar styling (like OSRS Wiki) === */
  content: "";
#mw-panel {
  position: absolute;
    background-color: #3b2b1a;
  top: 0; left: 0; right: 0; height: 250px;
    color: #f0e6d2;
  background: linear-gradient(
    to bottom,
    rgba(242,232,204,0.95) 0%,
    rgba(242,232,204,0) 100%
  );
  pointer-events: none;
  z-index: 1;
}
/* keep logo & nav above the gradient */
.skin-vector #mw-head .mw-head-logo,
.skin-vector #mw-head .vector-menu {
  position: relative;
  z-index: 2;
}
}


#mw-panel a {
/* 3) Tabs rest on same beige panel */
    color: #e0d0a0;
.vectorTabs {
  background: #f2e8cc;
  border-bottom: none;
  margin-bottom: 0;
  padding: 0 0.5em;
  border-radius: 0.5em 0.5em 0 0;
}
}
 
.vectorTabs > li > a {
#mw-panel a:hover {
  background: #d1b889;
    color: #fff3c1;
  color: #4b3923;
  border: 1px solid #c8b284;
  border-bottom: none;
  border-radius: 0.5em 0.5em 0 0;
  margin-right: -1px;
  padding: 0.5em 1em;
}
}
 
.vectorTabs > li.tabselected > a {
/* === Tabs: selected tab mimic === */
  background: #ffffff;
#p-cactions li.selected a,
  border-bottom: 1px solid #ffffff;
#ca-view a,
#ca-edit a {
    background-color: #fdf5e6;
    color: #2d1c0b;
    font-weight: bold;
    border-bottom: 3px solid #bb9d70;
    border-radius: 4px 4px 0 0;
}
}


/* === Top header shadow === */
/* 4) Content pane attaches snugly below tabs */
#mw-head {
#content,
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
#bodyContent {
  background: #ffffff;
  border: 1px solid #c8b284;
  border-radius: 0 0 0.5em 0.5em;
  padding: 1em;
  margin-top: -1px; /* pull up to touch the tabs */
}
}

Revision as of 21:26, 1 May 2025

/* 1) Page background */
body {
  background: #f2e8cc url('resources/assets/bg.png') no-repeat center top fixed;
  background-size: cover;
}

/* 2) Header gradient overlay */
.skin-vector #mw-head {
  position: relative;
  overflow: hidden;
}
.skin-vector #mw-head::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 250px;
  background: linear-gradient(
    to bottom,
    rgba(242,232,204,0.95) 0%,
    rgba(242,232,204,0) 100%
  );
  pointer-events: none;
  z-index: 1;
}
/* keep logo & nav above the gradient */
.skin-vector #mw-head .mw-head-logo,
.skin-vector #mw-head .vector-menu {
  position: relative;
  z-index: 2;
}

/* 3) Tabs rest on same beige panel */
.vectorTabs {
  background: #f2e8cc;
  border-bottom: none;
  margin-bottom: 0;
  padding: 0 0.5em;
  border-radius: 0.5em 0.5em 0 0;
}
.vectorTabs > li > a {
  background: #d1b889;
  color: #4b3923;
  border: 1px solid #c8b284;
  border-bottom: none;
  border-radius: 0.5em 0.5em 0 0;
  margin-right: -1px;
  padding: 0.5em 1em;
}
.vectorTabs > li.tabselected > a {
  background: #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* 4) Content pane attaches snugly below tabs */
#content, 
#bodyContent {
  background: #ffffff;
  border: 1px solid #c8b284;
  border-radius: 0 0 0.5em 0.5em;
  padding: 1em;
  margin-top: -1px;  /* pull up to touch the tabs */
}