MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 730:
.mw-body-content a.external:visited,
.mw-collapsible-toggle-default .mw-collapsible-text {
color: #1c2d42000099 !important;
}
 
Line 1,165:
 
@media print {
 
/* --- Hide floating buttons, overlays, and AI assistant --- */
#searchIcon,
.branding-box,
#cps-open-toc,
#custom-email-btn { display: none !important; },
 
/* Hide ToC overlay */
#cps-toc-panel,
#cps-toc-overlay { display: none !important; },
.minerva-header .search-box { display: none !important; },
 
/* Hide search bar */
.minerva-header .search-box { display: none !important; }
 
/* Hide AI assistant */
.ext-aiassistant,
.ext-aiassistant-panel,
.ext-aiassistant-trigger { display: none !important; }
display: none !important;
}
 
/* --- Hide standard MediaWiki UI elements to free up space --- */
#mw-navigation,
#footer,
.printfooter,
.mw-editsection {
display: none !important;
}
 
/* --- Font consistency for lists --- */
.mw-parser-output ul,
.mw-parser-output ol,
.mw-parser-output li { font-family: inherit !important; }
font-family: inherit !important;
}
 
/* --- Remove underlines specifically from internal links in print --- */
.mw-parser-output a:not(.external),
.mw-parser-output a:not(.external):visited {
text-decoration: none !important;
}
}
 
/* =================================================================
11. WIKITABLE FIXES (Mobile, Alignment, & Print)
================================================================= */
 
/* --- Mobile / General Display Fixes --- */
table.wikitable td p {
font-size: inherit !important; /* Forces Minerva to respect table font size */
}
 
table.wikitable td ul {
list-style-position: outside !important; /* Fixes Minerva bullet positioning */
margin-left: 1.5em !important; /* Pushes bullets away from the border */
padding-left: 0 !important; /* Resets conflicting padding */
}
 
/* --- Vertical Alignment Fix --- */
table.wikitable td > p:first-child,
table.wikitable td > ul:first-child,
table.wikitable td > ol:first-child {
margin-top: 0 !important; /* Aligns bullet points and paragraphs with inline text */
}
 
/* --- Print Fixes --- */
@media print {
table.wikitable p {
font-size: inherit !important;
text-align: inherit !important; /* Prevents text justification on print */
margin-top: 0.25em !important;
margin-bottom: 0.25em !important;
}
table.wikitable a.external.text::after {
content: none !important; /* Hides expanded URLs to keep columns tidy */
}
}