Jump to content

MediaWiki:Common.css: Difference between revisions

From A Modern Way To Be Known
No edit summary
No edit summary
Line 86: Line 86:


/* =============================== */
/* =============================== */
/* HERO SECTION                    */
/* TRICOLOR TOP LINE */
/* =============================== */
 
/* Beautiful tricolor gradient (Saffron → White → Green) */
.bw-hero {
.bw-hero {
     width: 100%;
     padding: 50px 20px;
     padding: 60px 20px;
     text-align: center;
     background: white;
     background: white;


    /* Tricolor gradient */
     border-top: 10px solid transparent;
     border-top: 10px solid transparent;
    border-radius: 12px 12px 0 0; /* rounded ends like your example */
     border-image: linear-gradient(to right,
     border-image: linear-gradient(to right,
         #FF9933,   /* Saffron */
         #FF9933,  
         white,
         white,  
         #138808   /* Green */
         #138808
     ) 1;
     ) 1;


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


.bw-hero-inner {
/* HEADLINE */
     max-width: 900px;
.bw-welcome {
     margin: 0 auto;
    font-size: 48px;
     font-weight: 700;
     margin: 0 0 10px 0;
}
}


.bw-title {
.bw-brand {
     font-size: 48px;
     color: #3366cc; /* Your blue heading */
    font-weight: 700;
    margin: 0;
}
}


.bw-subtitle {
/* SUBTEXT */
     font-size: 18px;
.bw-tagline {
    margin: 15px 0 30px;
     font-size: 20px;
     color: #555;
     color: #555;
    margin-bottom: 35px;
}
}


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


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


.bw-search-btn {
.bw-search-btn {
     padding: 12px 26px;
     padding: 12px 22px;
    font-size: 16px;
     background: #0b57d0;
     background: #0b57d0;
     color: white;
     color: white;
    font-size: 18px;
     border: none;
     border: none;
     border-radius: 10px;
     border-radius: 8px;
     cursor: pointer;
     cursor: pointer;
    transition: 0.2s;
}
}


.bw-search-btn:hover {
.bw-search-btn:hover {
     background: #0847b0;
     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;
}
}

Revision as of 05:02, 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;
}

/* =============================== */
/* TRICOLOR TOP LINE */
.bw-hero {
    padding: 50px 20px;
    text-align: center;
    background: white;

    /* Tricolor gradient */
    border-top: 10px solid transparent;
    border-image: linear-gradient(to right,
        #FF9933, 
        white, 
        #138808
    ) 1;

    border-radius: 12px 12px 0 0;
}

/* HEADLINE */
.bw-welcome {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.bw-brand {
    color: #3366cc; /* Your blue heading */
}

/* SUBTEXT */
.bw-tagline {
    font-size: 20px;
    color: #555;
    margin-bottom: 35px;
}

/* SEARCH BAR */
.bw-search-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.bw-search-btn {
    padding: 12px 22px;
    background: #0b57d0;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

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