MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 49:
}
.mw-collapsible-leftside-toggle .mw-collapsible-toggle { float: left; }
.wikitable td ul, .wikitable td ol, .wikitable td dl { text-align: left; }
 
/* --- PDF icons --- */
Line 131 ⟶ 130:
 
/* --- Text utilities --- */
.wikitable.plainrowheaders th[scope=row], .wikitable.plainrowheaders th[scope=rowgroup] {
font-weight: normal; text-align: left;
}
.nounderlines a, .IPA a:link, .IPA a:visited { text-decoration: none !important; }
.nowrap, .nowraplinks a { white-space: nowrap; }
Line 768 ⟶ 764:
.skin-minerva .section-heading .mw-ui-icon-wikimedia-expand-small {
filter: grayscale(1) brightness(0.2);
}
 
/* --- Wikitable styles --- */
table.wikitable {
font-size: 0.85em;
background-color: #fff;
}
table.wikitable td { background-color: #fff; }
table.wikitable caption {
text-align: left;
font-weight: bold;
background-color: #fff;
}
 
Line 1,055 ⟶ 1,039:
9. RESPONSIVE OVERRIDES
================================================================= */
 
/* --- Small screens (max-width: 719px) --- */
@media screen and (max-width: 719px) {
table.wikitable { border: none !important; }
table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > tbody > tr > th,
table.wikitable > tbody > tr > td {
border: 1px solid var(--border-color-base, #a2a9b1);
}
}
 
/* --- Mobile (max-width: 768px) --- */
Line 1,176 ⟶ 1,149:
.ext-aiassistant,
.ext-aiassistant-panel,
.ext-aiassistant-trigger {
display: none !important;
}
 
/* --- Hide standard MediaWiki UI elements to free up space --- */
#mw-navigation,
#footer,
.printfooter,
.mw-editsection {
display: none !important;
Line 1,191 ⟶ 1,164:
.mw-parser-output ul,
.mw-parser-output ol,
.mw-parser-output li {
font-family: inherit !important;
}
 
Line 1,201 ⟶ 1,174:
}
}
 
 
/* =================================================================
11. WIKITABLES
11. WIKITABLE FIXES (Mobile, Alignment, & Print)
All table styling lives here: base look, cell content, the sticky
first column, responsive borders, and print. Horizontal scroll is
handled by the CopyTable gadget wrapper, NOT here (overflow on a
<table> element is ignored).
================================================================= */
 
/* --- MobileFull /width General(scroll Displaylives Fixeson the gadget's .copy-table-scroll wrapper) --- */
table.wikitable td{ pwidth: {100% !important; }
 
font-size: inherit !important; /* Forces Minerva to respect table font size */
/* --- Base look --- */
table.wikitable {
font-size: 0.85em;
background-color: #fff;
}
table.wikitable td { background-color: #fff; }
table.wikitable caption {
text-align: left;
font-weight: bold;
background-color: #fff;
}
.wikitable.plainrowheaders th[scope=row],
.wikitable.plainrowheaders th[scope=rowgroup] {
font-weight: normal;
text-align: left;
}
 
/* --- Cell content (Minerva fixes + alignment) --- */
table.wikitable td p { font-size: inherit !important; } /* respect table font size */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl { text-align: left; }
table.wikitable td ul {
list-style-position: outside !important; /* Fixesfix Minerva bullet positioningposition */
margin-left: 1.5em !important; /* Pushespush bullets away fromoff 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 /* align first block with inline text */
}
 
/* --- Row-label (first) column: single-line, readable minimum, frozen while
/* --- Print Fixes --- */
scrolling, opaque background, with drawn left+right borders.
@media print {
border-collapse drops a sticky cell's own borders, so paint the edges
table.wikitable p {
with box-shadow — they stay put with the sticky cell. --- */
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 */
}
}
 
/* Row-label (first) column: single-line, readable minimum, frozen while
scrolling, opaque background, with drawn left+right borders. */
.wikitable th:first-child,
.wikitable td:first-child {
Line 1,247 ⟶ 1,231:
left: 0;
z-index: 1;
/* border-collapse drops a sticky cell's own borders, so paint the left and
right edges with box-shadow — it stays put with the sticky cell. */
box-shadow: inset 3px 0 0 #EAECF0, /* left edge */
1px 0 0 #a2a9b1; /* right edge */
Line 1,254 ⟶ 1,236:
.wikitable td:first-child { background-color: #f8f9fa; } /* body cells */
.wikitable th:first-child { background-color: #eaecf0; } /* header cell */
 
/* Automatically makes ALL wikitables full-width, responsive, and clear of infoboxes */
/* --- Mobile borders (<= 719px): table border dropped, redrawn per cell --- */
.wikitable {
@media screen and (max-width: 100%719px) !important;{
table.wikitable { border: none !important; }
table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > tbody > tr > th,
table.wikitable > tbody > tr > td {
border: 1px solid var(--border-color-base, #a2a9b1);
}
}
 
/* --- Print --- */
@media print {
table.wikitable p {
font-size: inherit !important;
text-align: inherit !important; /* no justification on print */
margin-top: 0.25em !important;
margin-bottom: 0.25em !important;
}
table.wikitable a.external.text::after {
content: none !important; /* hide expanded URLs */
}
}