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:
/* ====== GBI – PROFILE TEMPLATE FIXED VERSION ====== */
/* --- Modern Citizen Profile Card --- */


/* Cover Banner */
.profile-card {
.gbi-cover-area {
    /* 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: 320px; /* fixed 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;
     border-radius: 12px;
     box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
}


.gbi-cover-image {
.profile-avatar img {
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
     object-fit: cover; /* CROPS automatically */
     object-fit: cover;
     object-position: center;
     display: block;
    border-radius: 12px;
}
}


/* Profile picture */
/* Text Block */
.gbi-profile-on-banner {
.profile-titles {
     width: 140px;
     flex-grow: 1;
    height: 140px;
     color: #fff;
    border-radius: 50%;
     text-shadow: 0 1px 3px rgba(0,0,0,0.6);
     border: 4px solid #fff;
     padding-bottom: 5px;
     object-fit: cover; /* auto adjust */
     object-position: center;
    position: absolute;
    bottom: -60px;
    left: 40px;
    z-index: 10;
}
}


/* Banner Content */
.profile-name {
.gbi-banner-content {
     margin: 0;
     position: absolute;
     font-size: 1.5rem;
     left: 200px;
     font-weight: 700;
     bottom: 20px;
     line-height: 1.1;
     color: white;
}
}


.gbi-name-banner {
.profile-role {
     font-size: 38px;
    margin-top: 4px;
     font-weight: 700;
     font-size: 0.85rem;
     text-shadow: 0 2px 6px rgba(0,0,0,0.4);
     font-weight: 500;
    opacity: 0.9;
     text-transform: uppercase;
    letter-spacing: 0.5px;
}
}


.gbi-headline-banner {
/* --- Data Rows (The details) --- */
    font-size: 20px;
.profile-data {
     opacity: 0.95;
     padding: 12px 0;
}
}


.gbi-container {
.profile-row {
    margin-top: 80px; /* space under profile image */
     display: flex;
     display: flex;
     gap: 30px;
     justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.95rem;
}
}


/* Layout columns */
.profile-row:last-child {
.gbi-left {
     border-bottom: none;
     width: 70%;
}
}


.gbi-right {
.profile-label {
     width: 30%;
     color: #666;
    font-weight: 600;
    flex-shrink: 0;
}
}


/* Infobox style */
.profile-value {
.gbi-right table {
     text-align: right;
     width: 100%;
     color: #111;
     background: #fff;
     font-weight: 400;
    padding: 18px;
     border-radius: 14px;
    box-shadow: 0px 6px 24px rgba(0,0,0,0.08);
}
}

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