MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 63: | Line 63: | ||
} | } | ||
/* --- PRINT‑ONLY FIXES --- */ | |||
@media print { | @media print { | ||
.mw-specialpage { page-break-before: avoid !important; } | |||
/* Prevent empty first page when transcluding Special:AllPages */ | |||
.mw-specialpage { | |||
page-break-before: avoid !important; | |||
} | |||
/* Ensure readable black text in print, even if dark mode uses yellow */ | |||
body, #content, .mw-body { | |||
color: black !important; | |||
background: white !important; | |||
} | |||
/* Avoid page breaks after headings */ | |||
h1, h2, h3 { | |||
page-break-after: avoid !important; | |||
} | |||
} | } | ||
Revision as of 13:36, 11 May 2026
/* CSS placed here will be applied to all skins */
/* ======================================
NS-TREE (AllPages layout + styling)
====================================== */
/* Force single column */
#ns-tree .mw-allpages-body {
column-count: 1 !important;
column-width: auto !important;
}
#ns-tree .mw-allpages-chunk {
display: block !important;
width: 100% !important;
}
/* Remove bullets */
#ns-tree ul,
#ns-tree li {
list-style: none !important;
padding-left: 0;
margin-left: 0;
}
/* Spacing */
#ns-tree li {
margin: 3px 0;
line-height: 1.4;
}
/* ===== LINK COLORS ONLY ===== */
#ns-tree a:link,
#ns-tree a:visited {
color: #8e8e38 !important;
}
#ns-tree a:hover {
color: #ffffff !important;
text-decoration: underline;
}
/* ===== STRUCTURE ===== */
/* Top-level items (from JS) */
#ns-tree li.top-level {
margin-top: 14px;
padding-top: 6px;
border-top: 1px solid #555;
}
/* Arrow indicator */
#ns-tree li::before {
content: "›";
margin-right: 6px;
color: #888;
}
#ns-tree .mw-allpages-body {
column-count: 1 !important;
column-width: auto !important;
}
/* --- PRINT‑ONLY FIXES --- */
@media print {
/* Prevent empty first page when transcluding Special:AllPages */
.mw-specialpage {
page-break-before: avoid !important;
}
/* Ensure readable black text in print, even if dark mode uses yellow */
body, #content, .mw-body {
color: black !important;
background: white !important;
}
/* Avoid page breaks after headings */
h1, h2, h3 {
page-break-after: avoid !important;
}
}