MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 274: | Line 274: | ||
#mw-panel { | #mw-panel { | ||
position: relat | position: relat | ||
/* ========================= | |||
FIX PAGE / DISCUSSION TABS | |||
========================= */ | |||
/* Namespace tabs */ | |||
#p-namespaces, | |||
#p-views, | |||
#p-cactions { | |||
margin-left: 280px !important; | |||
} | |||
/* Prevent overlap */ | |||
#mw-head { | |||
padding-left: 0 !important; | |||
} | |||
/* Clean tab alignment */ | |||
#p-namespaces ul, | |||
#p-views ul { | |||
margin-left: 0; | |||
} | |||
Revision as of 02:02, 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;
}
}
/* 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
========================= */
/* 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 main content */
#content {
margin-left: 280px !important;
padding-left: 2em;
}
/* Push header */
#mw-head {
margin-left: 280px !important;
}
/* Footer */
#footer {
margin-left: 280px !important;
}
/* Clean sidebar text */
#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: relat
/* =========================
FIX PAGE / DISCUSSION TABS
========================= */
/* Namespace tabs */
#p-namespaces,
#p-views,
#p-cactions {
margin-left: 280px !important;
}
/* Prevent overlap */
#mw-head {
padding-left: 0 !important;
}
/* Clean tab alignment */
#p-namespaces ul,
#p-views ul {
margin-left: 0;
}