Jump to content

MediaWiki:Common.css: Difference between revisions

From A Modern Way To Be Known
No edit summary
No edit summary
Line 89: Line 89:
/* =============================== */
/* =============================== */


/* Beautiful tricolor gradient (Saffron → White → Green) */
.bw-hero {
.bw-hero {
     width: 100%;
     width: 100%;
Line 94: Line 95:
     background: white;
     background: white;


    /* FULL INDIAN FLAG COLOR STRIP */
     border-top: 10px solid transparent;
     border-top: 10px solid transparent;
     border-image: linear-gradient(to right,  
    border-radius: 12px 12px 0 0; /* rounded ends like your example */
 
     border-image: linear-gradient(to right,
         #FF9933,  /* Saffron */
         #FF9933,  /* Saffron */
         white,  
         white,
         #138808/* Green */
         #138808   /* Green */
        #0D47A1    /* Chakra blue */
     ) 1;
     ) 1;


     border-bottom: 8px solid #138808;  
     border-bottom: 8px solid #138808;
     text-align: center;
     text-align: center;
     margin: 0 auto;
     margin: 0 auto;

Revision as of 05:00, 8 December 2025

/* ---------------------------------------------------------- */
/* 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;
}
/* =============================== */
/* MAIN PAGE SPACING FIX           */
/* =============================== */

/* Remove MediaWiki default top space on Main Page */
body.page-Main_Page .mw-body,
body.page-Main_Page #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Add clean spacing below the header */
body.page-Main_Page .mw-body-content {
    padding-top: 0 !important;
}

/* =============================== */
/* HERO SECTION                    */
/* =============================== */

/* Beautiful tricolor gradient (Saffron → White → Green) */
.bw-hero {
    width: 100%;
    padding: 60px 20px;
    background: white;

    border-top: 10px solid transparent;
    border-radius: 12px 12px 0 0; /* rounded ends like your example */

    border-image: linear-gradient(to right,
        #FF9933,   /* Saffron */
        white,
        #138808    /* Green */
    ) 1;

    border-bottom: 8px solid #138808;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
}

.bw-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

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

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

/* =============================== */
/* SEARCH BAR                      */
/* =============================== */

.bw-search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

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

.bw-search-btn {
    padding: 12px 26px;
    font-size: 16px;
    background: #0b57d0;
    color: white;
    border: none;
    border-radius: 10px;
    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 STYLE (Featured, DYK)       */
/* =============================== */

.bw-box {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;
}

/* =============================== */
/* CARDS SECTION                   */
/* =============================== */

.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: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #0b57d0;
    transition: 0.2s ease;
}

.bw-card:hover {
    background: #eef3ff;
    transform: translateY(-2px);
}

/* =============================== */
/* CATEGORY GRID                   */
/* =============================== */

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

.bw-category-grid div {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    text-align: center;
    font-size: 18px;
}

.bw-category-grid div:hover {
    background: #eef3ff;
}

/* =============================== */
/* FOOTER STRIP                    */
/* =============================== */

.bw-footer-strip {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #ff9933, white, #138808);
    margin-top: 60px;
}