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; }
/* --- PDF icons --- */
Line 131 ⟶ 130:
/* --- Text utilities --- */
.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);
}
Line 1,055 ⟶ 1,039:
9. RESPONSIVE OVERRIDES
================================================================= */
/* --- 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
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).
================================================================= */
/* ---
/* --- 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; /*
margin-left: 1.5em !important; /*
padding-left: 0 !important;
}
table.wikitable td > p:first-child,
table.wikitable td > ul:first-child,
table.wikitable td > ol:first-child {
margin-top: 0 !important;
}
/* --- Row-label (first) column: single-line, readable minimum, frozen while
scrolling, opaque background, with drawn left+right borders.
border-collapse drops a sticky cell's own borders, so paint the edges
with box-shadow — they stay put with the sticky cell. --- */
.wikitable th:first-child,
.wikitable td:first-child {
Line 1,247 ⟶ 1,231:
left: 0;
z-index: 1;
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 */
/* --- Mobile borders (<= 719px): table border dropped, redrawn per cell --- */
@media screen and
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 */
}
}
| |||