MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* 🌟 | /* 🌟 Global Bio Index Modern Layout */ | ||
.gbi-header { | .gbi-header { | ||
display: flex; | |||
width: 100%; | width: 100%; | ||
height: 250px; | |||
overflow: hidden; | |||
margin-bottom: 25px; | margin-bottom: 25px; | ||
gap: 0px; | |||
} | } | ||
/* Profile | /* Profile Image 30% */ | ||
.gbi-photo { | .gbi-photo { | ||
flex-basis: 30%; | flex-basis: 30%; | ||
max-width: 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; | |||
} | } | ||
.gbi-photo | /* Remove scroll from default thumb container */ | ||
width: 100%; | .gbi-photo .thumb, | ||
height: 250px; | .gbi-photo .mw-thumb-inner, | ||
.gbi-photo .thumbimage, | |||
border | .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 { | .gbi-banner { | ||
flex-basis: 70%; | flex-basis: 70%; | ||
height: 250px; | height: 250px; | ||
background-size: cover; | background-size: cover !important; | ||
background-position: center; | background-position: center !important; | ||
background-repeat: no-repeat !important; | |||
border-radius: 0 12px 12px 0; | |||
position: relative; | position: relative; | ||
overflow: hidden !important; | |||
} | } | ||
/* Text Overlay on Banner */ | |||
.gbi-banner-overlay { | .gbi-banner-overlay { | ||
background: linear-gradient(to right, rgba(0,0,0,0.55), transparent); | |||
display: flex; | |||
height: 100%; | height: 100%; | ||
align-items: center; | |||
padding-left: 25px; | |||
align-items: | |||
padding: | |||
color: #fff; | color: #fff; | ||
} | } | ||
.gbi-title { | |||
.gbi- | font-size: 28px; | ||
font-weight: 700; | |||
margin: 0; | margin: 0; | ||
line-height: 32px; | |||
} | } | ||
.gbi-designation { | |||
font-size: 16px; | |||
font-size: | opacity: 0.9; | ||
opacity: 0. | |||
font-weight: 500; | font-weight: 500; | ||
margin-top: 5px; | margin-top: 5px; | ||
} | } | ||
/* | /* MAIN BODY LAYOUT */ | ||
.gbi-layout { | .gbi-layout { | ||
display: flex; | display: flex; | ||
gap: | gap: 25px; | ||
margin-top: 20px; | margin-top: 20px; | ||
} | } | ||
.gbi-content { | .gbi-content { | ||
width: | width: 65%; | ||
line-height: 1.6em; | |||
font-size: 16px; | font-size: 16px; | ||
} | } | ||
.gbi-infobox { | .gbi-infobox { | ||
width: | width: 35%; | ||
} | } | ||
/* Responsive */ | |||
/* | |||
@media(max-width: 900px){ | @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 { | .gbi-layout { | ||
flex-direction: column; | flex-direction: column; | ||
| Line 103: | Line 107: | ||
width: 100%; | width: 100%; | ||
} | } | ||
} | } | ||
Revision as of 04:14, 26 November 2025
/* 🌟 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%;
}
}