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 – Updated Final */
/* 🌟 Global Bio Index — FINAL CSS */


/* Header Container */
/* Header Container */
Line 5: Line 5:
     display: flex;
     display: flex;
     width: 100%;
     width: 100%;
     height: 320px;
     height: 330px;
     margin-bottom: 30px;
     margin-bottom: 30px;
     position: relative;
     position: relative;
Line 15: Line 15:
     width: 30%;
     width: 30%;
     height: 100%;
     height: 100%;
     overflow: hidden;
     overflow: hidden !important;
     display: flex;
     display: flex;
     justify-content: center;
     justify-content: center;
     align-items: center;
     align-items: center;
     border-radius: 14px 0 0 14px;
     border-radius: 14px 0 0 14px;
     background: #e2e6ee;
     background: #e5e8ee;
     padding: 0;
     padding: 0 !important;
    margin: 0 !important;
}
}


/* Profile Image */
/* MediaWiki File Wrapper Fix (Profile) */
.gbi-img {
.gbi-photo .gbi-img,
     width: 100%;
.gbi-photo .gbi-img img,
     height: 100%;
.gbi-photo a,
     object-fit: cover;
.gbi-photo span {
     object-position: center; /* important fix */
     width: 100% !important;
     border-radius: inherit;
     height: 100% !important;
     object-fit: cover !important;
     object-position: center !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
     line-height: 0 !important;
}
}


Line 38: Line 45:
     height: 100%;
     height: 100%;
     position: relative;
     position: relative;
     overflow: hidden;
     overflow: hidden !important;
     border-radius: 0 14px 14px 0;
     border-radius: 0 14px 14px 0;
     background-color: #c8cdd6;
     background: #d0d4dc;
     padding: 0;
     padding: 0 !important;
    margin: 0 !important;
}
}


/* Banner Image */
/* MediaWiki File Wrapper Fix (Banner) */
.gbi-banner-img {
.gbi-banner .gbi-banner-img,
     width: 100%;
.gbi-banner .gbi-banner-img img,
     height: 100%;
.gbi-banner a,
     object-fit: cover;
.gbi-banner span {
     object-position: center; /* keep focused */
     width: 100% !important;
     display: block;
     height: 100% !important;
     object-fit: cover !important;
     object-position: center !important;
     display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}
}


Line 59: Line 73:
     left: 0;
     left: 0;
     right: 0;
     right: 0;
     z-index: 5;
     z-index: 10;
     padding: 25px;
     padding: 25px;
     background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
     background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
     color: #ffffff;
     color: #ffffff;
    text-align: left;
    pointer-events: none;
}
}


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


/* Designation */
/* Designation Text */
.gbi-designation {
.gbi-designation {
     font-size: 18px;
     font-size: 18px;
Line 84: Line 101:
     display: flex;
     display: flex;
     gap: 25px;
     gap: 25px;
     margin-top: 15px;
     margin-top: 20px;
}
}


.gbi-content {
.gbi-content {
     width: 65%;
     width: 65%;
     line-height: 1.7;
     line-height: 1.75;
     font-size: 16px;
     font-size: 16px;
    color: #222;
}
}
.gbi-infobox {
.gbi-infobox {
Line 96: Line 114:
}
}


/* Mobile View */
/* Mobile Responsive */
@media(max-width: 900px) {
@media(max-width: 900px) {
     .gbi-header {
     .gbi-header {
Line 102: Line 120:
         height: auto;
         height: auto;
     }
     }
     .gbi-photo, .gbi-banner {
     .gbi-photo,
    .gbi-banner {
         width: 100% !important;
         width: 100% !important;
         height: 260px !important;
         height: 260px !important;
Line 113: Line 132:
         font-size: 26px;
         font-size: 26px;
     }
     }
     .gbi-content, .gbi-infobox {
     .gbi-content,
    .gbi-infobox {
         width: 100%;
         width: 100%;
     }
     }
}
}

Revision as of 06:48, 27 November 2025

/* 🌟 Global Bio Index — FINAL CSS */

/* Header Container */
.gbi-header {
    display: flex;
    width: 100%;
    height: 330px;
    margin-bottom: 30px;
    position: relative;
    gap: 0;
}

/* Profile Image Container */
.gbi-photo {
    width: 30%;
    height: 100%;
    overflow: hidden !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px 0 0 14px;
    background: #e5e8ee;
    padding: 0 !important;
    margin: 0 !important;
}

/* MediaWiki File Wrapper Fix (Profile) */
.gbi-photo .gbi-img,
.gbi-photo .gbi-img img,
.gbi-photo a,
.gbi-photo span {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

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

/* MediaWiki File Wrapper Fix (Banner) */
.gbi-banner .gbi-banner-img,
.gbi-banner .gbi-banner-img img,
.gbi-banner a,
.gbi-banner span {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

/* Text Overlay */
.gbi-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
    color: #ffffff;
    text-align: left;
    pointer-events: none;
}

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

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

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

.gbi-content {
    width: 65%;
    line-height: 1.75;
    font-size: 16px;
    color: #222;
}
.gbi-infobox {
    width: 35%;
}

/* Mobile Responsive */
@media(max-width: 900px) {
    .gbi-header {
        flex-direction: column;
        height: auto;
    }
    .gbi-photo,
    .gbi-banner {
        width: 100% !important;
        height: 260px !important;
        border-radius: 14px !important;
    }
    .gbi-banner-overlay {
        padding: 18px;
    }
    .gbi-title {
        font-size: 26px;
    }
    .gbi-content,
    .gbi-infobox {
        width: 100%;
    }
}