MediaWiki:Common.css
Jump to navigation
Jump to search
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)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ===============================
ESTORIARO GITBOOK FULL MODE
Legacy Vector Sidebar
================================ */
/* --- Sidebar base --- */
#mw-panel {
width: 270px;
background: #f8f9fb;
border-right: 1px solid #e5e7eb;
padding-top: 1em;
position: fixed;
top: 0;
left: 0;
height: 100vh;
overflow-y: auto;
z-index: 10;
}
/* Push content */
.mw-page-container {
margin-left: 270px !important;
}
/* Hide collapse controls */
.vector-menu-heading .vector-menu-checkbox,
.vector-menu-heading label {
display: none !important;
}
/* Section titles */
#mw-panel .vector-menu-heading {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .05em;
color: #6b7280;
padding: 14px 16px 6px;
}
/* Menu items */
#mw-panel ul {
margin: 0;
padding: 0;
}
#mw-panel li {
list-style: none;
}
/* Links */
#mw-panel a {
display: block;
padding: 7px 14px;
font-size: 14px;
color: #374151;
border-radius: 6px;
margin: 2px 8px;
}
/* Active page */
#mw-panel .mw-selflink {
background: #2563eb;
color: #ffffff !important;
font-weight: 600;
}
/* Submenu indent */
#mw-panel ul ul a {
padding-left: 28px;
font-size: 13px;
color: #4b5563;
}
/* Sidebar scrollbar */
#mw-panel::-webkit-scrollbar {
width: 6px;
}
#mw-panel::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 6px;
}
/* -------------------------------
DARK MODE (AUTO)
-------------------------------- */
@media (prefers-color-scheme: dark) {
body {
background: #0f172a;
color: #e5e7eb;
}
#mw-panel {
background: #020617;
border-right-color: #1e293b;
}
#mw-panel .vector-menu-heading {
color: #94a3b8;
}
#mw-panel a {
color: #cbd5f5;
}
#mw-panel .mw-selflink {
background: #1d4ed8;
color: #ffffff !important;
}
}
/* -------------------------------
MOBILE BEHAVIOR
-------------------------------- */
@media (max-width: 768px) {
#mw-panel {
position: fixed;
transform: translateX(-100%);
}
.mw-page-container {
margin-left: 0 !important;
}
}
/* Active page highlight */
#mw-panel .mw-selflink {
background: #2563eb;
color: #ffffff !important;
font-weight: 600;
border-radius: 6px;
}
/* Submenu indentation */
#mw-panel ul ul a {
padding-left: 30px;
font-size: 13px;
color: #4b5563;
}
/* Sticky sidebar */
#mw-panel {
position: fixed;
top: 0;
left: 0;
height: 100vh;
overflow-y: auto;
}
/* Scrollbar clean */
#mw-panel::-webkit-scrollbar {
width: 6px;
}
#mw-panel::-webkit-scrollbar-thumb {
background: #cbd5f5;
border-radius: 6px;
}
@media (max-width: 768px) {
#mw-panel {
transform: translateX(-100%);
}
.mw-page-container {
margin-left: 0 !important;
}
}
#searchInput {
border-radius: 8px;
padding: 6px 10px;
}
#mw-panel a {
display: flex;
align-items: center;
gap: 6px;
}
/* Push content so it's not hidden by sidebar */
.mw-page-container {
margin-left: 280px;
}
/* Sidebar width */
#mw-panel {
width: 280px;
}
#mw-head,
#footer {
margin-left: 280px;
}
#mw-panel {
position: fixed;
top: 0;
left: 0;
height: 100vh;
overflow-y: auto;
background: #0b1220;
border-right: 1px solid #1e293b;
}
@media (max-width: 900px) {
#mw-panel {
transform: translateX(-100%);
}
.mw-page-container,
#mw-head,
#footer {
margin-left: 0 !important;
}
}
/* =========================
VECTOR LEGACY – GITBOOK LAYOUT (FIXED)
========================= */
/* Sidebar */
#mw-panel {
position: fixed !important;
top: 0;
left: 0;
width: 280px;
height: 100vh;
overflow-y: auto;
background: #0b1220;
border-right: 1px solid #1e293b;
z-index: 100;
}
/* =========================
PUSH ALL CONTENT AREAS
========================= */
/* Main content */
#content {
margin-left: 280px !important;
padding-left: 2em;
}
/* Header */
#mw-head {
margin-left: 280px !important;
}
/* Footer */
#footer {
margin-left: 280px !important;
}
/* =========================
FIX PAGE / DISCUSSION / EDIT TABS
========================= */
/* Namespace tabs: Page | Discussion */
#p-namespaces {
margin-left: 280px !important;
}
/* View tabs: Read | Edit | View history */
#p-views {
margin-left: 280px !important;
}
/* Tools dropdown */
#p-cactions {
margin-left: 280px !important;
}
/* Ensure tabs don't collapse */
#p-namespaces ul,
#p-views ul,
#p-cactions ul {
margin-left: 0 !important;
}
/* =========================
SIDEBAR STYLING
========================= */
#mw-panel a {
color: #cbd5f5;
font-size: 14px;
}
#mw-panel a:hover {
color: #60a5fa;
text-decoration: none;
}
/* Sidebar section title */
#mw-panel h3,
#mw-panel .portal h3 {
color: #94a3b8;
font-size: 11px;
text-transform: uppercase;
letter-spacing: .1em;
margin-top: 1.5em;
}
/* =========================
MOBILE FALLBACK
========================= */
@media (max-width: 900px) {
#mw-panel {
position: relative !important;
width: auto;
height: auto;
}
#content,
#mw-head,
#footer,
#p-namespaces,
#p-views,
#p-cactions {
margin-left: 0 !important;
}
}
/* =========================
GITBOOK HERO LANDING
========================= */
.gitbook-hero {
background: linear-gradient(
rgba(11,18,32,0.85),
rgba(11,18,32,0.85)
),
url(/wiki/images/8/84/Banner_main_.png) center/cover no-repeat;
border-radius: 16px;
padding: 4em 3em;
margin-bottom: 3em;
color: #e5edff;
}
.gitbook-hero h1 {
font-size: 3em;
margin-bottom: .4em;
color: #ffffff;
}
.gitbook-hero p {
font-size: 1.15em;
max-width: 700px;
color: #c7d2fe;
}
.gitbook-hero .hero-buttons {
margin-top: 2em;
}
.gitbook-hero .hero-btn {
display: inline-block;
padding: .75em 1.5em;
margin-right: .8em;
border-radius: 8px;
font-weight: 600;
text-decoration: none;
font-size: 14px;
}
.hero-primary {
background: #2563eb;
color: #ffffff;
}
.hero-primary:hover {
background: #1d4ed8;
}
.hero-secondary {
border: 1px solid #475569;
color: #e5edff;
}
.hero-secondary:hover {
background: rgba(255,255,255,0.08);
}
/* Remove useless UI */
#siteSub,
#contentSub,
.mw-indicators,
#mw-navigation h2 {
display: none;
}
h1, h2 {
color: #facc15;
}
a {
color: #60a5fa;
}
a:hover {
color: #fde047;
}
.gitbook-hero {
box-shadow: 0 0 40px rgba(250,204,21,0.15);
}
#mw-panel li a:hover {
background: #1e293b;
color: #93c5fd;
}