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 Premium Bio UI */
/* 🌟 Global Bio Index Modern Biography UI */


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


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


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


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


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


/* Banner Image */
.gbi-banner-img {
.gbi-banner-img {
     width: 100%;
     width: 100% !important;
     height: 100%;
     height: 100% !important;
     object-fit: cover;
     object-fit: cover !important;
     display: block;
    border-radius: inherit;
     display: block !important;
}
}


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


/* Name Text */
.gbi-title {
.gbi-title {
     margin: 0;
     margin: 0;
     font-size: 32px;
     font-size: 32px;
    line-height: 36px;
     font-weight: 700;
     font-weight: 700;
    line-height: 38px;
}
}


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


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


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


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


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

Revision as of 04:30, 26 November 2025

/* 🌟 Global Bio Index Modern Biography UI */

/* Header Layout */
.gbi-header {
    display: flex;
    width: 100%;
    height: 280px;
    margin-bottom: 25px;
}

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

/* Profile Image */
.gbi-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit;
    display: block !important;
}

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

/* Banner Box */
.gbi-banner {
    width: 70%;
    position: relative;
    overflow: hidden;
    border-radius: 0 14px 14px 0;
    background:#d3d7de; /* fallback */
}

/* Banner Image */
.gbi-banner-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit;
    display: block !important;
}

/* Banner Overlay Text Area */
.gbi-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 25px;
}

/* Name Text */
.gbi-title {
    margin: 0;
    font-size: 32px;
    line-height: 36px;
    font-weight: 700;
}

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

/* Body Layout */
.gbi-layout {
    display: flex;
    gap: 30px;
    width: 100%;
}

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

.gbi-infobox {
    width: 35%;
}

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