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 Modern Biography UI */ | ||
/* Header Layout */ | |||
.gbi-header { | .gbi-header { | ||
display: flex; | display: flex; | ||
width: 100%; | width: 100%; | ||
height: 280px; | height: 280px; | ||
margin-bottom: 25px; | margin-bottom: 25px; | ||
} | } | ||
/* | /* Profile Image Box */ | ||
.gbi-photo { | .gbi-photo { | ||
width: 30%; | |||
overflow: hidden; | |||
border-radius: 14px 0 0 14px; | |||
background:#e9edf4; | |||
display: flex; | display: flex; | ||
align-items: center; | |||
justify-content: center; | justify-content: center; | ||
} | } | ||
/* Profile Image */ | |||
.gbi-img { | .gbi-img { | ||
width: 100% !important; | width: 100% !important; | ||
height: 100% !important; | height: 100% !important; | ||
object-fit: cover !important; | object-fit: cover !important; | ||
border-radius: | border-radius: inherit; | ||
display: block; | display: block !important; | ||
} | } | ||
/* | /* Remove default thumbnail containers */ | ||
.gbi-photo .thumb, | .gbi-photo .thumb, | ||
.gbi-photo .thumbinner, | .gbi-photo .thumbinner, | ||
.gbi-photo .mw- | .gbi-photo .mw-file-element, | ||
.gbi-photo .thumbimage, | .gbi-photo .thumbimage, | ||
.gbi-photo .thumbcaption { | .gbi-photo .thumbcaption { | ||
all: unset !important; | all: unset !important; | ||
} | } | ||
/* | /* Banner Box */ | ||
.gbi-banner { | .gbi-banner { | ||
width: 70%; | |||
position: relative; | position: relative; | ||
overflow: hidden; | |||
border-radius: 0 14px 14px 0; | border-radius: 0 14px 14px 0; | ||
background:#d3d7de; /* fallback */ | |||
} | } | ||
/* Banner Image */ | |||
.gbi-banner-img { | .gbi-banner-img { | ||
width: 100%; | width: 100% !important; | ||
height: 100%; | height: 100% !important; | ||
object-fit: cover; | object-fit: cover !important; | ||
display: block; | border-radius: inherit; | ||
display: block !important; | |||
} | } | ||
/* Overlay Text */ | /* Banner Overlay Text Area */ | ||
.gbi-banner-overlay { | .gbi-banner-overlay { | ||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
background: linear-gradient(to right, rgba(0,0,0,0. | background: linear-gradient(to right, rgba(0,0,0,0.55), transparent); | ||
color: #fff; | color: #fff; | ||
display: flex; | display: flex; | ||
flex-direction: column; | |||
padding-left: | justify-content: center; | ||
padding-left: 25px; | |||
} | } | ||
/* Name Text */ | |||
.gbi-title { | .gbi-title { | ||
margin: 0; | margin: 0; | ||
font-size: 32px; | font-size: 32px; | ||
line-height: 36px; | |||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
/* Designation Text */ | |||
.gbi-designation { | .gbi-designation { | ||
font-size: 17px; | |||
opacity: 0.92; | |||
margin-top: 6px; | margin-top: 6px; | ||
font-weight: 500; | font-weight: 500; | ||
} | } | ||
/* | /* Body Layout */ | ||
.gbi-layout { | .gbi-layout { | ||
display: flex; | display: flex; | ||
gap: 30px; | gap: 30px; | ||
width: 100%; | |||
} | } | ||
.gbi-content { | .gbi-content { | ||
width: | width: 65%; | ||
font-size: 16px; | font-size: 16px; | ||
line-height: 1. | line-height: 1.6em; | ||
} | } | ||
.gbi-infobox { | .gbi-infobox { | ||
width: | width: 35%; | ||
} | } | ||
/* | /* Responsive */ | ||
@media(max-width: 900px){ | @media (max-width: 900px) { | ||
.gbi-header { | .gbi-header { | ||
flex-direction: column; | flex-direction: column; | ||
height: auto; | height: auto; | ||
} | } | ||
.gbi-photo, | .gbi-photo, .gbi-banner { | ||
width: 100% !important; | width: 100% !important; | ||
height: | height: 220px !important; | ||
border-radius: 14px !important; | border-radius: 14px !important; | ||
} | } | ||
| Line 115: | Line 115: | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
.gbi-content, | .gbi-content, .gbi-infobox { | ||
width: 100%; | width: 100%; | ||
} | } | ||
} | } | ||
Revision as of 04:30, 26 November 2025
/* 🌟 Global Bio Index Modern Biography UI */
/* Header Layout */
.gbi-header {
display: flex;
width: 100%;
height: 280px;
margin-bottom: 25px;
}
/* Profile Image Box */
.gbi-photo {
width: 30%;
overflow: hidden;
border-radius: 14px 0 0 14px;
background:#e9edf4;
display: flex;
align-items: center;
justify-content: center;
}
/* Profile Image */
.gbi-img {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
border-radius: inherit;
display: block !important;
}
/* Remove default thumbnail containers */
.gbi-photo .thumb,
.gbi-photo .thumbinner,
.gbi-photo .mw-file-element,
.gbi-photo .thumbimage,
.gbi-photo .thumbcaption {
all: unset !important;
}
/* Banner Box */
.gbi-banner {
width: 70%;
position: relative;
overflow: hidden;
border-radius: 0 14px 14px 0;
background:#d3d7de; /* fallback */
}
/* Banner Image */
.gbi-banner-img {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
border-radius: inherit;
display: block !important;
}
/* Banner Overlay Text Area */
.gbi-banner-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to right, rgba(0,0,0,0.55), transparent);
color: #fff;
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 25px;
}
/* Name Text */
.gbi-title {
margin: 0;
font-size: 32px;
line-height: 36px;
font-weight: 700;
}
/* Designation Text */
.gbi-designation {
font-size: 17px;
opacity: 0.92;
margin-top: 6px;
font-weight: 500;
}
/* Body Layout */
.gbi-layout {
display: flex;
gap: 30px;
width: 100%;
}
.gbi-content {
width: 65%;
font-size: 16px;
line-height: 1.6em;
}
.gbi-infobox {
width: 35%;
}
/* Responsive */
@media (max-width: 900px) {
.gbi-header {
flex-direction: column;
height: auto;
}
.gbi-photo, .gbi-banner {
width: 100% !important;
height: 220px !important;
border-radius: 14px !important;
}
.gbi-layout {
flex-direction: column;
}
.gbi-content, .gbi-infobox {
width: 100%;
}
}