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


/* Header Container */
/* Header Container */
Line 5: Line 5:
     display: flex;
     display: flex;
     width: 100%;
     width: 100%;
     height: 330px;
     height: 300px;
     margin-bottom: 30px;
     margin-bottom: 30px;
     position: relative;
     position: relative;
Line 14: Line 14:
.gbi-photo {
.gbi-photo {
     width: 30%;
     width: 30%;
    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: #e5e8ee;
     background: #d9dde4;
    padding: 0 !important;
    margin: 0 !important;
}
}


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


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


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


Line 70: Line 51:
.gbi-banner-overlay {
.gbi-banner-overlay {
     position: absolute;
     position: absolute;
     bottom: 0;
     inset: 0;
     left: 0;
     z-index: 5;
     right: 0;
    display: flex;
     z-index: 10;
     flex-direction: column;
     justify-content: flex-end;
     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.55), 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: 34px;
     font-size: 30px;
     font-weight: 800;
     font-weight: 700;
     margin: 0;
     margin: 0;
    line-height: 1.2;
     text-shadow: 0px 0px 6px rgba(0,0,0,0.6);
     text-shadow: 0 0 10px rgba(0,0,0,0.8);
}
}


/* Designation Text */
/* Designation */
.gbi-designation {
.gbi-designation {
     font-size: 18px;
     font-size: 17px;
     opacity: 0.95;
     opacity: 0.9;
     margin-top: 6px;
     margin-top: 6px;
}
}
Line 101: Line 80:
     display: flex;
     display: flex;
     gap: 25px;
     gap: 25px;
     margin-top: 20px;
     margin-top: 15px;
}
}


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


/* Mobile Responsive */
/* Mobile View */
@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 {
         width: 100% !important;
         width: 100% !important;
         height: 260px !important;
         height: 240px !important;
         border-radius: 14px !important;
         border-radius: 14px !important;
     }
     }
     .gbi-banner-overlay {
     .gbi-layout {
        padding: 18px;
         flex-direction: column;
    }
    .gbi-title {
         font-size: 26px;
     }
     }
     .gbi-content,
     .gbi-content, .gbi-infobox {
    .gbi-infobox {
         width: 100%;
         width: 100%;
     }
     }
}
}

Revision as of 06:49, 27 November 2025

/* 🌟 Global Bio Index – Fixed FINAL */

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

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

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

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

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

/* Text Overlay */
.gbi-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    color: #ffffff;
}

/* Title Text */
.gbi-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0px 0px 6px rgba(0,0,0,0.6);
}

/* Designation */
.gbi-designation {
    font-size: 17px;
    opacity: 0.9;
    margin-top: 6px;
}

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

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

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