Jump to content

MediaWiki:Common.css: Difference between revisions

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


/* Responsive layout adjustments */
/* === Force desktop view even on mobile === */
@media (max-width: 768px) {
html {
     #mw-head-base,
     zoom: 1 !important;
    #mw-panel,
}
    #mw-navigation {
        display: none; /* Optional: hide sidebars on small screens */
    }


    #content,
body, .mw-body {
     #bodyContent {
     font-size: 16px !important;
        margin: 0;
    line-height: 1.6;
        padding: 10px;
    -webkit-text-size-adjust: none !important;
        width: 100%;
}
    }


    h1, h2, h3 {
/* Optional: force fixed width layout for all screens */
        font-size: 1.5em;
#content,
    }
#bodyContent,
.mw-body,
.mw-content-ltr {
    width: 1024px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}


    .mainpage-logo img {
/* Prevent responsive collapsing of sidebar/navigation */
        width: 100%;
#mw-head-base,
        height: auto;
#mw-panel,
    }
#mw-navigation,
.vector-menu-portal {
    display: block !important;
}
}


 
/* Logo scaling */
/* Improve text readability and spacing on mobile */
.mainpage-logo img {
@media (max-width: 768px) {
     width: auto;
    body, .mw-body {
     height: auto;
        font-size: 14px;
     max-width: 100%;
        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;
    }
}
}

Revision as of 16:49, 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;
}

/* === Force desktop view even on mobile === */
html {
    zoom: 1 !important;
}

body, .mw-body {
    font-size: 16px !important;
    line-height: 1.6;
    -webkit-text-size-adjust: none !important;
}

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

/* Prevent responsive collapsing of sidebar/navigation */
#mw-head-base,
#mw-panel,
#mw-navigation,
.vector-menu-portal {
    display: block !important;
}

/* Logo scaling */
.mainpage-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
}