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
No edit summary
Line 1: Line 1:
/* 🌟 Global Bio Index Modern Layout */
/* 🌟 Global Bio Index Premium Bio UI */


.gbi-header {
.gbi-header {
     display: flex;
     display: flex;
     width: 100%;
     width: 100%;
     height: 250px;
     height: 280px;
     overflow: hidden;
     gap: 0;
     margin-bottom: 25px;
     margin-bottom: 25px;
    gap: 0px;
}
}


/* Profile Image 30% */
/* 📌 Profile Image 30% */
.gbi-photo {
.gbi-photo {
     flex-basis: 30%;
     flex: 0 0 30%;
     max-width: 30%;
     display: flex;
    justify-content: center;
    align-items: center;
    background: #eaf0f7;
    border-radius: 14px 0 0 14px;
     overflow: hidden;
     overflow: hidden;
    border-radius: 12px 0 0 12px;
}
}
.gbi-img {
.gbi-img {
     width: 100% !important;
     width: 100% !important;
     height: 250px !important;
     height: 100% !important;
     object-fit: cover !important;
     object-fit: cover !important;
     border-radius: 12px 0 0 12px;
     border-radius: 14px 0 0 14px;
    display: block;
}
}


/* Remove scroll from default thumb container */
/* Remove thumbnail containers completely */
.gbi-photo .thumb,
.gbi-photo .thumb,
.gbi-photo .thumbinner,
.gbi-photo .mw-thumb-inner,
.gbi-photo .mw-thumb-inner,
.gbi-photo .thumbimage,
.gbi-photo .thumbimage,
.gbi-photo .mw-file-element {
.gbi-photo .mw-file-element,
    width: 100% !important;
    height: 250px !important;
    overflow: hidden !important;
    border: none !important;
    padding: 0 !important;
}
.gbi-photo .thumbinner,
.gbi-photo .thumbcaption {
.gbi-photo .thumbcaption {
     display: none !important;
    all: unset !important;
     display: block !important;
}
}


/* Banner 70% */
/* 🖼 Banner — right 70% */
.gbi-banner {
.gbi-banner {
     flex-basis: 70%;
     flex: 0 0 70%;
    height: 250px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 0 12px 12px 0;
     position: relative;
     position: relative;
     overflow: hidden !important;
    height: 100%;
    border-radius: 0 14px 14px 0;
     overflow: hidden;
}
 
.gbi-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
}


/* Text Overlay on Banner */
/* Overlay Text */
.gbi-banner-overlay {
.gbi-banner-overlay {
     background: linear-gradient(to right, rgba(0,0,0,0.55), transparent);
    position: absolute;
    inset: 0;
     background: linear-gradient(to right, rgba(0,0,0,0.6), transparent 75%);
    color: #fff;
     display: flex;
     display: flex;
    height: 100%;
     align-items: center;
     align-items: center;
     padding-left: 25px;
     padding-left: 28px;
    color: #fff;
}
}
.gbi-title {
.gbi-title {
     font-size: 28px;
    margin: 0;
     font-size: 32px;
     font-weight: 700;
     font-weight: 700;
    margin: 0;
     line-height: 38px;
     line-height: 32px;
}
}
.gbi-designation {
.gbi-designation {
     font-size: 16px;
     margin-top: 6px;
     opacity: 0.9;
     font-size: 17px;
     font-weight: 500;
     font-weight: 500;
     margin-top: 5px;
     opacity: 0.92;
}
}


/* MAIN BODY LAYOUT */
/* 📰 Body Layout */
.gbi-layout {
.gbi-layout {
     display: flex;
     display: flex;
     gap: 25px;
     gap: 30px;
     margin-top: 20px;
     margin-top: 30px;
}
}
.gbi-content {
.gbi-content {
     width: 65%;
     width: 64%;
    line-height: 1.6em;
     font-size: 16px;
     font-size: 16px;
    line-height: 1.65;
    background: #fff;
}
}
/* 📌 Infobox Right Panel */
.gbi-infobox {
.gbi-infobox {
     width: 35%;
     width: 36%;
}
}


/* Responsive */
/* 🔹 Responsive */
@media(max-width: 900px){
@media(max-width: 900px){
     .gbi-header {
     .gbi-header {
Line 95: Line 105:
         height: auto;
         height: auto;
     }
     }
     .gbi-photo, .gbi-banner {
     .gbi-photo,
    .gbi-banner,
    .gbi-banner-img {
         width: 100% !important;
         width: 100% !important;
         max-width: 100% !important;
         height: 230px !important;
         flex-basis: auto !important;
         border-radius: 14px !important;
        height: 220px !important;
     }
     }
     .gbi-layout {
     .gbi-layout {
         flex-direction: column;
         flex-direction: column;
     }
     }
     .gbi-content, .gbi-infobox {
     .gbi-content,
    .gbi-infobox {
         width: 100%;
         width: 100%;
     }
     }
}
/* If banner image fails loading, show a neutral background */
.gbi-banner {
    background-color: #d8dce3;
}
}

Revision as of 04:28, 26 November 2025

/* 🌟 Global Bio Index Premium Bio UI */

.gbi-header {
    display: flex;
    width: 100%;
    height: 280px;
    gap: 0;
    margin-bottom: 25px;
}

/* 📌 Profile Image 30% */
.gbi-photo {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eaf0f7;
    border-radius: 14px 0 0 14px;
    overflow: hidden;
}

.gbi-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 14px 0 0 14px;
    display: block;
}

/* ❌ Remove thumbnail containers completely */
.gbi-photo .thumb,
.gbi-photo .thumbinner,
.gbi-photo .mw-thumb-inner,
.gbi-photo .thumbimage,
.gbi-photo .mw-file-element,
.gbi-photo .thumbcaption {
    all: unset !important;
    display: block !important;
}

/* 🖼 Banner — right 70% */
.gbi-banner {
    flex: 0 0 70%;
    position: relative;
    height: 100%;
    border-radius: 0 14px 14px 0;
    overflow: hidden;
}

.gbi-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay Text */
.gbi-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent 75%);
    color: #fff;
    display: flex;
    align-items: center;
    padding-left: 28px;
}

.gbi-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
}

.gbi-designation {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 500;
    opacity: 0.92;
}

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

.gbi-content {
    width: 64%;
    font-size: 16px;
    line-height: 1.65;
    background: #fff;
}

/* 📌 Infobox Right Panel */
.gbi-infobox {
    width: 36%;
}

/* 🔹 Responsive */
@media(max-width: 900px){
    .gbi-header {
        flex-direction: column;
        height: auto;
    }
    .gbi-photo,
    .gbi-banner,
    .gbi-banner-img {
        width: 100% !important;
        height: 230px !important;
        border-radius: 14px !important;
    }
    .gbi-layout {
        flex-direction: column;
    }
    .gbi-content,
    .gbi-infobox {
        width: 100%;
    }
}