MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* --- Modern Citizen Profile Card --- */ | ||
/* Cover | .profile-card { | ||
. | /* Position the Infobox to the Right */ | ||
float: right; | |||
clear: right; | |||
width: 320px; | |||
margin: 0 0 1.5rem 1.5rem; | |||
/* Card Styling */ | |||
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 */ | |||
@media screen and (max-width: 850px) { | |||
.profile-card { | |||
float: none; | |||
width: 100%; | |||
margin: 1rem 0; | |||
max-width: 450px; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
} | |||
/* --- Header Section (Cover + Avatar + Name) --- */ | |||
.profile-header { | |||
position: relative; | position: relative; | ||
height: 200px; /* Height of the cover image */ | |||
background-color: #2a2a2a; /* Fallback color */ | |||
background-size: cover; | |||
background-position: center center; | |||
} | |||
/* Dark Gradient Overlay - Makes white text readable on any image */ | |||
.profile-header::after { | |||
content: ""; | |||
position: absolute; | |||
bottom: 0; | |||
left: 0; | |||
width: 100%; | width: 100%; | ||
height: | 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 */ | |||
.profile-hero-content { | |||
position: absolute; | |||
bottom: 16px; | |||
left: 16px; | |||
right: 16px; | |||
z-index: 2; | |||
display: flex; | |||
align-items: flex-end; /* Align bottom */ | |||
gap: 15px; /* Space between Avatar and Name */ | |||
} | |||
/* Circular Avatar */ | |||
.profile-avatar { | |||
width: 80px; | |||
height: 80px; | |||
flex-shrink: 0; | |||
border-radius: 50%; | |||
border: 3px solid #ffffff; | |||
background-color: #fff; | |||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 2px 5px rgba(0,0,0,0.3); | |||
} | } | ||
. | .profile-avatar img { | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
object-fit: cover; | object-fit: cover; | ||
display: block; | |||
} | } | ||
/* | /* Text Block */ | ||
. | .profile-titles { | ||
flex-grow: 1; | |||
color: #fff; | |||
text-shadow: 0 1px 3px rgba(0,0,0,0.6); | |||
padding-bottom: 5px; | |||
} | } | ||
.profile-name { | |||
. | margin: 0; | ||
font-size: 1.5rem; | |||
font-weight: 700; | |||
line-height: 1.1; | |||
} | } | ||
. | .profile-role { | ||
font-size: | margin-top: 4px; | ||
font-weight: | font-size: 0.85rem; | ||
text- | font-weight: 500; | ||
opacity: 0.9; | |||
text-transform: uppercase; | |||
letter-spacing: 0.5px; | |||
} | } | ||
/* --- Data Rows (The details) --- */ | |||
.profile-data { | |||
padding: 12px 0; | |||
} | } | ||
. | .profile-row { | ||
display: flex; | display: flex; | ||
justify-content: space-between; | |||
padding: 10px 16px; | |||
border-bottom: 1px solid #f2f2f2; | |||
font-size: 0.95rem; | |||
} | } | ||
.profile-row:last-child { | |||
. | border-bottom: none; | ||
} | } | ||
. | .profile-label { | ||
color: #666; | |||
font-weight: 600; | |||
flex-shrink: 0; | |||
} | } | ||
.profile-value { | |||
. | text-align: right; | ||
color: #111; | |||
font-weight: 400; | |||
} | } | ||
Revision as of 15:59, 25 November 2025
/* --- Modern Citizen Profile Card --- */
.profile-card {
/* Position the Infobox to the Right */
float: right;
clear: right;
width: 320px;
margin: 0 0 1.5rem 1.5rem;
/* Card Styling */
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 */
@media screen and (max-width: 850px) {
.profile-card {
float: none;
width: 100%;
margin: 1rem 0;
max-width: 450px;
margin-left: auto;
margin-right: auto;
}
}
/* --- Header Section (Cover + Avatar + Name) --- */
.profile-header {
position: relative;
height: 200px; /* Height of the cover image */
background-color: #2a2a2a; /* Fallback color */
background-size: cover;
background-position: center center;
}
/* Dark Gradient Overlay - Makes white text readable on any image */
.profile-header::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
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 */
.profile-hero-content {
position: absolute;
bottom: 16px;
left: 16px;
right: 16px;
z-index: 2;
display: flex;
align-items: flex-end; /* Align bottom */
gap: 15px; /* Space between Avatar and Name */
}
/* Circular Avatar */
.profile-avatar {
width: 80px;
height: 80px;
flex-shrink: 0;
border-radius: 50%;
border: 3px solid #ffffff;
background-color: #fff;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.profile-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* Text Block */
.profile-titles {
flex-grow: 1;
color: #fff;
text-shadow: 0 1px 3px rgba(0,0,0,0.6);
padding-bottom: 5px;
}
.profile-name {
margin: 0;
font-size: 1.5rem;
font-weight: 700;
line-height: 1.1;
}
.profile-role {
margin-top: 4px;
font-size: 0.85rem;
font-weight: 500;
opacity: 0.9;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* --- Data Rows (The details) --- */
.profile-data {
padding: 12px 0;
}
.profile-row {
display: flex;
justify-content: space-between;
padding: 10px 16px;
border-bottom: 1px solid #f2f2f2;
font-size: 0.95rem;
}
.profile-row:last-child {
border-bottom: none;
}
.profile-label {
color: #666;
font-weight: 600;
flex-shrink: 0;
}
.profile-value {
text-align: right;
color: #111;
font-weight: 400;
}