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:
/* 🌟 GlobalBioIndex - Modern Biography UI */
/* 🌟 Global Bio Index Modern Layout */
 
.gbi-header {
.gbi-header {
     position: relative;
     display: flex;
     width: 100%;
     width: 100%;
     display: flex;
     height: 250px;
     flex-direction: row;
     overflow: hidden;
    align-items: flex-end;
     margin-bottom: 25px;
     margin-bottom: 25px;
     border-radius: 10px;
     gap: 0px;
    overflow: hidden;
}
}


/* Profile image - Left 30% */
/* Profile Image 30% */
.gbi-photo {
.gbi-photo {
     flex-basis: 30%;
     flex-basis: 30%;
     max-width: 30%;
     max-width: 30%;
     position: relative;
     overflow: hidden;
     z-index: 10;
     border-radius: 12px 0 0 12px;
}
.gbi-img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 12px 0 0 12px;
}
}


.gbi-photo img {
/* Remove scroll from default thumb container */
     width: 100%;
.gbi-photo .thumb,
     height: 250px;
.gbi-photo .mw-thumb-inner,
     object-fit: cover;
.gbi-photo .thumbimage,
     border-bottom-right-radius: 15px;
.gbi-photo .mw-file-element {
     border-right: 4px solid #fff;
     width: 100% !important;
     height: 250px !important;
     overflow: hidden !important;
     border: none !important;
     padding: 0 !important;
}
.gbi-photo .thumbinner,
.gbi-photo .thumbcaption {
    display: none !important;
}
}


/* Cover Banner - Right 70% */
/* Banner 70% */
.gbi-banner {
.gbi-banner {
     flex-basis: 70%;
     flex-basis: 70%;
     height: 250px;
     height: 250px;
     background-size: cover;
     background-size: cover !important;
     background-position: center;
     background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 0 12px 12px 0;
     position: relative;
     position: relative;
    overflow: hidden !important;
}
}


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


/* 📰 Content Layout: Biograpy left + Infobox right */
/* MAIN BODY LAYOUT */
.gbi-layout {
.gbi-layout {
     display: flex;
     display: flex;
     gap: 30px;
     gap: 25px;
     margin-top: 20px;
     margin-top: 20px;
}
}
.gbi-content {
.gbi-content {
     width: 68%;
     width: 65%;
    line-height: 1.6em;
     font-size: 16px;
     font-size: 16px;
    line-height: 1.6em;
}
}
.gbi-infobox {
.gbi-infobox {
     width: 32%;
     width: 35%;
}
}


.gbi-infobox table {
/* Responsive */
    width: 100%;
    font-size: 14px;
    background: #f9fafc;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px;
}
 
.gbi-infobox caption {
    font-size: 16px;
    font-weight: bold;
    background: #003a70;
    color: #fff;
    text-align: center;
    border-radius: 10px 10px 0 0;
    padding: 8px;
}
 
/* 📱 Responsive */
@media(max-width: 900px){
@media(max-width: 900px){
    .gbi-header {
        flex-direction: column;
        height: auto;
    }
    .gbi-photo, .gbi-banner {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: auto !important;
        height: 220px !important;
    }
     .gbi-layout {
     .gbi-layout {
         flex-direction: column;
         flex-direction: column;
Line 103: Line 107:
         width: 100%;
         width: 100%;
     }
     }
    .gbi-header {
        flex-direction: column;
        text-align: center;
    }
    .gbi-photo, .gbi-banner {
        max-width: 100%;
        flex-basis: 100%;
    }
    .gbi-photo img {
        height: 220px;
        border-bottom-right-radius: 0;
    }
}
/* ✨ Modern Infobox Table */
.gbi-infobox-table {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 14px;
}
.gbi-infobox-table th,
.gbi-infobox-table td {
    padding: 6px;
    vertical-align: top;
}
.gbi-infobox-table th {
    width: 30%;
    background: #f4f6f9;
    font-weight: 600;
}
.gbi-infobox-table caption {
    background: #003A70;
    color: #fff;
    font-size: 17px;
    padding: 10px;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}
/* Fix scrolling issue for biography profile images */
.gbi-photo .thumb,
.gbi-photo .mw-thumb-inner,
.gbi-photo .thumbimage,
.gbi-photo .mw-file-element {
    max-width: 100% !important;
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: none !important;
}
/* Remove scrollbars */
.gbi-photo,
.gbi-photo .thumb,
.gbi-photo .mw-thumb-inner {
    overflow: hidden !important;
}
/* Remove thumbnail borders/captions */
.gbi-photo .thumbinner,
.gbi-photo .thumbcaption {
    display: none !important;
}
/* 🔥 Banner Scroll Prevention */
.gbi-banner {
    flex-basis: 70%;
    height: 250px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    display: flex;
    align-items: flex-end;
    position: relative;
}
/* Remove scrollbars from any nested thumb wrappers */
.gbi-banner .thumb,
.gbi-banner .mw-thumb-inner,
.gbi-banner .thumbimage,
.gbi-banner .mw-file-element {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: none !important;
}
/* Disable scrollbars completely */
.gbi-banner::-webkit-scrollbar,
.gbi-photo::-webkit-scrollbar {
    display: none !important;
}
}

Revision as of 04:14, 26 November 2025

/* 🌟 Global Bio Index Modern Layout */

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

/* Profile Image 30% */
.gbi-photo {
    flex-basis: 30%;
    max-width: 30%;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}
.gbi-img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 12px 0 0 12px;
}

/* Remove scroll from default thumb container */
.gbi-photo .thumb,
.gbi-photo .mw-thumb-inner,
.gbi-photo .thumbimage,
.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 {
    display: none !important;
}

/* Banner 70% */
.gbi-banner {
    flex-basis: 70%;
    height: 250px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 0 12px 12px 0;
    position: relative;
    overflow: hidden !important;
}

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

/* MAIN BODY LAYOUT */
.gbi-layout {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}
.gbi-content {
    width: 65%;
    line-height: 1.6em;
    font-size: 16px;
}
.gbi-infobox {
    width: 35%;
}

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