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 Modern Layout */
.gbi-header {
display: flex;
width: 100%;
height: 250px;
overflow: hidden;
margin-bottom: 25px;
gap: 0px;
}
/* Profile Image 30% */
.gbi-photo {
flex-basis: 30%;
max-width: 30%;
overflow: hidden;
border-radius: 12px 0 0 12px;
}
.gbi-img {
width: 100% !important;
height: 250px !important;
object-fit: cover !important;
border-radius: 12px 0 0 12px;
}
/* Remove scroll from default thumb container */
.gbi-photo .thumb,
.gbi-photo .mw-thumb-inner,
.gbi-photo .thumbimage,
.gbi-photo .mw-file-element {
width: 100% !important;
height: 250px !important;
overflow: hidden !important;
border: none !important;
padding: 0 !important;
}
.gbi-photo .thumbinner,
.gbi-photo .thumbcaption {
display: none !important;
}
/* Banner 70% */
.gbi-banner {
flex-basis: 70%;
height: 250px;
background-size: cover !important;
background-position: center !important;
background-repeat: no-repeat !important;
border-radius: 0 12px 12px 0;
position: relative;
overflow: hidden !important;
}
/* Text Overlay on Banner */
.gbi-banner-overlay {
background: linear-gradient(to right, rgba(0,0,0,0.55), transparent);
display: flex;
height: 100%;
align-items: center;
padding-left: 25px;
color: #fff;
}
.gbi-title {
font-size: 28px;
font-weight: 700;
margin: 0;
line-height: 32px;
}
.gbi-designation {
font-size: 16px;
opacity: 0.9;
font-weight: 500;
margin-top: 5px;
}
/* MAIN BODY LAYOUT */
.gbi-layout {
display: flex;
gap: 25px;
margin-top: 20px;
}
.gbi-content {
width: 65%;
line-height: 1.6em;
font-size: 16px;
}
.gbi-infobox {
width: 35%;
}
/* Responsive */
@media(max-width: 900px){
.gbi-header {
flex-direction: column;
height: auto;
}
.gbi-photo, .gbi-banner {
width: 100% !important;
max-width: 100% !important;
flex-basis: auto !important;
height: 220px !important;
}
.gbi-layout {
flex-direction: column;
}
.gbi-content, .gbi-infobox {
width: 100%;
}
}
/* If banner image fails loading, show a neutral background */
.gbi-banner {
background-color: #d8dce3;
}