Jump to content

MediaWiki:Common.css: Difference between revisions

From A Modern Way To Be Known
No edit summary
No edit summary
Line 3: Line 3:
/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */


/* Hide MediaWiki's built-in title and logo */
.mw-wiki-title,
.mw-wiki-title,
.mw-logo-wordmark,
.mw-logo-wordmark,
Line 9: Line 10:
}
}


/* Replace with your custom BharatWikipedia SVG logo */
.mw-logo-wordmark {
.mw-logo-wordmark {
     display: block !important;
     display: block !important;
     width: 220px;
     width: 220px;             /* Logo width */
     height: 40px;
     height: 40px;             /* Logo height */
     margin-top: 15px;
     margin-top: 15px;         /* Space above logo */
     background-image: url("https://bharatwikipedia.org/images/BharatWikipedia.svg");
     background-image: url("https://bharatwikipedia.org/images/BharatWikipedia.svg");
     background-repeat: no-repeat;
     background-repeat: no-repeat;
     background-size: contain;
     background-size: contain; /* Scale SVG without distortion */
     text-indent: -9999px;
     text-indent: -9999px;     /* Hide any text inside the element */
     overflow: hidden;
     overflow: hidden;
     white-space: nowrap;
     white-space: nowrap;
Line 26: Line 28:
/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */


/* Places footer icons in a row, aligned to the right */
#footer-icons {
#footer-icons {
     display: flex !important;
     display: flex !important;
Line 31: Line 34:
     align-items: center !important;
     align-items: center !important;
     flex-direction: row !important;
     flex-direction: row !important;
     gap: 5px;
     gap: 5px;                 /* Space between icons */
}
}


/* Add your ConnexAbility badge BEFORE MediaWiki badge */
#footer-icons::before {
#footer-icons::before {
     content: "";
     content: "";               /* Required for pseudo-element */
     display: inline-flex;
     display: inline-flex;
     justify-content: center;
     justify-content: center;
     align-items: center;
     align-items: center;
    /* Badge size */
     width: 135px;
     width: 135px;
     height: 45px;
     height: 45px;
    /* Badge image */
     background-image: url("/images/AConnexAbilityProject.svg");
     background-image: url("/images/AConnexAbilityProject.svg");
     background-size: 78% auto;
     background-size: 78% auto;
     background-position: center;
     background-position: center;
     background-repeat: no-repeat;
     background-repeat: no-repeat;
    /* Border + styling */
     background-color: #fff;
     background-color: #fff;
     border: 1px solid #a2a9b1;
     border: 1px solid #a2a9b1;
     border-radius: 4px;
     border-radius: 4px;
     padding: 8px 8px;
     padding: 8px 8px;
     box-sizing: border-box;
     box-sizing: border-box;
}
}


/* Style the default "Powered by MediaWiki" icon */
#footer-poweredbyico a {
#footer-poweredbyico a {
     display: inline-flex !important;
     display: inline-flex !important;
Line 57: Line 69:
     height: 45px !important;
     height: 45px !important;
     padding: 8px 8px !important;
     padding: 8px 8px !important;
    /* Border + background to match ConnexAbility badge */
     border: 1px solid #72777d !important;
     border: 1px solid #72777d !important;
     border-radius: 4px !important;
     border-radius: 4px !important;
Line 62: Line 76:
}
}


/* =============================== */
/* ---------------------------------------------------------- */
/* MAIN PAGE SPACING FIX           */
/* MAIN PAGE SPACING FIX                                     */
/* =============================== */
/* ---------------------------------------------------------- */


/* Remove unwanted top spacing on the main page */
body.page-Main_Page .mw-body,
body.page-Main_Page .mw-body,
body.page-Main_Page #content {
body.page-Main_Page #content {
Line 72: Line 87:
}
}


/* Ensure consistent spacing on main page content */
body.page-Main_Page .mw-body-content {
body.page-Main_Page .mw-body-content {
     padding-top: 0 !important;
     padding-top: 0 !important;
}
/* HERO SECTION */
.bw-hero {
    padding: 60px 30px;
    text-align: center;
    background: white;
    border-top: 4px solid transparent;
    border-image: linear-gradient(to right, #FF9933, white, #138808) 1;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}
.bw-welcome {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    border: none !important;
}
.bw-brand {
    color: #3366cc;
}
.bw-tagline {
    font-size: 18px;
    color: #555;
    margin: 0 0 25px 0;
}
.bw-search-form {
    display: inline-flex;
    gap: 10px;
}
.bw-search-input {
    width: 360px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
}
.bw-search-btn {
    padding: 12px 20px;
    background: #0b57d0;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.bw-search-btn:hover {
    background: #0847b0;
}
/* =============================== */
/* FULL MOBILE FIX — HERO + SEARCH */
/* =============================== */
@media (max-width: 600px) {
    /* Hero section padding reduced */
    .bw-hero {
        padding: 30px 15px;
    }
    /* Heading smaller on mobile */
    .bw-welcome {
        font-size: 28px;
        margin-bottom: 8px;
    }
    /* Subtitle smaller */
    .bw-tagline {
        font-size: 15px;
        margin-bottom: 20px;
    }
    /* STACK search bar + button */
    .bw-search-form {
        display: flex;
        flex-direction: column; 
        width: 100%;
        gap: 10px;
        align-items: stretch;
    }
    /* MAKE SEARCH FULL WIDTH */
    .bw-search-input {
        width: 100% !important;
        max-width: 100%;
        padding: 12px 14px;
        font-size: 16px;
        box-sizing: border-box;
    }
    /* MAKE BUTTON FULL WIDTH */
    .bw-search-btn {
        width: 100% !important;
        padding: 12px;
        font-size: 16px;
        text-align: center;
        box-sizing: border-box;
    }
}
}

Revision as of 21:35, 8 December 2025

/* ---------------------------------------------------------- */
/* CUSTOM HEADER LOGO                                         */
/* ---------------------------------------------------------- */

/* Hide MediaWiki's built-in title and logo */
.mw-wiki-title,
.mw-logo-wordmark,
#p-logo-text {
    display: none !important;
}

/* Replace with your custom BharatWikipedia SVG logo */
.mw-logo-wordmark {
    display: block !important;
    width: 220px;              /* Logo width */
    height: 40px;              /* Logo height */
    margin-top: 15px;          /* Space above logo */
    background-image: url("https://bharatwikipedia.org/images/BharatWikipedia.svg");
    background-repeat: no-repeat;
    background-size: contain;  /* Scale SVG without distortion */
    text-indent: -9999px;      /* Hide any text inside the element */
    overflow: hidden;
    white-space: nowrap;
}

/* ---------------------------------------------------------- */
/* FOOTER BADGES (ConnexAbility + Powered by MediaWiki)       */
/* ---------------------------------------------------------- */

/* Places footer icons in a row, aligned to the right */
#footer-icons {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 5px;                  /* Space between icons */
}

/* Add your ConnexAbility badge BEFORE MediaWiki badge */
#footer-icons::before {
    content: "";               /* Required for pseudo-element */
    display: inline-flex;
    justify-content: center;
    align-items: center;

    /* Badge size */
    width: 135px;
    height: 45px;

    /* Badge image */
    background-image: url("/images/AConnexAbilityProject.svg");
    background-size: 78% auto;
    background-position: center;
    background-repeat: no-repeat;

    /* Border + styling */
    background-color: #fff;
    border: 1px solid #a2a9b1;
    border-radius: 4px;

    padding: 8px 8px;
    box-sizing: border-box;
}

/* Style the default "Powered by MediaWiki" icon */
#footer-poweredbyico a {
    display: inline-flex !important;
    align-items: center !important;
    height: 45px !important;
    padding: 8px 8px !important;

    /* Border + background to match ConnexAbility badge */
    border: 1px solid #72777d !important;
    border-radius: 4px !important;
    background-color: #fff !important;
}

/* ---------------------------------------------------------- */
/* MAIN PAGE SPACING FIX                                      */
/* ---------------------------------------------------------- */

/* Remove unwanted top spacing on the main page */
body.page-Main_Page .mw-body,
body.page-Main_Page #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure consistent spacing on main page content */
body.page-Main_Page .mw-body-content {
    padding-top: 0 !important;
}