MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
/* UI elements */ | /* UI elements */ | ||
--vector-tab-background: var(--body- | --vector-tab-background: var(--body-dark); | ||
--vector-tab-background--hover: var(--body-mid); | --vector-tab-background--hover: var(--body-mid); | ||
--search-box: rgba(0, 0, 0, 0.2); | --search-box: rgba(0, 0, 0, 0.2); | ||
Line 20: | Line 20: | ||
--toc-bg: var(--body-light); | --toc-bg: var(--body-light); | ||
--toc-title-bg: var(--body-dark); | --toc-title-bg: var(--body-dark); | ||
/* Gradients */ | |||
--header-gradient: linear-gradient(to bottom, | |||
rgba(28, 28, 28, 0.95) 0%, | |||
rgba(28, 28, 28, 0.85) 100%); | |||
--content-gradient: linear-gradient(to right, | |||
rgba(28, 28, 28, 0.7) 0%, | |||
rgba(28, 28, 28, 0.95) 20%); | |||
} | } | ||
Line 34: | Line 42: | ||
color: var(--text-color); | color: var(--text-color); | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | ||
min-height: 100%; | min-height: 100%; | ||
background-color: var(--body-background-color); | |||
} | } | ||
/* | /* Background image container */ | ||
#mw-page-base { | #mw-page-base { | ||
background | position: fixed; | ||
background- | top: 0; | ||
left: 0; | |||
right: 0; | |||
height: 375px; | |||
background: url('/resources/assets/bg.png') no-repeat; | |||
background-size: 1500px auto; | |||
z-index: -2; | |||
} | |||
/* Gradient overlay */ | |||
#mw-page-base::after { | |||
content: ''; | |||
position: absolute; | position: absolute; | ||
top: 0; | |||
left: 0; | |||
right: 0; | |||
bottom: 0; | |||
background: var(--header-gradient); | |||
z-index: -1; | z-index: -1; | ||
} | } | ||
/* Main layout structure */ | |||
#mw-head { | #mw-head { | ||
position: absolute; | position: absolute; | ||
Line 53: | Line 76: | ||
right: 0; | right: 0; | ||
width: 100%; | width: 100%; | ||
height: 2.5em; | |||
padding-top: 0.5em; | |||
background: var(--header-gradient); | |||
z-index: 1; | |||
} | } | ||
Line 58: | Line 85: | ||
float: left; | float: left; | ||
margin-left: 11em; | margin-left: 11em; | ||
} | } | ||
Line 64: | Line 90: | ||
float: right; | float: right; | ||
margin-right: 1em; | margin-right: 1em; | ||
} | } | ||
/* Content wrapper */ | |||
#content { | #content { | ||
margin-left: 11em; | margin-left: 11em; | ||
Line 74: | Line 100: | ||
border: 1px solid var(--body-dark); | border: 1px solid var(--body-dark); | ||
border-radius: 2px; | border-radius: 2px; | ||
position: relative; | |||
z-index: 0; | |||
} | } | ||
Line 82: | Line 110: | ||
width: 10em; | width: 10em; | ||
left: 0; | left: 0; | ||
padding-top: 1em; | |||
} | } | ||
Line 96: | Line 125: | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
} | } | ||
Line 114: | Line 142: | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
background: var(--body-dark); | background: var(--vector-tab-background); | ||
border: 1px solid var(--body-dark); | |||
border-bottom: none; | |||
margin-right: 0.5em; | |||
border-radius: 2px 2px 0 0; | |||
} | } | ||
Line 120: | Line 152: | ||
display: block; | display: block; | ||
height: 2.5em; | height: 2.5em; | ||
padding | padding: 0 1em; | ||
color: var(--background-link-color); | color: var(--background-link-color); | ||
cursor: pointer; | cursor: pointer; | ||
Line 130: | Line 161: | ||
.vector-menu-tabs .selected { | .vector-menu-tabs .selected { | ||
background: var(--body-main); | background: var(--body-main); | ||
border-bottom: none; | border-bottom: none; | ||
position: relative; | |||
} | |||
.vector-menu-tabs .selected::after { | |||
content: ''; | |||
position: absolute; | |||
bottom: -1px; | |||
left: 0; | |||
right: 0; | |||
height: 1px; | |||
background: var(--body-main); | |||
} | } | ||
.vector-menu-tabs .selected a { | .vector-menu-tabs .selected a { | ||
color: var(--text-color); | color: var(--text-color); | ||
} | |||
/* Views menu (Edit, History etc) */ | |||
#p-views { | |||
float: left; | |||
} | |||
#ca-edit, #ca-history, #ca-view { | |||
float: left; | |||
} | } | ||
Line 143: | Line 193: | ||
border-radius: 2px; | border-radius: 2px; | ||
padding: 0.5em; | padding: 0.5em; | ||
margin-top: | margin-top: 0; | ||
float: | float: right; | ||
width: 20em; | |||
} | } | ||
Line 151: | Line 202: | ||
border: none; | border: none; | ||
color: var(--text-color); | color: var(--text-color); | ||
width: | width: 100%; | ||
padding: 0.5em; | padding: 0.5em; | ||
font-size: 0.875em; | |||
} | } | ||
Revision as of 22:18, 1 May 2025
:root {
/* Core colors */
--body-background-color: #1c1c1c;
--body-main: #2a2a2a;
--body-light: rgba(28, 28, 28, 0.95);
--body-mid: #262626;
--body-dark: #1f1f1f;
/* Text colors */
--text-color: #fff;
--background-text-color: rgba(255, 255, 255, 0.8);
--background-link-color: #6ab0f4;
/* UI elements */
--vector-tab-background: var(--body-dark);
--vector-tab-background--hover: var(--body-mid);
--search-box: rgba(0, 0, 0, 0.2);
--thumb-bg: var(--body-main);
--thumb-caption-bg: var(--body-dark);
--toc-bg: var(--body-light);
--toc-title-bg: var(--body-dark);
/* Gradients */
--header-gradient: linear-gradient(to bottom,
rgba(28, 28, 28, 0.95) 0%,
rgba(28, 28, 28, 0.85) 100%);
--content-gradient: linear-gradient(to right,
rgba(28, 28, 28, 0.7) 0%,
rgba(28, 28, 28, 0.95) 20%);
}
/* Base layout */
html {
font-size: 100%;
height: 100%;
background-color: var(--body-background-color);
}
body {
margin: 0;
padding: 0;
color: var(--text-color);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
min-height: 100%;
background-color: var(--body-background-color);
}
/* Background image container */
#mw-page-base {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 375px;
background: url('/resources/assets/bg.png') no-repeat;
background-size: 1500px auto;
z-index: -2;
}
/* Gradient overlay */
#mw-page-base::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--header-gradient);
z-index: -1;
}
/* Main layout structure */
#mw-head {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 2.5em;
padding-top: 0.5em;
background: var(--header-gradient);
z-index: 1;
}
#left-navigation {
float: left;
margin-left: 11em;
}
#right-navigation {
float: right;
margin-right: 1em;
}
/* Content wrapper */
#content {
margin-left: 11em;
margin-top: 3em;
padding: 1.25em;
background: var(--body-light);
border: 1px solid var(--body-dark);
border-radius: 2px;
position: relative;
z-index: 0;
}
/* Logo and sidebar */
#mw-navigation {
position: absolute;
top: 0;
width: 10em;
left: 0;
padding-top: 1em;
}
#p-logo {
width: 10em;
height: 160px;
margin-bottom: 1em;
}
/* Navigation tabs */
.vector-menu-tabs {
float: left;
height: 2.5em;
margin: 0;
padding: 0;
}
.vector-menu-tabs ul {
float: left;
height: 2.5em;
list-style: none;
margin: 0;
padding: 0;
}
.vector-menu-tabs li {
float: left;
line-height: 1.125em;
display: block;
height: 2.5em;
margin: 0;
padding: 0;
background: var(--vector-tab-background);
border: 1px solid var(--body-dark);
border-bottom: none;
margin-right: 0.5em;
border-radius: 2px 2px 0 0;
}
.vector-menu-tabs a {
display: block;
height: 2.5em;
padding: 0 1em;
color: var(--background-link-color);
cursor: pointer;
text-decoration: none;
line-height: 2.5em;
}
.vector-menu-tabs .selected {
background: var(--body-main);
border-bottom: none;
position: relative;
}
.vector-menu-tabs .selected::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
right: 0;
height: 1px;
background: var(--body-main);
}
.vector-menu-tabs .selected a {
color: var(--text-color);
}
/* Views menu (Edit, History etc) */
#p-views {
float: left;
}
#ca-edit, #ca-history, #ca-view {
float: left;
}
/* Search box */
.vector-search-box-inner {
background: var(--search-box);
border-radius: 2px;
padding: 0.5em;
margin-top: 0;
float: right;
width: 20em;
}
.vector-search-box input {
background: transparent;
border: none;
color: var(--text-color);
width: 100%;
padding: 0.5em;
font-size: 0.875em;
}
/* Content styling */
.firstHeading {
font-size: 1.8rem;
font-weight: normal;
color: var(--text-color);
margin: 0;
padding: 0.5em 0 1em;
border-bottom: 1px solid var(--body-dark);
}
/* Links */
a {
color: var(--background-link-color);
text-decoration: none;
}
a:visited {
color: #4a80c4;
}
a:hover {
text-decoration: underline;
}
/* Tables */
.wikitable {
background: var(--body-main);
border-collapse: collapse;
margin: 1em 0;
border: 1px solid var(--body-dark);
}
.wikitable th {
background: var(--body-dark);
padding: 0.5em;
text-align: left;
}
.wikitable td {
padding: 0.5em;
border: 1px solid var(--body-dark);
}
/* Images and thumbnails */
.thumb {
background: var(--thumb-bg);
border: 1px solid var(--body-dark);
padding: 0.5em;
margin: 1em 0;
}
.thumbcaption {
background: var(--thumb-caption-bg);
padding: 0.5em;
font-size: 0.9em;
}
/* Table of contents */
.toc {
background: var(--toc-bg);
border: 1px solid var(--body-dark);
padding: 1em;
margin: 1em 0;
}
.toc .toctitle {
background: var(--toc-title-bg);
padding: 0.5em;
text-align: center;
}