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 Citizen Profile Card --- */
/* Modern Biography Page Styles for MediaWiki Citizen Skin */


.profile-card {
/* Main Biography Container */
    /* Position the Infobox to the Right */
.biography-container {
    float: right;
  max-width: 1200px;
    clear: right;
  margin: 0 auto;
    width: 320px;
  background: #ffffff;
    margin: 0 0 1.5rem 1.5rem;
  border-radius: 12px;
   
  overflow: hidden;
    /* Card Styling */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border: 1px solid #eaecf0; /* Very subtle border */
    border-radius: 12px;       /* Modern rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Soft premium shadow */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden; /* Ensures image doesn't bleed out of corners */
    z-index: 10;
}
}


/* Mobile Responsiveness for Citizen Skin */
/* Header Section with Cover Image */
@media screen and (max-width: 850px) {
.bio-header {
    .profile-card {
  position: relative;
        float: none;
  height: 300px;
        width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        margin: 1rem 0;
  overflow: hidden;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
}
}


/* --- Header Section (Cover + Avatar + Name) --- */
.bio-cover-image {
.profile-header {
  width: 100%;
    position: relative;
  height: 100%;
    height: 200px; /* Height of the cover image */
  object-fit: cover;
    background-color: #2a2a2a; /* Fallback color */
  opacity: 0.9;
    background-size: cover;
}
    background-position: center center;
 
/* Profile Photo */
.bio-profile-photo {
  position: absolute;
  bottom: -60px;
  left: 40px;
  width: 180px;
  height: 180px;
  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 */
.bio-name-section {
  position: absolute;
  bottom: 20px;
  left: 250px;
  right: 40px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
 
.bio-name {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
 
.bio-title {
  font-size: 18px;
  font-weight: 400;
  margin: 8px 0 0 0;
  opacity: 0.95;
}
 
/* Content Area */
.bio-content-wrapper {
  display: flex;
  gap: 30px;
  padding: 80px 40px 40px;
  background: #fafafa;
}
 
/* Main Biography Content */
.bio-main-content {
  flex: 1;
  min-width: 0;
}
 
.bio-section {
  background: #ffffff;
  padding: 30px;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
 
.bio-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #667eea;
}
 
.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 {
  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;
}
}


/* Dark Gradient Overlay - Makes white text readable on any image */
.bio-quote-author {
.profile-header::after {
  font-style: normal;
    content: "";
  font-weight: 600;
    position: absolute;
  color: #333333;
    bottom: 0;
  margin-top: 12px;
    left: 0;
  display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0) 100%);
}
}


/* Flex Container for Avatar and Text */
/* Achievement Tags */
.profile-hero-content {
.achievement-tags {
    position: absolute;
  display: flex;
    bottom: 16px;
  flex-wrap: wrap;
    left: 16px;
  gap: 8px;
    right: 16px;
  margin: 16px 0;
    z-index: 2;
    display: flex;
    align-items: flex-end; /* Align bottom */
    gap: 15px; /* Space between Avatar and Name */
}
}


/* Circular Avatar */
.achievement-tag {
.profile-avatar {
  background: #667eea;
    width: 80px;
  color: #ffffff;
    height: 80px;
  padding: 6px 14px;
    flex-shrink: 0;
  border-radius: 20px;
    border-radius: 50%;
  font-size: 13px;
    border: 3px solid #ffffff;
  font-weight: 500;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
}


.profile-avatar img {
/* Timeline Styles */
    width: 100%;
.bio-timeline {
    height: 100%;
  position: relative;
    object-fit: cover;
  padding-left: 30px;
    display: block;
}
}


/* Text Block */
.timeline-item {
.profile-titles {
  position: relative;
    flex-grow: 1;
  padding-bottom: 24px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    padding-bottom: 5px;
}
}


.profile-name {
.timeline-item::before {
    margin: 0;
  content: '';
    font-size: 1.5rem;
  position: absolute;
    font-weight: 700;
  left: -30px;
    line-height: 1.1;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #667eea;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #667eea;
}
}


.profile-role {
.timeline-item::after {
    margin-top: 4px;
  content: '';
    font-size: 0.85rem;
  position: absolute;
    font-weight: 500;
  left: -25px;
    opacity: 0.9;
  top: 18px;
    text-transform: uppercase;
  width: 2px;
    letter-spacing: 0.5px;
  height: calc(100% - 12px);
  background: #e0e0e0;
}
}


/* --- Data Rows (The details) --- */
.timeline-item:last-child::after {
.profile-data {
  display: none;
    padding: 12px 0;
}
}


.profile-row {
.timeline-year {
    display: flex;
  font-weight: 700;
    justify-content: space-between;
  color: #667eea;
    padding: 10px 16px;
  font-size: 16px;
    border-bottom: 1px solid #f2f2f2;
  margin-bottom: 4px;
    font-size: 0.95rem;
}
}


.profile-row:last-child {
.timeline-event {
    border-bottom: none;
  color: #444444;
  font-size: 15px;
  line-height: 1.6;
}
}


.profile-label {
/* Responsive Design */
     color: #666;
@media (max-width: 992px) {
     font-weight: 600;
  .bio-content-wrapper {
     flex-shrink: 0;
    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;
  }
 
  .bio-content-wrapper {
    padding: 70px 20px 20px;
  }
}
}


.profile-value {
@media (max-width: 576px) {
     text-align: right;
  .bio-header {
     color: #111;
    height: 220px;
     font-weight: 400;
  }
 
  .bio-profile-photo {
     width: 120px;
    height: 120px;
    left: 20px;
    bottom: -40px;
  }
 
  .bio-name-section {
    left: 20px;
    right: 20px;
    bottom: auto;
    top: 20px;
  }
 
  .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 16:11, 25 November 2025

/* Modern Biography Page Styles for MediaWiki Citizen Skin */

/* Main Biography Container */
.biography-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header Section with Cover Image */
.bio-header {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.bio-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* Profile Photo */
.bio-profile-photo {
  position: absolute;
  bottom: -60px;
  left: 40px;
  width: 180px;
  height: 180px;
  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 */
.bio-name-section {
  position: absolute;
  bottom: 20px;
  left: 250px;
  right: 40px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bio-name {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.bio-title {
  font-size: 18px;
  font-weight: 400;
  margin: 8px 0 0 0;
  opacity: 0.95;
}

/* Content Area */
.bio-content-wrapper {
  display: flex;
  gap: 30px;
  padding: 80px 40px 40px;
  background: #fafafa;
}

/* Main Biography Content */
.bio-main-content {
  flex: 1;
  min-width: 0;
}

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

.bio-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #667eea;
}

.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 {
  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;
  }
  
  .bio-content-wrapper {
    padding: 70px 20px 20px;
  }
}

@media (max-width: 576px) {
  .bio-header {
    height: 220px;
  }
  
  .bio-profile-photo {
    width: 120px;
    height: 120px;
    left: 20px;
    bottom: -40px;
  }
  
  .bio-name-section {
    left: 20px;
    right: 20px;
    bottom: auto;
    top: 20px;
  }
  
  .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;
  }
}