MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Modern Biography | /* 🌟 GlobalBioIndex - Modern Biography UI */ | ||
.gbi-header { | |||
position: relative; | |||
. | width: 100%; | ||
display: flex; | |||
flex-direction: row; | |||
align-items: flex-end; | |||
margin-bottom: 25px; | |||
border-radius: 10px; | |||
overflow: hidden; | |||
} | } | ||
/* | /* Profile image - Left 30% */ | ||
. | .gbi-photo { | ||
flex-basis: 30%; | |||
max-width: 30%; | |||
position: relative; | |||
z-index: 10; | |||
} | } | ||
. | .gbi-photo img { | ||
width: 100%; | |||
height: 250px; | |||
object-fit: cover; | |||
border-bottom-right-radius: 15px; | |||
border-right: 4px solid #fff; | |||
} | } | ||
/* | /* Cover Banner - Right 70% */ | ||
. | .gbi-banner { | ||
flex-basis: 70%; | |||
height: 250px; | |||
background-size: cover; | |||
background-position: center; | |||
position: relative; | |||
} | } | ||
.gbi-banner-overlay { | |||
. | width: 100%; | ||
height: 100%; | |||
background: linear-gradient(to right, rgba(0,0,0,0.6), transparent); | |||
display: flex; | |||
align-items: flex-end; | |||
padding: 20px; | |||
color: #fff; | |||
} | } | ||
. | .gbi-banner-overlay h1 { | ||
margin: 0; | |||
font-size: 29px; | |||
font-weight: bold; | |||
} | } | ||
. | .gbi-banner-overlay .gbi-designation { | ||
font-size: 17px; | |||
opacity: 0.85; | |||
font-weight: 500; | |||
margin-top: 5px; | |||
} | } | ||
/* Content | /* 📰 Content Layout: Biograpy left + Infobox right */ | ||
. | .gbi-layout { | ||
display: flex; | |||
gap: 30px; | |||
margin-top: 20px; | |||
} | } | ||
.gbi-content { | |||
. | width: 68%; | ||
font-size: 16px; | |||
line-height: 1.6em; | |||
} | } | ||
. | .gbi-infobox { | ||
width: 32%; | |||
} | } | ||
. | .gbi-infobox table { | ||
width: 100%; | |||
font-size: 14px; | |||
background: #f9fafc; | |||
border-radius: 10px; | |||
border: 1px solid #ddd; | |||
padding: 10px; | |||
} | } | ||
. | .gbi-infobox caption { | ||
font-size: 16px; | font-size: 16px; | ||
font-weight: bold; | |||
background: #003a70; | |||
color: #fff; | |||
padding: | text-align: center; | ||
border-radius: 10px 10px 0 0; | |||
padding: 8px; | |||
} | } | ||
@media (max-width: | /* 📱 Responsive */ | ||
@media(max-width: 900px){ | |||
.gbi-layout { | |||
flex-direction: column; | |||
} | |||
.gbi-content, .gbi-infobox { | |||
width: 100%; | |||
} | |||
.gbi-header { | |||
flex-direction: column; | |||
text-align: center; | |||
} | |||
.gbi-photo, .gbi-banner { | |||
max-width: 100%; | |||
flex-basis: 100%; | |||
} | |||
.gbi-photo img { | |||
height: 220px; | |||
border-bottom-right-radius: 0; | |||
} | |||
} | } | ||
Revision as of 04:01, 26 November 2025
/* 🌟 GlobalBioIndex - Modern Biography UI */
.gbi-header {
position: relative;
width: 100%;
display: flex;
flex-direction: row;
align-items: flex-end;
margin-bottom: 25px;
border-radius: 10px;
overflow: hidden;
}
/* Profile image - Left 30% */
.gbi-photo {
flex-basis: 30%;
max-width: 30%;
position: relative;
z-index: 10;
}
.gbi-photo img {
width: 100%;
height: 250px;
object-fit: cover;
border-bottom-right-radius: 15px;
border-right: 4px solid #fff;
}
/* Cover Banner - Right 70% */
.gbi-banner {
flex-basis: 70%;
height: 250px;
background-size: cover;
background-position: center;
position: relative;
}
.gbi-banner-overlay {
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
display: flex;
align-items: flex-end;
padding: 20px;
color: #fff;
}
.gbi-banner-overlay h1 {
margin: 0;
font-size: 29px;
font-weight: bold;
}
.gbi-banner-overlay .gbi-designation {
font-size: 17px;
opacity: 0.85;
font-weight: 500;
margin-top: 5px;
}
/* 📰 Content Layout: Biograpy left + Infobox right */
.gbi-layout {
display: flex;
gap: 30px;
margin-top: 20px;
}
.gbi-content {
width: 68%;
font-size: 16px;
line-height: 1.6em;
}
.gbi-infobox {
width: 32%;
}
.gbi-infobox table {
width: 100%;
font-size: 14px;
background: #f9fafc;
border-radius: 10px;
border: 1px solid #ddd;
padding: 10px;
}
.gbi-infobox caption {
font-size: 16px;
font-weight: bold;
background: #003a70;
color: #fff;
text-align: center;
border-radius: 10px 10px 0 0;
padding: 8px;
}
/* 📱 Responsive */
@media(max-width: 900px){
.gbi-layout {
flex-direction: column;
}
.gbi-content, .gbi-infobox {
width: 100%;
}
.gbi-header {
flex-direction: column;
text-align: center;
}
.gbi-photo, .gbi-banner {
max-width: 100%;
flex-basis: 100%;
}
.gbi-photo img {
height: 220px;
border-bottom-right-radius: 0;
}
}