MediaWiki:Common.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 🌟 Global Bio Index – Updated Final */
/* Header Container */
.gbi-header {
display: flex;
width: 100%;
height: 320px;
margin-bottom: 30px;
position: relative;
gap: 0;
}
/* Profile Image Container */
.gbi-photo {
width: 30%;
height: 100%;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
border-radius: 14px 0 0 14px;
background: #e2e6ee;
padding: 0;
}
/* Profile Image */
.gbi-img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center; /* important fix */
border-radius: inherit;
}
/* Banner Container */
.gbi-banner {
width: 70%;
height: 100%;
position: relative;
overflow: hidden;
border-radius: 0 14px 14px 0;
background-color: #c8cdd6;
padding: 0;
}
/* Banner Image */
.gbi-banner-img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center; /* keep focused */
display: block;
}
/* Text Overlay */
.gbi-banner-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 5;
padding: 25px;
background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
color: #ffffff;
}
/* Title Text */
.gbi-title {
font-size: 32px;
font-weight: 800;
margin: 0;
text-shadow: 0 0 8px rgba(0,0,0,0.7);
}
/* Designation */
.gbi-designation {
font-size: 18px;
opacity: 0.95;
margin-top: 6px;
}
/* Body Layout */
.gbi-layout {
display: flex;
gap: 25px;
margin-top: 15px;
}
.gbi-content {
width: 65%;
line-height: 1.7;
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: 260px !important;
border-radius: 14px !important;
}
.gbi-banner-overlay {
padding: 18px;
}
.gbi-title {
font-size: 26px;
}
.gbi-content, .gbi-infobox {
width: 100%;
}
}