MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,195:
}
 
/* =================================================================
@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 */
contentmargin-top: none0.25em !important;
margin-topbottom: 0.25em; !important;
}
table.wikitable a.external.text::after {
content: none !important; /* Hides expanded URLs to keep columns tidy */
}
}