Jump to content

MediaWiki:Common.css: Difference between revisions

From Global Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(7 intermediate revisions by the same user not shown)
Line 76: Line 76:
         display: none !important;
         display: none !important;
     }
     }
}
/* Hide MediaWiki interface for the Biography page on Vector 2022 skin */
body.skin-vector-2022.page-Biography #mw-sidebar,
body.skin-vector-2022.page-Biography #mw-page-header,
body.skin-vector-2022.page-Biography #mw-page-header-wrapper,
body.skin-vector-2022.page-Biography #mw-footer-container,
body.skin-vector-2022.page-Biography .vector-toc,
body.skin-vector-2022.page-Biography .mw-indicators,
body.skin-vector-2022.page-Biography .vector-page-toolbar,
body.skin-vector-2022.page-Biography .vector-header-container,
body.skin-vector-2022.page-Biography #vector-main-menu,
body.skin-vector-2022.page-Biography #p-personal,
body.skin-vector-2022.page-Biography #p-search,
body.skin-vector-2022.page-Biography .vector-user-menu,
body.skin-vector-2022.page-Biography #catlinks,
body.skin-vector-2022.page-Biography .printfooter,
body.skin-vector-2022.page-Biography .mw-editsection {
    display: none !important;
}
/* Make content full width */
body.skin-vector-2022.page-Biography #mw-content,
body.skin-vector-2022.page-Biography #content,
body.skin-vector-2022.page-Biography .mw-content-container,
body.skin-vector-2022.page-Biography .mw-body {
    margin: 0 auto !important;
    padding: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    background: #ffffff;
    box-shadow: none;
}
}

Latest revision as of 16:54, 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;
}

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