MediaWiki:Common.css

Revision as of 21:06, 8 December 2025 by Lokesh (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ---------------------------------------------------------- */
/* CUSTOM HEADER LOGO                                         */
/* ---------------------------------------------------------- */

.mw-wiki-title,
.mw-logo-wordmark,
#p-logo-text {
    display: none !important;
}

.mw-logo-wordmark {
    display: block !important;
    width: 220px;
    height: 40px;
    margin-top: 15px;
    background-image: url("https://bharatwikipedia.org/images/BharatWikipedia.svg");
    background-repeat: no-repeat;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
}

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

#footer-icons {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 5px;
}

#footer-icons::before {
    content: "";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 135px;
    height: 45px;
    background-image: url("/images/AConnexAbilityProject.svg");
    background-size: 78% auto;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    padding: 8px 8px;
    box-sizing: border-box;
}

#footer-poweredbyico a {
    display: inline-flex !important;
    align-items: center !important;
    height: 45px !important;
    padding: 8px 8px !important;
    border: 1px solid #72777d !important;
    border-radius: 4px !important;
    background-color: #fff !important;
}

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

body.page-Main_Page .mw-body,
body.page-Main_Page #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-Main_Page .mw-body-content {
    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;
}

/* =============================== */
/* BIOGRAPHY INFOBOX (IMPROVED)   */
/* =============================== */

.bio-box {
    float: right;
    width: 340px; /* increased to match screenshot */
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 0; /* remove padding to match screenshot */
    overflow: hidden;
}

/* BLUE NAME HEADER */
.bio-header {
    background: #e8f0fe;
    color: #111;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #d0d7de;
}

/* VERIFIED BADGE */
.verified-badge {
    vertical-align: middle;
    margin-left: 6px;
}

/* IMAGE */
.bio-img {
    text-align: center;
    padding: 10px;
}

.bio-caption {
    font-size: 12px;
    color: #444;
    margin-top: 4px;
    font-style: italic;
}

/* INFO TABLE */
.bio-table {
    width: 100%;
    border-collapse: collapse;
}

.bio-table th {
    background: #f5f7ff;
    width: 35%;
    padding: 6px;
    font-weight: bold;
    border-bottom: 1px solid #e5e5e5;
}

.bio-table td {
    padding: 6px;
    border-bottom: 1px solid #e5e5e5;
}
/* BIO HEADER FIX */
.bio-header {
    background: #e8f0fe;
    color: #111;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #d0d7de;

    display: flex;
    justify-content: center;
    align-items: center; /* ALIGN name + badge perfectly */
    gap: 6px;           /* small space between them */
}

/* name stays normal */
.bio-name {
    line-height: 1;
}

/* badge becomes perfectly centered */
.bio-badge img {
    height: 18px !important;
    width: auto;
    vertical-align: middle;
    margin-bottom: 2px; /* tweak for perfect baseline */
}