Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 65: Line 65:




@media (max-width:768px){
/* Mobile Responsive Fix */
@media (max-width: 768px) {


.citizen-main-menu{
    /* Bottom navigation */
    display:grid !important;
    .mw-header {
    grid-template-columns:repeat(4,1fr);
        position: fixed;
    width:100%;
        bottom: 0;
}
        top: auto;
        left: 0;
        width: 100%;
        height: 62px;
        padding: 0;
        z-index: 9999;
        border-top: 1px solid #e5e7eb;
        background: #fff;
        display: flex;
        align-items: center;
    }


.citizen-main-menu .citizen-menu__item:nth-child(n+5){
    /* Page content above bottom nav */
    display:none;
    .mw-body,
}
    #content,
    .citizen-body {
        padding-bottom: 80px !important;
    }


.citizen-main-menu .citizen-menu__link{
    /* Hide top action buttons on mobile */
     display:flex;
    .page-actions,
     flex-direction:column;
    .vector-page-tools,
     align-items:center;
    .citizen-page-actions,
     justify-content:center;
     .mw-portlet-cactions,
     font-size:11px;
     .mw-portlet-views,
    gap:4px;
     .mw-editsection,
     padding:10px 4px;
     .page-tools,
}
     .citizen-page-heading__actions {
        display: none !important;
     }


    /* Menu */
    .citizen-main-menu {
        display: flex;
        flex: 1;
        justify-content: space-evenly;
        align-items: center;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .citizen-main-menu::-webkit-scrollbar {
        display: none;
    }
    .citizen-main-menu .citizen-menu {
        display: flex;
        flex-direction: row;
        gap: 24px;
    }
    .citizen-main-menu li {
        flex: 0 0 auto;
        list-style: none;
    }
    .citizen-main-menu a {
        font-size: 14px;
        font-weight: 600;
        padding: 8px 0;
    }
    /* Logo */
    .citizen-header__logo {
        width: 60px;
        flex: 0 0 60px;
        justify-content: center;
    }
}
}

Revision as of 22:04, 21 July 2026

/* All CSS here will be loaded for users of the Citizen skin */
/* Full width content */
.mw-body,
#content,
.citizen-page-container,
.citizen-page__main {
    max-width: 100% !important;
    width: 100% !important;
}

/* Main container ko wide karo */
.citizen-body-container {
    max-width: 100% !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* Hero section ko full width allow karo */
.citizen-page-header {
    max-width: 100% !important;
}

/* Agar koi inner container width limit kar raha ho */
.mw-parser-output {
    max-width: 100% !important;
}


.citizen-main-menu{
    display:flex;
    align-items:center;
}

.citizen-main-menu .citizen-menu{
    display:flex;
    margin:0 20px 0 0;
}

.citizen-main-menu .citizen-menu__heading{
    display:none;
}

.citizen-main-menu .citizen-menu ul{
    display:flex;
    flex-direction:row;
    list-style:none;
    margin:0;
    padding:0;
    gap:18px;
}

.citizen-main-menu .citizen-menu li{
    margin:0;
}

.citizen-main-menu .citizen-menu a{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:8px;
}




/* Mobile Responsive Fix */
@media (max-width: 768px) {

    /* Bottom navigation */
    .mw-header {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        height: 62px;
        padding: 0;
        z-index: 9999;
        border-top: 1px solid #e5e7eb;
        background: #fff;
        display: flex;
        align-items: center;
    }

    /* Page content above bottom nav */
    .mw-body,
    #content,
    .citizen-body {
        padding-bottom: 80px !important;
    }

    /* Hide top action buttons on mobile */
    .page-actions,
    .vector-page-tools,
    .citizen-page-actions,
    .mw-portlet-cactions,
    .mw-portlet-views,
    .mw-editsection,
    .page-tools,
    .citizen-page-heading__actions {
        display: none !important;
    }

    /* Menu */
    .citizen-main-menu {
        display: flex;
        flex: 1;
        justify-content: space-evenly;
        align-items: center;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .citizen-main-menu::-webkit-scrollbar {
        display: none;
    }

    .citizen-main-menu .citizen-menu {
        display: flex;
        flex-direction: row;
        gap: 24px;
    }

    .citizen-main-menu li {
        flex: 0 0 auto;
        list-style: none;
    }

    .citizen-main-menu a {
        font-size: 14px;
        font-weight: 600;
        padding: 8px 0;
    }

    /* Logo */
    .citizen-header__logo {
        width: 60px;
        flex: 0 0 60px;
        justify-content: center;
    }
}