MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* =============================== | ||
ESTORIARO GITBOOK FULL MODE | |||
Legacy Vector Sidebar | |||
================================ */ | |||
/* --- Sidebar base --- */ | |||
#mw-panel { | #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 | /* Hide collapse controls */ | ||
.vector-menu-heading .vector-menu-checkbox, | .vector-menu-heading .vector-menu-checkbox, | ||
.vector-menu-heading label { | .vector-menu-heading label { | ||
display: none !important; | 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; | |||
} | |||
/* Hover */ | |||
#mw-panel a:hover { | |||
background: #e5edff; | |||
color: #1d4ed8; | |||
text-decoration: none; | |||
} | |||
/* 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 a:hover { | |||
background: #1e293b; | |||
color: #93c5fd; | |||
} | |||
#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; | |||
} | |||
} | } | ||
Revision as of 01:52, 19 December 2025
/* ===============================
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;
}
/* Hover */
#mw-panel a:hover {
background: #e5edff;
color: #1d4ed8;
text-decoration: none;
}
/* 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 a:hover {
background: #1e293b;
color: #93c5fd;
}
#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;
}
}