Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 20: Line 20:
     align-items: center;
     align-items: center;
     background: #d9dde4;
     background: #d9dde4;
    border-radius: 14px 0 0 14px;
 
     overflow: hidden;
     overflow: hidden;
}
}

Revision as of 06:52, 27 November 2025

/* 🌟 Global Bio Index – Improved Layout & Fixes */

/* Header Container */
.gbi-header {
    display: flex;
    width: 100%;
    height: 300px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

/* Profile Image Container */
.gbi-photo {
    width: 30%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #d9dde4;
   
    overflow: hidden;
}

/* Profile Image */
.gbi-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Banner Container */
.gbi-banner {
    width: 70%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0 14px 14px 0;
    background: #c8cdd6;
}

/* Banner Image */
.gbi-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Fixes blank spaces */
    display: block;
}

/* Banner Text Overlay */
.gbi-banner-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 10;

    /* Clear bottom fade for better visibility */
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.0)
    );
    color: #fff;
}

/* Title Text */
.gbi-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0px 3px 10px rgba(0,0,0,0.7);
}

/* Designation */
.gbi-designation {
    font-size: 18px;
    margin-top: 6px;
    opacity: 0.95;
}

/* Body Layout */
.gbi-layout {
    display: flex;
    gap: 25px;
    margin-top: 15px;
}

.gbi-content {
    width: 65%;
    line-height: 1.7;
    font-size: 17px;
    text-align: justify;
}

.gbi-infobox {
    width: 35%;
}

/* 🔹 Mobile Responsive */
@media(max-width: 900px){
    .gbi-header {
        flex-direction: column;
        height: auto;
    }
    .gbi-photo {
        width: 100% !important;
        height: 250px !important;
        border-radius: 14px 14px 0 0 !important;
    }
    .gbi-banner {
        width: 100% !important;
        height: 250px !important;
        border-radius: 0 0 14px 14px !important;
    }
    .gbi-title {
        font-size: 24px;
    }
    .gbi-designation {
        font-size: 15px;
    }
    .gbi-layout {
        flex-direction: column;
    }
    .gbi-content, .gbi-infobox {
        width: 100%;
    }
}