MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* 🌟 Global Bio Index – | /* 🌟 Global Bio Index – Improved Layout & Fixes */ | ||
/* Header Container */ | /* Header Container */ | ||
| Line 8: | Line 8: | ||
margin-bottom: 30px; | margin-bottom: 30px; | ||
position: relative; | position: relative; | ||
overflow: hidden; | |||
border-radius: 14px; | |||
} | } | ||
| Line 14: | Line 15: | ||
.gbi-photo { | .gbi-photo { | ||
width: 30%; | width: 30%; | ||
height: 100%; | |||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
background: #d9dde4; | |||
border-radius: 14px 0 0 14px; | border-radius: 14px 0 0 14px; | ||
overflow: hidden; | |||
} | } | ||
/* Profile Image */ | /* Profile Image */ | ||
.gbi-img { | .gbi-img { | ||
width: 100% | width: 100%; | ||
height: 100% | height: 100%; | ||
object-fit: cover | object-fit: cover; | ||
object-position: center; | |||
} | } | ||
| Line 42: | Line 44: | ||
/* 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; /* Fixes blank spaces */ | |||
display: block; | display: block; | ||
} | } | ||
/* Text Overlay */ | /* Banner Text Overlay */ | ||
.gbi-banner-overlay { | .gbi-banner-overlay { | ||
position: absolute; | position: absolute; | ||
left: 0; right: 0; bottom: 0; | |||
padding: 25px; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: flex-end; | justify-content: flex-end; | ||
z-index: 10; | |||
background: linear-gradient(to top, rgba(0,0,0,0. | |||
color: # | /* Clear bottom fade for better visibility */ | ||
background: linear-gradient( | |||
to top, | |||
rgba(0,0,0,0.8), | |||
rgba(0,0,0,0.0) | |||
); | |||
color: #fff; | |||
} | } | ||
/* Title Text */ | /* Title Text */ | ||
.gbi-title { | .gbi-title { | ||
font-size: | font-size: 32px; | ||
font-weight: 700; | font-weight: 700; | ||
margin: 0; | margin: 0; | ||
text-shadow: 0px | line-height: 1.2; | ||
text-shadow: 0px 3px 10px rgba(0,0,0,0.7); | |||
} | } | ||
/* Designation */ | /* Designation */ | ||
.gbi-designation { | .gbi-designation { | ||
font-size: | font-size: 18px; | ||
margin-top: 6px; | margin-top: 6px; | ||
opacity: 0.95; | |||
} | } | ||
| Line 85: | Line 95: | ||
.gbi-content { | .gbi-content { | ||
width: 65%; | width: 65%; | ||
line-height: 1. | line-height: 1.7; | ||
font-size: | font-size: 17px; | ||
text-align: justify; | |||
} | } | ||
.gbi-infobox { | .gbi-infobox { | ||
width: 35%; | width: 35%; | ||
} | } | ||
/* Mobile | /* 🔹 Mobile Responsive */ | ||
@media(max-width: 900px){ | @media(max-width: 900px){ | ||
.gbi-header { | .gbi-header { | ||
| Line 98: | Line 110: | ||
height: auto; | height: auto; | ||
} | } | ||
.gbi-photo | .gbi-photo { | ||
width: 100% !important; | width: 100% !important; | ||
height: | height: 250px !important; | ||
border-radius: 14px !important; | border-radius: 14px 14px 0 0 !important; | ||
} | |||
.gbi-banner { | |||
width: 100% !important; | |||
height: 250px !important; | |||
border-radius: 0 0 14px 14px !important; | |||
} | |||
.gbi-title { | |||
font-size: 24px; | |||
} | |||
.gbi-designation { | |||
font-size: 15px; | |||
} | } | ||
.gbi-layout { | .gbi-layout { | ||
Revision as of 06:51, 27 November 2025
/* 🌟 Global Bio Index – Improved Layout & Fixes */
/* Header Container */
.gbi-header {
display: flex;
width: 100%;
height: 300px;
margin-bottom: 30px;
position: relative;
overflow: hidden;
border-radius: 14px;
}
/* Profile Image Container */
.gbi-photo {
width: 30%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: #d9dde4;
border-radius: 14px 0 0 14px;
overflow: hidden;
}
/* Profile Image */
.gbi-img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
/* 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%;
height: 100%;
object-fit: cover;
object-position: center; /* Fixes blank spaces */
display: block;
}
/* Banner Text Overlay */
.gbi-banner-overlay {
position: absolute;
left: 0; right: 0; bottom: 0;
padding: 25px;
display: flex;
flex-direction: column;
justify-content: flex-end;
z-index: 10;
/* Clear bottom fade for better visibility */
background: linear-gradient(
to top,
rgba(0,0,0,0.8),
rgba(0,0,0,0.0)
);
color: #fff;
}
/* Title Text */
.gbi-title {
font-size: 32px;
font-weight: 700;
margin: 0;
line-height: 1.2;
text-shadow: 0px 3px 10px rgba(0,0,0,0.7);
}
/* Designation */
.gbi-designation {
font-size: 18px;
margin-top: 6px;
opacity: 0.95;
}
/* Body Layout */
.gbi-layout {
display: flex;
gap: 25px;
margin-top: 15px;
}
.gbi-content {
width: 65%;
line-height: 1.7;
font-size: 17px;
text-align: justify;
}
.gbi-infobox {
width: 35%;
}
/* 🔹 Mobile Responsive */
@media(max-width: 900px){
.gbi-header {
flex-direction: column;
height: auto;
}
.gbi-photo {
width: 100% !important;
height: 250px !important;
border-radius: 14px 14px 0 0 !important;
}
.gbi-banner {
width: 100% !important;
height: 250px !important;
border-radius: 0 0 14px 14px !important;
}
.gbi-title {
font-size: 24px;
}
.gbi-designation {
font-size: 15px;
}
.gbi-layout {
flex-direction: column;
}
.gbi-content, .gbi-infobox {
width: 100%;
}
}