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 171: Line 171:
.gbi-photo .thumbinner,
.gbi-photo .thumbinner,
.gbi-photo .thumbcaption {
.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;
     display: none !important;
}
}

Revision as of 04:12, 26 November 2025

/* 🌟 GlobalBioIndex - Modern Biography UI */
.gbi-header {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
}

/* Profile image - Left 30% */
.gbi-photo {
    flex-basis: 30%;
    max-width: 30%;
    position: relative;
    z-index: 10;
}

.gbi-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom-right-radius: 15px;
    border-right: 4px solid #fff;
}

/* Cover Banner - Right 70% */
.gbi-banner {
    flex-basis: 70%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gbi-banner-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #fff;
}

.gbi-banner-overlay h1 {
    margin: 0;
    font-size: 29px;
    font-weight: bold;
}

.gbi-banner-overlay .gbi-designation {
    font-size: 17px;
    opacity: 0.85;
    font-weight: 500;
    margin-top: 5px;
}

/* 📰 Content Layout: Biograpy left + Infobox right */
.gbi-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.gbi-content {
    width: 68%;
    font-size: 16px;
    line-height: 1.6em;
}

.gbi-infobox {
    width: 32%;
}

.gbi-infobox table {
    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){
    .gbi-layout {
        flex-direction: column;
    }
    .gbi-content, .gbi-infobox {
        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;
}