User:Polymorph-Ash/vector.css
Revision as of 09:21, 19 January 2026 by Polymorph-Ash (talk | contribs)
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
:root {
--maintext: #2a160f;
--headertext: #3c3f44;
--whitetextandbg: #fffff3;
--bordercolour: #5f3529;
--smallborders: #9c8668;
--orange: 223, 156, 52;
--mainfont: Verdana, Tahoma, sans-serif;
--headerfont: Georgia, serif;
--tableheaders: #eacf98;
--tablecolour2: #f2e5c0;
--tablecolour3: #ffeabd;
--background-image: url('https://wiki.polymorph.games/found/images/0/05/Keyart02_Clean_noLogo_HD.png');
}
/*adds a layer for background transparency and blur*/
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(10, 10, 10, 0.5);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(12px);
pointer-events: none;
z-index: -1;
}
/* background layer */
body {
background-image:var(--background-image);
background-repeat:no-repeat;
background-clip:border-box;
background-attachment:fixed;
background-position:center;
background-size:cover;
}
/* parallax header effect */
.header-box {
background-image: var(--background-image);
background-position: center 75%;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
color: var(--whitetextandbg);
font-size: 150%;
font-weight: bold;
font-family: var(--headerfont);
/* bottom-left grey outline + drop shadow */
text-shadow:
/* subtle grey outline, bottom-left only */
-2px 2px 0 #000,
/* drop shadow for depth, bottom-left */
4px 4px 8px rgba(0,0,0,0.7);
border-radius: 10px;
border: 3px groove var(--bordercolour);
outline: 1px solid var(--whitetextandbg);
outline-offset: -6px;
}
/*top menu*/
#mw-head, #mw-page-base {
background:transparent;
border:none;
}
/* Top user tools bar */
#p-personal {
background-color: rgba(50, 50, 50, 0.95); /* dark modern color */
border-bottom: 1px solid #444; /* subtle separation */
box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* optional depth */
}
#p-personal ul {
margin: 0;
padding: 0.2em 0.5em;
}
#p-personal li a {
color: var(--whitetextandbg); /* text color */
padding: 0.2em 0.5em;
text-decoration: none;
transition: color 0.3s, background 0.3s;
}
#p-personal li a:hover {
color: var(--orange);
background-color: rgba(255,255,255,0.1); /* subtle highlight on hover */
border-radius: 4px;
}
#p-personal {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
border-bottom-left-radius: 4px; /* optional */
border-bottom-right-radius: 4px; /* optional */
}
/* --- Left Sidebar Container --- */
#left-navigation {
margin-left: 12em;
background-color: rgba(255, 245, 220, 0.9); /* subtle parchment effect */
border: 1px solid var(--bordercolour);
border-radius: 10px;
padding: 0.5em;
}
/* --- Sidebar Menu Headings --- */
.vector-menu-heading {
background-color: var(--tablecolour3); /* parchment header */
border-radius: 20px 20px 0 0;
border-color: var(--bordercolour);
border-style: solid;
border-width: 0.15em;
box-shadow: none !important;
}
/* --- Sidebar Links & Menu Items --- */
#left-navigation a,
#left-navigation li {
background: transparent; /* allows container gradient/color to show */
border-color: var(--bordercolour);
color: var(--maintext);
padding: 0.3em 0.5em;
display: block;
border-radius: 5px; /* optional rounded corners for individual items */
}
/* --- Sidebar Tabs (if used) --- */
.vector-menu-tabs,
.vector-menu {
background-color: rgba(var(--orange), 0.85);
border-color: var(--bordercolour);
border-radius: 20px 20px 0 0;
color: var(--whitetextandbg);
}
/* --- Dropdown / Submenu Styling --- */
.vector-menu-dropdown,
.vector-menu-dropdown a,
.vector-menu-dropdown li {
background: transparent;
border: none;
color: var(--maintext);
}
/* --- Selected / Active Menu Item --- */
#p-tb-label.vector-menu-heading {
border-radius: 10px;
padding: 4px;
border-left: 4px solid rgba(var(--orange), 0.85);
background: transparent;
background-image: linear-gradient(to right, rgba(var(--orange), 0.85), rgba(var(--orange), 0.85), transparent);
color: var(--whitetextandbg);
font-weight: bold;
}
/* --- Left Sidebar with Parchment Gradient --- */
#left-navigation {
margin-left: 12em;
background: linear-gradient(
to bottom,
rgba(255, 250, 230, 0.95), /* light parchment at top */
rgba(245, 230, 200, 0.95) /* slightly warmer parchment at bottom */
);
border: 1px solid var(--bordercolour);
border-radius: 12px;
padding: 0.5em;
box-shadow: inset 0 0 5px rgba(0,0,0,0.1); /* soft inner shadow for depth */
}
/* Optional: smooth hover effect for menu items */
#left-navigation a,
#left-navigation li {
transition: background 0.3s, color 0.3s;
}
#left-navigation a:hover,
#left-navigation li:hover {
background-color: rgba(255, 245, 210, 0.5); /* soft highlight on hover */
color: var(--maintext);
border-radius: 5px;
}
/*main body*/
#content.mw-body {
background-color:rgba(255, 234, 189, 0.97);
box-shadow: inset 0 0 10vw 1.5vw #d4b57e;
border-color:var(--bordercolour);
border-radius:10px;
border-style:solid;
border-width:0.05em;
margin-right:0.5%;
}
.mainpage-buttons ul li {
background-color:var(--tableheaders);
box-shadow: inset -0.05vw -0.05vw 0.1vw 0.1vw #d4b57e;
border-color:var(--bordercolour);
border-radius:5px;
}