MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 19: | Line 19: | ||
} | } | ||
/* === | /* === Enforce Desktop Layout on All Devices === */ | ||
body { | |||
font-size: 16px !important; | font-size: 16px !important; | ||
line-height: 1.6; | line-height: 1.6; | ||
-webkit-text-size-adjust: none !important; | -webkit-text-size-adjust: none !important; | ||
overflow-x: hidden; | |||
} | |||
html, body { | |||
width: 100%; | |||
margin: 0; | |||
padding: 0; | |||
} | } | ||
.mw-body, #content, #bodyContent { | |||
width: 1024px !important; | |||
margin: 0 auto !important; | |||
.mw-body, | box-sizing: border-box; | ||
width: 1024px; | |||
margin: 0 auto; | |||
padding: 20px; | padding: 20px; | ||
} | } | ||
/* | /* Restore sidebar and navigation */ | ||
#mw-panel, | |||
#mw-head-base, | #mw-head-base, | ||
#mw-navigation, | #mw-navigation, | ||
.vector-menu-portal { | .vector-menu-portal { | ||
| Line 49: | Line 48: | ||
} | } | ||
/* | /* Prevent mobile font size shrink */ | ||
h1, h2, h3, h4, h5, p, a, li, td, th { | |||
font-size: inherit !important; | |||
} | } | ||
Revision as of 16:53, 19 May 2025
/* 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;
}
/* === Enforce Desktop Layout on All Devices === */
body {
font-size: 16px !important;
line-height: 1.6;
-webkit-text-size-adjust: none !important;
overflow-x: hidden;
}
html, body {
width: 100%;
margin: 0;
padding: 0;
}
.mw-body, #content, #bodyContent {
width: 1024px !important;
margin: 0 auto !important;
box-sizing: border-box;
padding: 20px;
}
/* Restore sidebar and navigation */
#mw-panel,
#mw-head-base,
#mw-navigation,
.vector-menu-portal {
display: block !important;
}
/* Prevent mobile font size shrink */
h1, h2, h3, h4, h5, p, a, li, td, th {
font-size: inherit !important;
}