MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* 🌟 Global Bio Index – | /* 🌟 Global Bio Index – Updated Final */ | ||
/* Header Container */ | /* Header Container */ | ||
| Line 5: | Line 5: | ||
display: flex; | display: flex; | ||
width: 100%; | width: 100%; | ||
height: | height: 320px; | ||
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; | ||
display: flex; | display: flex; | ||
| Line 19: | Line 20: | ||
align-items: center; | align-items: center; | ||
border-radius: 14px 0 0 14px; | border-radius: 14px 0 0 14px; | ||
background: # | background: #e2e6ee; | ||
padding: 0; | |||
} | } | ||
/* Profile Image */ | /* Profile Image */ | ||
.gbi-img { | .gbi-img { | ||
width: 100% | width: 100%; | ||
height: 100% | height: 100%; | ||
object-fit: cover | object-fit: cover; | ||
border-radius: inherit | object-position: center; /* important fix */ | ||
border-radius: inherit; | |||
} | } | ||
| Line 37: | Line 40: | ||
overflow: hidden; | overflow: hidden; | ||
border-radius: 0 14px 14px 0; | border-radius: 0 14px 14px 0; | ||
background: #c8cdd6; | background-color: #c8cdd6; | ||
padding: 0; | |||
} | } | ||
/* Banner Image */ | /* Banner Image */ | ||
.gbi-banner-img { | .gbi-banner-img { | ||
width: 100% | width: 100%; | ||
height: 100% | height: 100%; | ||
object-fit: cover | object-fit: cover; | ||
object-position: center; /* keep focused */ | |||
display: block; | display: block; | ||
} | } | ||
| Line 51: | Line 56: | ||
.gbi-banner-overlay { | .gbi-banner-overlay { | ||
position: absolute; | position: absolute; | ||
bottom: 0; | |||
left: 0; | |||
right: 0; | |||
z-index: 5; | |||
padding: 25px; | padding: 25px; | ||
background: linear-gradient(to top, 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; | ||
} | } | ||
| Line 63: | Line 67: | ||
/* Title Text */ | /* Title Text */ | ||
.gbi-title { | .gbi-title { | ||
font-size: | font-size: 32px; | ||
font-weight: | font-weight: 800; | ||
margin: 0; | margin: 0; | ||
text-shadow: | text-shadow: 0 0 8px rgba(0,0,0,0.7); | ||
} | } | ||
/* Designation */ | /* Designation */ | ||
.gbi-designation { | .gbi-designation { | ||
font-size: | font-size: 18px; | ||
opacity: 0. | opacity: 0.95; | ||
margin-top: 6px; | margin-top: 6px; | ||
} | } | ||
| Line 85: | Line 89: | ||
.gbi-content { | .gbi-content { | ||
width: 65%; | width: 65%; | ||
line-height: 1. | line-height: 1.7; | ||
font-size: 16px; | font-size: 16px; | ||
} | } | ||
| Line 93: | Line 97: | ||
/* Mobile View */ | /* Mobile View */ | ||
@media(max-width: 900px){ | @media(max-width: 900px) { | ||
.gbi-header { | .gbi-header { | ||
flex-direction: column; | flex-direction: column; | ||
| Line 100: | Line 104: | ||
.gbi-photo, .gbi-banner { | .gbi-photo, .gbi-banner { | ||
width: 100% !important; | width: 100% !important; | ||
height: | height: 260px !important; | ||
border-radius: 14px !important; | border-radius: 14px !important; | ||
} | } | ||
.gbi- | .gbi-banner-overlay { | ||
padding: 18px; | |||
} | |||
.gbi-title { | |||
font-size: 26px; | |||
} | } | ||
.gbi-content, .gbi-infobox { | .gbi-content, .gbi-infobox { | ||
Revision as of 06:44, 27 November 2025
/* 🌟 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%;
}
}