Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 1: Line 1:
/* Modern Biography Page Styles for MediaWiki Citizen Skin */
/* 🌟 GlobalBioIndex - Modern Biography UI */
 
.gbi-header {
/* Main Biography Container */
    position: relative;
.biography-container {
    width: 100%;
  max-width: 1200px;
    display: flex;
  margin: 0 auto;
    flex-direction: row;
  background: #ffffff;
    align-items: flex-end;
  border-radius: 12px;
    margin-bottom: 25px;
  overflow: hidden;
    border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
}


/* Header Section with Cover Image */
/* Profile image - Left 30% */
.bio-header {
.gbi-photo {
  position: relative;
    flex-basis: 30%;
  height: 300px;
    max-width: 30%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
  overflow: hidden;
    z-index: 10;
}
}


.bio-cover-image {
.gbi-photo img {
  width: 100%;
    width: 100%;
  height: 100%;
    height: 250px;
  object-fit: cover;
    object-fit: cover;
  opacity: 0.9;
    border-bottom-right-radius: 15px;
    border-right: 4px solid #fff;
}
}


/* Profile Photo */
/* Cover Banner - Right 70% */
.bio-profile-photo {
.gbi-banner {
  position: absolute;
    flex-basis: 70%;
  bottom: -60px;
    height: 250px;
  left: 40px;
    background-size: cover;
  width: 180px;
    background-position: center;
  height: 180px;
    position: relative;
  border-radius: 50%;
  border: 6px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  background: #f5f5f5;
  z-index: 10;
}
}


/* Name and Title Section */
.gbi-banner-overlay {
.bio-name-section {
    width: 100%;
  position: absolute;
    height: 100%;
  bottom: 20px;
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
  left: 250px;
    display: flex;
  right: 40px;
    align-items: flex-end;
  color: #ffffff;
    padding: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
}
}


.bio-name {
.gbi-banner-overlay h1 {
  font-size: 36px;
    margin: 0;
  font-weight: 700;
    font-size: 29px;
  margin: 0;
    font-weight: bold;
  line-height: 1.2;
}
}


.bio-title {
.gbi-banner-overlay .gbi-designation {
  font-size: 18px;
    font-size: 17px;
  font-weight: 400;
    opacity: 0.85;
  margin: 8px 0 0 0;
    font-weight: 500;
  opacity: 0.95;
    margin-top: 5px;
}
}


/* Content Area */
/* 📰 Content Layout: Biograpy left + Infobox right */
.bio-content-wrapper {
.gbi-layout {
  display: flex;
    display: flex;
  gap: 30px;
    gap: 30px;
  padding: 80px 40px 40px;
    margin-top: 20px;
  background: #fafafa;
}
}


/* Main Biography Content */
.gbi-content {
.bio-main-content {
    width: 68%;
  flex: 1;
    font-size: 16px;
  min-width: 0;
    line-height: 1.6em;
}
}


.bio-section {
.gbi-infobox {
  background: #ffffff;
    width: 32%;
  padding: 30px;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
}


.bio-section h2 {
.gbi-infobox table {
  font-size: 24px;
    width: 100%;
  font-weight: 600;
    font-size: 14px;
  color: #1a1a1a;
    background: #f9fafc;
  margin: 0 0 20px 0;
    border-radius: 10px;
  padding-bottom: 12px;
    border: 1px solid #ddd;
  border-bottom: 2px solid #667eea;
    padding: 10px;
}
 
.bio-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  margin: 24px 0 12px 0;
}
 
.bio-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
  margin: 0 0 16px 0;
}
 
.bio-section ul {
  padding-left: 24px;
  margin: 12px 0;
}
}


.bio-section li {
.gbi-infobox caption {
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 8px;
}
 
/* Infobox Sidebar */
.bio-infobox {
  width: 320px;
  flex-shrink: 0;
}
 
.infobox-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
}
 
.infobox-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}
 
.infobox-content {
  padding: 24px;
}
 
.infobox-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}
 
.infobox-row:last-child {
  border-bottom: none;
}
 
.infobox-label {
  font-weight: 600;
  color: #666666;
  min-width: 100px;
  font-size: 14px;
}
 
.infobox-value {
  color: #333333;
  font-size: 14px;
  flex: 1;
}
 
.infobox-value a {
  color: #667eea;
  text-decoration: none;
}
 
.infobox-value a:hover {
  text-decoration: underline;
}
 
/* Quote Box */
.bio-quote {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: #555555;
  border-radius: 4px;
}
 
.bio-quote-author {
  font-style: normal;
  font-weight: 600;
  color: #333333;
  margin-top: 12px;
  display: block;
}
 
/* Achievement Tags */
.achievement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
 
.achievement-tag {
  background: #667eea;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
 
/* Timeline Styles */
.bio-timeline {
  position: relative;
  padding-left: 30px;
}
 
.timeline-item {
  position: relative;
  padding-bottom: 24px;
}
 
.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #667eea;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #667eea;
}
 
.timeline-item::after {
  content: '';
  position: absolute;
  left: -25px;
  top: 18px;
  width: 2px;
  height: calc(100% - 12px);
  background: #e0e0e0;
}
 
.timeline-item:last-child::after {
  display: none;
}
 
.timeline-year {
  font-weight: 700;
  color: #667eea;
  font-size: 16px;
  margin-bottom: 4px;
}
 
.timeline-event {
  color: #444444;
  font-size: 15px;
  line-height: 1.6;
}
 
/* Responsive Design */
@media (max-width: 992px) {
  .bio-content-wrapper {
    flex-direction: column;
  }
 
  .bio-infobox {
    width: 100%;
    order: -1;
  }
 
  .infobox-card {
    position: relative;
    top: 0;
  }
 
  .bio-profile-photo {
    width: 140px;
    height: 140px;
    left: 30px;
    bottom: -50px;
  }
 
  .bio-name-section {
    left: 190px;
    bottom: 15px;
  }
 
  .bio-name {
    font-size: 28px;
  }
 
  .bio-title {
     font-size: 16px;
     font-size: 16px;
  }
    font-weight: bold;
 
    background: #003a70;
  .bio-content-wrapper {
    color: #fff;
     padding: 70px 20px 20px;
    text-align: center;
  }
    border-radius: 10px 10px 0 0;
     padding: 8px;
}
}


@media (max-width: 576px) {
/* 📱 Responsive */
  .bio-header {
@media(max-width: 900px){
    height: 220px;
    .gbi-layout {
  }
        flex-direction: column;
 
    }
  .bio-profile-photo {
    .gbi-content, .gbi-infobox {
    width: 120px;
        width: 100%;
     height: 120px;
     }
    left: 20px;
     .gbi-header {
     bottom: -40px;
        flex-direction: column;
  }
        text-align: center;
 
     }
  .bio-name-section {
     .gbi-photo, .gbi-banner {
    left: 20px;
        max-width: 100%;
    right: 20px;
        flex-basis: 100%;
     bottom: auto;
    }
     top: 20px;
    .gbi-photo img {
  }
        height: 220px;
 
        border-bottom-right-radius: 0;
  .bio-name {
    }
    font-size: 24px;
  }
 
  .bio-title {
    font-size: 14px;
  }
 
  .bio-content-wrapper {
    padding: 60px 15px 15px;
  }
 
  .bio-section {
    padding: 20px;
  }
 
  .infobox-content {
    padding: 16px;
  }
}
}

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;
    }
}