MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
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; }
contentdisplay: none !important;
}
 
/* --- Hide standard MediaWiki UI elements to free up space --- */
/* Font consistency for lists */
#mw-navigation,
#footer,
.printfooter,
.mw-editsection {
contentdisplay: none !important;
}
 
/* --- Font consistency for lists --- */
.mw-parser-output ul,
.mw-parser-output ol,
.mw-parser-output li { font-family: inherit !important; }
font-sizefamily: inherit !important;
}
 
/* --- Remove underlines specifically from internal links in print --- */
.mw-parser-output a:not(.external),
.mw-parser-output a:not(.external):visited {
Line 1,195 ⟶ 1,202:
}
 
/* =================================================================
@media print {
11. WIKITABLE FIXES (Mobile, Alignment, & Print)
.wikitable p {
================================================================= */
font-size: inherit;
}
/* Optional: Hide expanded URLs in tables when printing to keep columns tidy */
.wikitable a.external.text::after {
content: none !important;
}
}
 
/* --- Mobile / General Display Fixes --- */
/* Fix print formatting for table paragraphs and hide expanded URLs */
table.wikitable td ulp {
@media print {
textfont-alignsize: inherit !important; /* Forces textMinerva to respect the cell'stable leftfont alignmentsize */
.wikitable p {
font-size: inherit;
text-align: inherit; /* Forces text to respect the cell's left alignment */
margin-top: 0.25em;
margin-bottom: 0.25em;
}
.wikitable a.external.text::after {
content: none !important;
}
}
 
table.wikitable td ul {
/* Remove top margin for the first paragraph or list inside a table cell to fix vertical alignment */
list-style-position: outside !important; /* Fixes Minerva bullet positioning */
.wikitable td > p:first-child,
paddingmargin-left: 1.5em !important; /* Creates a normal indent so /* Pushes bullets don'taway touchfrom the border */
.wikitable td > ul:first-child,
padding-left: 0 !important; /* Resets conflicting padding */
.wikitable td > ol:first-child {
margin-top: 0;
}
 
/* --- Vertical Alignment Fix --- */
/* Ensure paragraphs inherit table font sizing (Fixes Minerva large text issue) */
table.wikitable ptd {> p:first-child,
table.wikitable td > pul:first-child,
font-size: inherit;
table.wikitable td > ulol:first-child, {
margin-top: 0 !important; /* Aligns bullet points and paragraphs with inline text */
}
 
/* --- Print Fixes --- */
/* Restore left padding for bullet points inside tables (Fixes Minerva border-touching issue) */
@media print {
.wikitable td ul {
table.wikitable p {
padding-left: 1.5em; /* Creates a normal indent so bullets don't touch the border */
margin font-leftsize: 0inherit !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 */
}
}