Jump to content

MediaWiki:Common.css

From Global Wiki
Revision as of 16:53, 19 May 2025 by Manikanta (talk | contribs)

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;
}

/* === 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;
}