MediaWiki:Common.css
Appearance
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 */
/* Center and style the main page logo */
.mainpage-logo {
text-align: center;
margin: 20px 0;
}
.mainpage-logo img {
max-width: 100%;
height: auto;
}
/* Responsive tables */
table {
width: 100%;
overflow-x: auto;
display: block;
}
/* Responsive layout adjustments */
@media (max-width: 768px) {
#mw-head-base,
#mw-panel,
#mw-navigation {
display: none; /* Optional: hide sidebars on small screens */
}
#content,
#bodyContent {
margin: 0;
padding: 10px;
width: 100%;
}
h1, h2, h3 {
font-size: 1.5em;
}
.mainpage-logo img {
width: 100%;
height: auto;
}
}
/* Improve text readability and spacing on mobile */
@media (max-width: 768px) {
body, .mw-body {
font-size: 14px;
line-height: 1.6;
}
h1, h2, h3, h4 {
margin-top: 20px;
margin-bottom: 10px;
}
/* Prevent horizontal overflow in code/pre */
pre, code {
white-space: pre-wrap;
word-break: break-word;
}
/* Ensure main content area uses full screen */
.mw-body,
.mw-content-ltr,
#content {
box-sizing: border-box;
padding: 10px;
width: 100%;
}
/* Hide unnecessary portlets on mobile (optional) */
.vector-menu-portal {
display: none !important;
}
}
/* Biography landing page cleanup for Vector 2022 skin */
.page-Biography #mw-page-base,
.page-Biography #mw-head,
.page-Biography #mw-panel,
.page-Biography #mw-footer,
.page-Biography .mw-footer,
.page-Biography #catlinks,
.page-Biography .mw-indicators,
.page-Biography .mw-editsection,
.page-Biography .printfooter,
.page-Biography .mw-portlet,
.page-Biography #p-search,
.page-Biography .vector-menu,
.page-Biography .mw-body-header,
.page-Biography .vector-toc,
.page-Biography .vector-page-tools-container,
.page-Biography .vector-page-toolbar,
.page-Biography .vector-sticky-header,
.page-Biography #vector-main-menu,
.page-Biography .vector-sitenotice-container {
display: none !important;
}
/* Expand content to full width */
.page-Biography #content,
.page-Biography #bodyContent,
.page-Biography .mw-body,
.page-Biography .mw-content-container,
.page-Biography .mw-content-ltr {
margin: 0 !important;
padding: 0 !important;
width: 100% !important;
max-width: 100% !important;
box-shadow: none !important;
background: #fff !important;
}
/* Typography and layout improvements */
.page-Biography body,
.page-Biography .mw-body {
font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
}
.page-Biography h1,
.page-Biography h2,
.page-Biography h3 {
margin: 20px 0 10px;
color: #044b4f;
}
.page-Biography a {
color: #007BFF;
text-decoration: none;
}