Jump to content

MediaWiki:Common.css: Difference between revisions

From Global Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 19: Line 19:
}
}


/* === Force desktop view even on mobile === */
/* === Enforce Desktop Layout on All Devices === */
html {
body {
    zoom: 1 !important;
}
 
body, .mw-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;
}
}


/* Optional: force fixed width layout for all screens */
.mw-body, #content, #bodyContent {
#content,
     width: 1024px !important;
#bodyContent,
     margin: 0 auto !important;
.mw-body,
    box-sizing: border-box;
.mw-content-ltr {
     width: 1024px;
     margin: 0 auto;
     padding: 20px;
     padding: 20px;
    box-sizing: border-box;
}
}


/* Prevent responsive collapsing of sidebar/navigation */
/* Restore sidebar and navigation */
#mw-panel,
#mw-head-base,
#mw-head-base,
#mw-panel,
#mw-navigation,
#mw-navigation,
.vector-menu-portal {
.vector-menu-portal {
Line 49: Line 48:
}
}


/* Logo scaling */
/* Prevent mobile font size shrink */
.mainpage-logo img {
h1, h2, h3, h4, h5, p, a, li, td, th {
     width: auto;
     font-size: inherit !important;
    height: auto;
    max-width: 100%;
}
}

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