Jump to content

MediaWiki:Common.css

From A Modern Way To Be Known
Revision as of 04:55, 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)       */
/* ---------------------------------------------------------- */

/* Ensure footer icons sit in one row, aligned right */
#footer-icons {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-direction: row !important; /* NORMAL left→right order */
    gap: 5px;
}

/* ConnexAbility Badge — placed BEFORE MediaWiki badge */
#footer-icons::before {
    content: "";
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 135px;           
    height: 45px;            /* INCREASED HEIGHT */
    
    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;         /* reduced padding so logo stays centered */
    box-sizing: border-box;
}


/* Make MediaWiki badge and ConnexAbility badge align perfectly */
#footer-poweredbyico a {
    display: inline-flex !important;
    align-items: center !important;
    height: 45px !important;   /* MATCH ConnexAbility box height */
    padding: 8px 8px !important;
    border: 1px solid #72777d !important;
    border-radius: 4px !important;
    background-color: #fff !important;
}
/* HERO */
.bw-hero {
    width: 100%;
    padding: 80px 20px;
    background: white;
    border-top: 8px solid #ff9933;
    border-bottom: 8px solid #138808;
    text-align: center;
}

.bw-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.bw-subtitle {
    font-size: 18px;
    margin: 10px 0 25px;
    color: #555;
}

/* SEARCH BAR */
.bw-search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.bw-search-input {
    width: 420px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.bw-search-btn {
    padding: 12px 24px;
    font-size: 16px;
    background: #0b57d0;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.bw-search-btn:hover {
    background: #0847b0;
}

/* SECTIONS */
.bw-section {
    max-width: 1080px;
    margin: 50px auto;
    padding: 0 20px;
}

.bw-section h2 {
    border-left: 5px solid #0b57d0;
    padding-left: 10px;
    font-size: 26px;
    margin-bottom: 20px;
}

/* BOX */
.bw-box {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

/* CARDS */
.bw-cards .bw-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.bw-card {
    display: block;
    padding: 20px;
    text-align: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #0b57d0;
}

.bw-card:hover {
    background: #eef3ff;
}

/* CATEGORY GRID */
.bw-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* FOOTER STRIP */
.bw-footer-strip {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #ff9933, white, #138808);
    margin-top: 50px;
}
/* Fix top spacing so tricolor bars don't overlap the page header */
body.page-Main_Page .mw-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove extra default margin above first section */
body.page-Main_Page #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Add clean spacing BELOW the tricolor bars */
.bw-hero {
    margin-top: 20px !important;
}