MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
font-size: 100%; | font-size: 100%; | ||
height: 100%; | height: 100%; | ||
} | } | ||
Line 43: | Line 42: | ||
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 | background: #1c1c1c; | ||
} | } | ||
/* | /* Main layout structure */ | ||
#mw-page-base { | #mw-page-base { | ||
height: 5em; | |||
background-color: transparent; | |||
height: | |||
background- | |||
} | } | ||
#mw-head-base { | |||
#mw- | margin-top: -5em; | ||
margin-left: 10em; | |||
height: 5em; | |||
background-image: linear-gradient(to bottom, rgba(28, 28, 28, 0.95), rgba(28, 28, 28, 0.85)); | |||
left: | background-position: 100% 0; | ||
background: | |||
} | } | ||
#mw-panel { | |||
#mw- | |||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
width: 10em; | |||
width: | left: 0; | ||
} | } | ||
/* Content | /* Content area */ | ||
#content { | #content { | ||
margin-left: | margin-left: 10em; | ||
padding: 1.25em; | padding: 1.25em; | ||
background: var(--body-light); | background: var(--body-light); | ||
border: 1px solid var(--body-dark); | border: 1px solid var(--body-dark); | ||
border-radius: 2px; | border-radius: 2px; | ||
margin-top: -1em; | |||
} | } | ||
/* | /* Navigation */ | ||
# | #left-navigation { | ||
float: left; | |||
margin-left: 10em; | |||
} | } | ||
# | #right-navigation { | ||
float: right; | |||
margin: 0.5em 0.5em 0; | |||
margin | |||
} | } | ||
.vector-menu-tabs { | .vector-menu-tabs { | ||
float: left; | float: left; | ||
height: 2.5em; | height: 2.5em; | ||
} | } | ||
Line 130: | Line 95: | ||
float: left; | float: left; | ||
height: 2.5em; | height: 2.5em; | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
list-style: none; | |||
} | } | ||
.vector-menu-tabs li { | .vector-menu-tabs li { | ||
float: left; | float: left; | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
background: | background: var(--body-dark); | ||
white-space: nowrap; | |||
} | } | ||
Line 152: | Line 111: | ||
display: block; | display: block; | ||
height: 2.5em; | height: 2.5em; | ||
padding: 0 | padding: 0 0.5em; | ||
color: var(--background-link-color); | color: var(--background-link-color); | ||
cursor: pointer; | cursor: pointer; | ||
font-size: 0.8125em; | |||
line-height: 2.5em; | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.vector-menu-tabs .selected { | .vector-menu-tabs .selected { | ||
background: var(--body-main); | background: var(--body-main); | ||
} | } | ||
Line 179: | Line 127: | ||
} | } | ||
/* | /* Search box */ | ||
#p- | #p-search { | ||
float: | float: right; | ||
margin-right: 0.5em; | |||
margin-top: 0.5em; | |||
} | } | ||
# | #p-search h3 { | ||
display: none; | |||
} | } | ||
.vector-search-box-inner { | .vector-search-box-inner { | ||
background: | background-color: rgba(0, 0, 0, 0.2); | ||
border-radius: 2px; | border-radius: 2px; | ||
padding: 0. | padding: 0.25em; | ||
} | |||
.searchButton { | |||
background: none; | |||
border: none; | |||
color: var(--text-color); | |||
cursor: pointer; | |||
padding: 0.25em; | |||
} | } | ||
#searchInput { | |||
background: transparent; | background: transparent; | ||
border: none; | border: none; | ||
color: var(--text-color); | color: var(--text-color); | ||
margin: 0; | |||
padding: 0. | padding: 0.25em; | ||
width: 15em; | |||
} | } | ||
/* | /* First heading */ | ||
.firstHeading { | .firstHeading { | ||
font-size: 1. | margin: 0 0 0.5em; | ||
padding: 0; | |||
font-size: 1.8em; | |||
font-weight: normal; | font-weight: normal; | ||
color: var(--text-color); | color: var(--text-color); | ||
border-bottom: 1px solid var(--body-dark); | border-bottom: 1px solid var(--body-dark); | ||
} | } | ||
/* | /* Background image */ | ||
body::before { | |||
content: ""; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
width: 1500px; | |||
height: 375px; | |||
background: url('/resources/assets/bg.png') no-repeat; | |||
background-size: 1500px auto; | |||
z-index: -1; | |||
} | |||
body::after { | |||
content: ""; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 375px; | |||
background: linear-gradient(to right, | |||
rgba(28, 28, 28, 0.95) 0%, | |||
rgba(28, 28, 28, 0.85) 20%, | |||
rgba(28, 28, 28, 0.85) 100% | |||
); | |||
z-index: -1; | |||
} | } | ||
/* Views menu (Edit, History etc) */ | |||
#p-views { | |||
float: left; | |||
} | } | ||
#ca-edit, #ca-history, #ca-view { | |||
float: left; | |||
} | } | ||
Line 276: | Line 253: | ||
padding: 0.5em; | padding: 0.5em; | ||
text-align: center; | text-align: center; | ||
} | |||
/* Links */ | |||
a { | |||
color: var(--background-link-color); | |||
text-decoration: none; | |||
} | |||
a:visited { | |||
color: #4a80c4; | |||
} | |||
a:hover { | |||
text-decoration: underline; | |||
} | } |
Revision as of 22:21, 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%;
}
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: #1c1c1c;
}
/* Main layout structure */
#mw-page-base {
height: 5em;
background-color: transparent;
}
#mw-head-base {
margin-top: -5em;
margin-left: 10em;
height: 5em;
background-image: linear-gradient(to bottom, rgba(28, 28, 28, 0.95), rgba(28, 28, 28, 0.85));
background-position: 100% 0;
}
#mw-panel {
position: absolute;
top: 0;
width: 10em;
left: 0;
}
/* Content area */
#content {
margin-left: 10em;
padding: 1.25em;
background: var(--body-light);
border: 1px solid var(--body-dark);
border-radius: 2px;
margin-top: -1em;
}
/* Navigation */
#left-navigation {
float: left;
margin-left: 10em;
}
#right-navigation {
float: right;
margin: 0.5em 0.5em 0;
}
.vector-menu-tabs {
float: left;
height: 2.5em;
}
.vector-menu-tabs ul {
float: left;
height: 2.5em;
margin: 0;
padding: 0;
list-style: none;
}
.vector-menu-tabs li {
float: left;
margin: 0;
padding: 0;
background: var(--body-dark);
white-space: nowrap;
}
.vector-menu-tabs a {
display: block;
height: 2.5em;
padding: 0 0.5em;
color: var(--background-link-color);
cursor: pointer;
font-size: 0.8125em;
line-height: 2.5em;
text-decoration: none;
}
.vector-menu-tabs .selected {
background: var(--body-main);
}
.vector-menu-tabs .selected a {
color: var(--text-color);
}
/* Search box */
#p-search {
float: right;
margin-right: 0.5em;
margin-top: 0.5em;
}
#p-search h3 {
display: none;
}
.vector-search-box-inner {
background-color: rgba(0, 0, 0, 0.2);
border-radius: 2px;
padding: 0.25em;
}
.searchButton {
background: none;
border: none;
color: var(--text-color);
cursor: pointer;
padding: 0.25em;
}
#searchInput {
background: transparent;
border: none;
color: var(--text-color);
margin: 0;
padding: 0.25em;
width: 15em;
}
/* First heading */
.firstHeading {
margin: 0 0 0.5em;
padding: 0;
font-size: 1.8em;
font-weight: normal;
color: var(--text-color);
border-bottom: 1px solid var(--body-dark);
}
/* Background image */
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 1500px;
height: 375px;
background: url('/resources/assets/bg.png') no-repeat;
background-size: 1500px auto;
z-index: -1;
}
body::after {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 375px;
background: linear-gradient(to right,
rgba(28, 28, 28, 0.95) 0%,
rgba(28, 28, 28, 0.85) 20%,
rgba(28, 28, 28, 0.85) 100%
);
z-index: -1;
}
/* Views menu (Edit, History etc) */
#p-views {
float: left;
}
#ca-edit, #ca-history, #ca-view {
float: left;
}
/* 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;
}
/* Links */
a {
color: var(--background-link-color);
text-decoration: none;
}
a:visited {
color: #4a80c4;
}
a:hover {
text-decoration: underline;
}