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
Tag: Manual revert
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* 🌟 Global Bio Index Premium Bio UI */
/* 🌟 Global Bio Index – Fixed FINAL */


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


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


/* 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 !important;
    display: block;
}
 
/* ❌ Remove thumbnail containers completely */
.gbi-photo .thumb,
.gbi-photo .thumbinner,
.gbi-photo .mw-thumb-inner,
.gbi-photo .thumbimage,
.gbi-photo .mw-file-element,
.gbi-photo .thumbcaption {
    all: unset !important;
    display: block !important;
}
}


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


/* 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;
     display: block;
}
}


/* Overlay Text */
/* Text Overlay */
.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%);
     z-index: 5;
    color: #fff;
     display: flex;
     display: flex;
     align-items: center;
     flex-direction: column;
     padding-left: 28px;
    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 {
.gbi-title {
    font-size: 30px;
    font-weight: 700;
     margin: 0;
     margin: 0;
     font-size: 32px;
     color: #ffffff !important;
    font-weight: 700;
     text-shadow: 0px 0px 6px rgba(0,0,0,0.6);
     line-height: 38px;
}
}


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


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


.gbi-content {
.gbi-content {
     width: 64%;
     width: 65%;
    line-height: 1.6;
     font-size: 16px;
     font-size: 16px;
    line-height: 1.65;
    background: #fff;
}
}
/* 📌 Infobox Right Panel */
.gbi-infobox {
.gbi-infobox {
     width: 36%;
     width: 35%;
}
}


/* 🔹 Responsive */
/* Mobile View */
@media(max-width: 900px){
@media(max-width: 900px){
     .gbi-header {
     .gbi-header {
Line 105: Line 100:
         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: 240px !important;
         border-radius: 14px !important;
         border-radius: 14px !important;
     }
     }
Line 115: Line 108:
         flex-direction: column;
         flex-direction: column;
     }
     }
     .gbi-content,
     .gbi-content, .gbi-infobox {
    .gbi-infobox {
         width: 100%;
         width: 100%;
     }
     }
}
}
/* FORCE REAL FIX */
.gbi-photo .gbi-img,
.gbi-photo .gbi-img img,
.gbi-photo a.image,
.gbi-photo span {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}
.gbi-banner .gbi-banner-img,
.gbi-banner .gbi-banner-img img,
.gbi-banner a.image,
.gbi-banner span {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}
/* Remove any padding/margin from MW wrappers */
.gbi-photo a, .gbi-banner a {
    margin: 0 !important;
    padding: 0 !important;
}
/* Remove invisible alignment gaps */
.gbi-photo span,
.gbi-banner span {
    display: block !important;
    line-height: 0 !important;
}
.gbi-social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}
.gbi-social {
    width: 22px;
    height: 22px;
    display: inline-block;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.4));
}
/* Icon images (upload these or use hosted icons) */
.gbi-social.website  { background-image: url(/images/icons/web.png); }
.gbi-social.facebook { background-image: url(/images/icons/facebook.png); }
.gbi-social.instagram{ background-image: url(/images/icons/instagram.png); }
.gbi-social.twitter  { background-image: url(/images/icons/twitter.png); }
.gbi-social.linkedin { background-image: url(/images/icons/linkedin.png); }
.gbi-social.youtube  { background-image: url(/images/icons/youtube.png); }

Latest revision as of 09:52, 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;
    color: #ffffff !important;
    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%;
    }
}

/* FORCE REAL FIX */
.gbi-photo .gbi-img,
.gbi-photo .gbi-img img,
.gbi-photo a.image,
.gbi-photo span {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

.gbi-banner .gbi-banner-img,
.gbi-banner .gbi-banner-img img,
.gbi-banner a.image,
.gbi-banner span {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

/* Remove any padding/margin from MW wrappers */
.gbi-photo a, .gbi-banner a {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove invisible alignment gaps */
.gbi-photo span,
.gbi-banner span {
    display: block !important;
    line-height: 0 !important;
}
.gbi-social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gbi-social {
    width: 22px;
    height: 22px;
    display: inline-block;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.4));
}

/* Icon images (upload these or use hosted icons) */
.gbi-social.website  { background-image: url(/images/icons/web.png); }
.gbi-social.facebook { background-image: url(/images/icons/facebook.png); }
.gbi-social.instagram{ background-image: url(/images/icons/instagram.png); }
.gbi-social.twitter  { background-image: url(/images/icons/twitter.png); }
.gbi-social.linkedin { background-image: url(/images/icons/linkedin.png); }
.gbi-social.youtube  { background-image: url(/images/icons/youtube.png); }