MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* Keep header and page clean */
.mw-page-container {
max-width: 100%;
}
.vector-header-container,
.vector-sticky-header-container {
border-bottom: 1px solid #eaecf0;
}
.mw-body {
font-size: 0.98rem;
line-height: 1.6;
}
/* Clean tables */
.wikitable {
font-size: 0.95rem;
border-collapse: collapse;
}
.wikitable th,
.wikitable td {
padding: 0.5em 0.75em;
}
/* Make general content safer on small screens */
img,
video,
iframe {
max-width: 100%;
height: auto;
}
pre,
code {
overflow-x: auto;
}
/* Mobile layout */
@media (max-width: 768px) {
/* Reduce page side padding */
.mw-body,
.vector-body {
padding-left: 0.75rem !important;
padding-right: 0.75rem !important;
}
/* Welcome banner */
.mainpage-banner {
width: 100% !important;
box-sizing: border-box;
padding: 1rem !important;
font-size: 1.5rem !important;
line-height: 1.4 !important;
text-align: center;
}
/* Top quick links table must stop behaving like a table */
.mainpage-links,
.mainpage-links tbody,
.mainpage-links tr {
display: block !important;
width: 100% !important;
}
.mainpage-links td,
.mainpage-links th {
display: block !important;
width: 100% !important;
box-sizing: border-box;
text-align: center;
padding: 1rem 0.75rem !important;
border-left: none !important;
border-right: none !important;
border-top: 1px solid #a2a9b1 !important;
white-space: normal !important;
}
.mainpage-links tr:first-child td:first-child,
.mainpage-links tr:first-child th:first-child {
border-top: none !important;
}
/* Main section table must also stop behaving like a table */
.mainpage-sections,
.mainpage-sections tbody,
.mainpage-sections tr {
display: block !important;
width: 100% !important;
}
.mainpage-sections td,
.mainpage-sections th {
display: block !important;
width: 100% !important;
box-sizing: border-box;
padding: 0.9rem !important;
white-space: normal !important;
border-left: none !important;
border-right: none !important;
}
.mainpage-sections th {
text-align: center;
font-size: 1.1rem;
}
/* Let long links wrap normally */
.mainpage-sections a,
.mainpage-links a {
white-space: normal !important;
word-break: break-word;
}
/* Optional: make normal wikitable content scroll instead of crushing */
.wikitable {
display: block;
width: 100%;
overflow-x: auto;
white-space: nowrap;
}
}