MediaWiki:Common.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 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;
}
}